]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/arm/mach-davinci/da850.c
ARM: davinci: da850: Add ti-aemif lookup for clock matching
authorKarl Beldan <kbeldan@baylibre.com>
Fri, 19 Aug 2016 16:47:36 +0000 (16:47 +0000)
committerSekhar Nori <nsekhar@ti.com>
Tue, 23 Aug 2016 14:50:33 +0000 (20:20 +0530)
commit8f899b4ed6918ee4f7b87654f772bdaa0d580124
tree603013b115821399f7b1a12df3fa9fe197a02c69
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
ARM: davinci: da850: Add ti-aemif lookup for clock matching

The davinci boards don't have their clocks in DT yet and getting a clock
will fail, unless registering them as clk_lookups. This registers the
aemif clock for the ti-aemif memory driver.

The current aemif lookup entry resolving to the same clock:
    'CLK(NULL,               "aemif",        &aemif_clk)'
is currently used by davinci_nand and remains for non-DT and backward
compatibility.

Currently the davinci boards only configure the AEMIF in case of non-DT
boot, via some code in mach-davinci.
This change will allow DT-based davinci platforms to do the same, via
the ti-aemif memory driver code.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
[nsekhar@ti.com: reworded commit message]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/da850.c
arch/arm/mach-davinci/da8xx-dt.c