summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-mityomapl138.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2016-10-26 05:06:48 +0200
committerSekhar Nori <nsekhar@ti.com>2016-10-31 12:28:21 +0100
commit0fcd54112a9f7902b05741ab493173ee71210458 (patch)
treee97b36547d0535e371ffaaa9eadaf760004c2d9b /arch/arm/mach-davinci/board-mityomapl138.c
parentARM: davinci: da8xx: Remove duplicated defines (diff)
downloadlinux-0fcd54112a9f7902b05741ab493173ee71210458.tar.xz
linux-0fcd54112a9f7902b05741ab493173ee71210458.zip
ARM: davinci: da8xx: Add CFGCHIP syscon platform device
The CFGCHIP registers are used by a number of devices, so use a syscon device to share them. The first consumer of this will be the phy-da8xx-usb driver. Add the syscon device and register it. Signed-off-by: David Lechner <david@lechnology.com> [nsekhar@ti.com: minor commit message fixes] Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-mityomapl138.c')
-rw-r--r--arch/arm/mach-davinci/board-mityomapl138.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c
index bc4e63fa9808..1a6d430742d4 100644
--- a/arch/arm/mach-davinci/board-mityomapl138.c
+++ b/arch/arm/mach-davinci/board-mityomapl138.c
@@ -514,6 +514,10 @@ static void __init mityomapl138_init(void)
{
int ret;
+ ret = da8xx_register_cfgchip();
+ if (ret)
+ pr_warn("%s: CFGCHIP registration failed: %d\n", __func__, ret);
+
/* for now, no special EDMA channels are reserved */
ret = da850_register_edma(NULL);
if (ret)