Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Karl Beldan and committed by
Sekhar Nori
8f899b4e 29b4817d

+2
+1
arch/arm/mach-davinci/da850.c
··· 501 501 CLK("da8xx_lcdc.0", "fck", &lcdc_clk), 502 502 CLK("da830-mmc.0", NULL, &mmcsd0_clk), 503 503 CLK("da830-mmc.1", NULL, &mmcsd1_clk), 504 + CLK("ti-aemif", NULL, &aemif_clk), 504 505 CLK(NULL, "aemif", &aemif_clk), 505 506 CLK(NULL, "usb11", &usb11_clk), 506 507 CLK(NULL, "usb20", &usb20_clk),
+1
arch/arm/mach-davinci/da8xx-dt.c
··· 37 37 OF_DEV_AUXDATA("ti,davinci-dm6467-emac", 0x01e20000, "davinci_emac.1", 38 38 NULL), 39 39 OF_DEV_AUXDATA("ti,da830-mcasp-audio", 0x01d00000, "davinci-mcasp.0", NULL), 40 + OF_DEV_AUXDATA("ti,da850-aemif", 0x68000000, "ti-aemif", NULL), 40 41 {} 41 42 }; 42 43