mfd: da9063: Add support for AD silicon variant
authorOpensource [Steve Twiss] <stwiss.opensource@diasemi.com>
Mon, 21 Jul 2014 10:39:33 +0000 (11:39 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 28 Jul 2014 07:09:25 +0000 (08:09 +0100)
commit9cb42e2a8ed06e91ce9d2c59fbae8d1185ebe2f7
tree67ab0d78b34c742ea7c1c0dde0343d851ac28659
parent5fc6c39653f1c34de3f2357d50ba5baff6b6e482
mfd: da9063: Add support for AD silicon variant

Add register definitions for DA9063 AD (0x3) silicon variant ID
the ability to choose the silicon variant at run-time using regmap
configuration. This patch also adds RTC support for the AD silicon
changes.

It adds both BB and AD support as regmap ranges and then makes the
distinction between the two tables at run-time. This allows both AD
and BB silicon variants to be supported at the same time.

Suggested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Opensource [Steve Twiss] <stwiss.opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9063-core.c
drivers/mfd/da9063-i2c.c
drivers/rtc/rtc-da9063.c
include/linux/mfd/da9063/core.h
include/linux/mfd/da9063/registers.h