ARM: da8xx: use platform data for CFGCHIP syscon regmap
authorDavid Lechner <david@lechnology.com>
Sun, 18 Feb 2018 03:22:24 +0000 (21:22 -0600)
committerSekhar Nori <nsekhar@ti.com>
Mon, 19 Feb 2018 10:49:25 +0000 (16:19 +0530)
commitbdec5a6b57896da81bc47262868468717a06bb69
tree0cc9d80c5ac35d5c4cd205f1c16bbb46e6b1be01
parente98bbbf3bd59d5283750e8f56031bd1cc2feafd8
ARM: da8xx: use platform data for CFGCHIP syscon regmap

This converts from using a platform device for the CFGCHIP syscon
regmap to using platform data to pass the regmap to consumers.

A lazy getter function is used so that the regmap will only be
created if it is actually used. This function will also be used
in the clock init when we convert to the common clock framework.

The USB PHY driver is currently the only consumer. This driver is
updated to use platform data to get the CFGCHIP regmap instead of
syscon_regmap_lookup_by_pdevname().

Signed-off-by: David Lechner <david@lechnology.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-da830-evm.c
arch/arm/mach-davinci/board-da850-evm.c
arch/arm/mach-davinci/board-mityomapl138.c
arch/arm/mach-davinci/board-omapl138-hawk.c
arch/arm/mach-davinci/devices-da8xx.c
arch/arm/mach-davinci/include/mach/da8xx.h
arch/arm/mach-davinci/usb-da8xx.c
drivers/phy/ti/phy-da8xx-usb.c
include/linux/platform_data/phy-da8xx-usb.h [new file with mode: 0644]