i2c: xlp9xx: add ACPI support for Broadcom Vulcan
authorTanmay Jagdale <tanmay.jagdale@broadcom.com>
Mon, 20 Jun 2016 09:26:18 +0000 (14:56 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 8 Jul 2016 01:40:55 +0000 (10:40 +0900)
commit748c0bbbf170700d5c612e09e8d89904ddf7ebc5
treefd70139d05421f4a0c709b968254d453449c53fc
parent914017836afb6aff86afdf819cb270944e89c2ac
i2c: xlp9xx: add ACPI support for Broadcom Vulcan

Added ACPI support for the I2C controller present on Broadcom's
Vulcan ARM64 processor. ACPI ID used by the controller is BRCM9007.

Changed the xlp9xx_i2c_get_frequency() function to use
device_property_read_u32() API so that the "clock-frequency" value
can be read from _DSD in ACPI mode.

Signed-off-by: Tanmay Jagdale <tanmay.jagdale@broadcom.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xlp9xx.c