Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided

2016-01-06 Thread Loc Ho
t; Signed-off-by: Mika Westerberg <mika.westerb...@linux.intel.com> >> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com> >> Tested-by: Loc Ho <l...@apm.com> >> --- >> >> Note: This has been tested on AMD Seattle RevB for both DT and ACP

Re: [PATCH v4] i2c: designware: Do not require clock when SSCN and FFCN are provided

2016-01-05 Thread Loc Ho
ff-by: Mika Westerberg <mika.westerb...@linux.intel.com> >> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com> >> Tested-by: Loc Ho <l...@apm.com> >> --- >> >> Note: This has been tested on AMD Seattle RevB for both DT and ACPI. >>

Re: [PATCH v2 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support

2016-01-03 Thread Loc Ho
Hi, On Sat, Jan 2, 2016 at 4:54 PM, Rafael J. Wysocki <r...@rjwysocki.net> wrote: > On Thursday, December 10, 2015 02:19:15 PM Loc Ho wrote: >> Add APM X-Gene ACPI I2C device support. These patches follow >> the same implementation as AMD I2C driver - changes in ACPI APD

Re: [PATCH v2] i2c: designware: Do not require clock when SSCN and FFCN are provided

2015-12-16 Thread Loc Ho
Hi, > The current driver uses input clock source frequency to calculate > values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not > currently have a good way to provide the frequency information. > Instead, we can leverage the SSCN and FFCN ACPI methods, which can be used > to

Re: [PATCH] i2c: designware: Do not require clock when SSCN and FFCN are provided

2015-12-16 Thread Loc Ho
Hi, > The current driver uses input clock source frequency to calculate > values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not > currently have a good way to provide the frequency information. > Instead, we can leverage the SSCN and FFCN ACPI methods, which can be used > to

Re: [PATCH v2 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support

2015-12-15 Thread Loc Ho
Hi, >> >> On 12/15/2015 07:27 AM, Mika Westerberg wrote: >> >On Mon, Dec 14, 2015 at 06:53:25PM -0600, Suravee Suthikulanit wrote: >> >>>I'm not sure if this has been discussed earlier. But after looking at the >> >>>the acpi_apd driver, all we need is just the platform-specific input clock >>

[PATCH v2 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support

2015-12-10 Thread Loc Ho
Add APM X-Gene ACPI I2C device support. These patches follow the same implementation as AMD I2C driver - changes in ACPI APD and Designware I2C drivers. v2: * Spilt the acpi_apd change with defines for AMD and X-Gene I2C's Signed-off-by: Loc Ho <l...@apm.com> --- Loc Ho (2): acpi:apd: A

[PATCH v2 2/2] i2c:dw: Add APM X-Gene ACPI I2C device support

2015-12-10 Thread Loc Ho
Enable APM X-Gene ACPI I2C device support by adding the corresponding ACPI ID. The platform ACPI APD corresponding change is required to provide the proper clock frequency input. Signed-off-by: Loc Ho <l...@apm.com> Acked-by: Mika Westerberg <mika.westerb...@linux.intel.com> ---

[PATCH v2 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support

2015-12-10 Thread Loc Ho
Add APM X-Gene ACPI I2C device support by hooks into existent ACPI apd driver. To fully enable support, require another patch to add the X-Gene ACPI node into the DW I2C driver. Signed-off-by: Loc Ho <l...@apm.com> --- drivers/acpi/acpi_apd.c | 16 +++- 1 files chang

Re: [PATCH 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support

2015-12-09 Thread Loc Ho
Hi Ken, On Mon, Dec 7, 2015 at 6:49 PM, Ken Xue <ken@amd.com> wrote: > > On Mon, 2015-12-07 at 17:16 -0700, Loc Ho wrote: > > Add APM X-Gene ACPI I2C device support by hooks into existent > > ACPI apd driver. To fully enable support, require another > > pat

Re: [PATCH 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support

2015-12-09 Thread Loc Ho
Hi, On Wed, Dec 9, 2015 at 10:14 PM, Ken Xue <ken@amd.com> wrote: > On Wed, 2015-12-09 at 14:03 -0800, Loc Ho wrote: >> Hi Ken, >> >> On Mon, Dec 7, 2015 at 6:49 PM, Ken Xue <ken@amd.com> wrote: >> > >> > On Mon, 2015-12-07 at 17:16

[PATCH 2/2] i2c:dw: Add APM X-Gene ACPI I2C device support

2015-12-07 Thread Loc Ho
Enable APM X-Gene ACPI I2C device support by adding the corresponding ACPI ID. The platform ACPI APD corresponding change is required to provide the proper clock frequency input. Signed-off-by: Loc Ho <l...@apm.com> --- drivers/i2c/busses/i2c-designware-platdrv.c |1 + 1 files chan

[PATCH 1/2] acpi:apd: Add APM X-Gene ACPI I2C device support

2015-12-07 Thread Loc Ho
Add APM X-Gene ACPI I2C device support by hooks into existent ACPI apd driver. To fully enable support, require another patch to add the X-Gene ACPI node into the DW I2C driver. Signed-off-by: Loc Ho <l...@apm.com> --- drivers/acpi/acpi_apd.c |8 +++- 1 files changed, 7 insertions

[PATCH 0/2] i2c:dw: Add APM X-Gene ACPI I2C device support

2015-12-07 Thread Loc Ho
Add APM X-Gene ACPI I2C device support. These patches follow the same implementation as AMD I2C driver - changes in ACPI APD and Designware I2C drivers. Signed-off-by: Loc Ho <l...@apm.com> --- Loc Ho (2): acpi:apd: Add APM X-Gene ACPI I2C device support i2c:dw: Add APM X-Gene AC