ARM: davinci: da850: Fix pwm name matching
authorDavid Lechner <david@lechnology.com>
Mon, 31 Oct 2016 20:04:24 +0000 (15:04 -0500)
committerSekhar Nori <nsekhar@ti.com>
Tue, 1 Nov 2016 10:00:03 +0000 (15:30 +0530)
commit36173c2d023bad4dbad6ed0e6e886fde10ec8f2f
tree5b0d4e49de58920774fc55cae5d869d66d46d997
parenta909d3e636995ba7c349e2ca5dbb528154d4ac30
ARM: davinci: da850: Fix pwm name matching

This fixes pwm name matching for DA850 familiy devices. When using device
tree, the da850_auxdata_lookup[] table caused pwm devices to have the exact
same name, which caused errors when trying to register the devices.

We cannot have multiple entries for the same clock in in da850_clks[], so
we have added child clocks to the EHRPWM and ECAP LPSC clocks so that each
PWM device will have its own clock for proper name matching.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/da850.c
arch/arm/mach-davinci/da8xx-dt.c