Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459957

[PATCH v2 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching

From Karl Beldan <kbeldan@baylibre.com>
Newsgroups linux.kernel
Subject [PATCH v2 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching
Date 2016-08-10 23:20 +0200
Message-ID <s4J4S-259-31@gated-at.bofh.it> (permalink)
References <s4G6Z-8uN-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Many davinci boards (da830 and da850 families) don't have their clocks
in DT yet and won't be successful in getting an unnamed aemif clock
without explicitly registering them via clk_lookups, failing the
ti-aemif memory driver probe.

The current aemif lookup entry resolving to the same clock:
    'CLK(NULL,               "aemif",        &aemif_clk)'
remains, as it is currently used (davinci_nand is getting a named clock
"aemif").

This change will allow to switch from the mach-davinci aemif code to
the ti-aemif memory driver.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/mach-davinci/da850.c    | 1 +
 arch/arm/mach-davinci/da8xx-dt.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
index 2398862..3477d30 100644
--- a/arch/arm/mach-davinci/da850.c
+++ b/arch/arm/mach-davinci/da850.c
@@ -485,6 +485,7 @@ static struct clk_lookup da850_clks[] = {
 	CLK("da8xx_lcdc.0",	"fck",		&lcdc_clk),
 	CLK("da830-mmc.0",	NULL,		&mmcsd0_clk),
 	CLK("da830-mmc.1",	NULL,		&mmcsd1_clk),
+	CLK("ti-aemif",		NULL,		&aemif_clk),
 	CLK(NULL,		"aemif",	&aemif_clk),
 	CLK(NULL,		"usb11",	&usb11_clk),
 	CLK(NULL,		"usb20",	&usb20_clk),
diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c
index ca99711..c9f7e92 100644
--- a/arch/arm/mach-davinci/da8xx-dt.c
+++ b/arch/arm/mach-davinci/da8xx-dt.c
@@ -37,6 +37,7 @@ static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = {
 	OF_DEV_AUXDATA("ti,davinci-dm6467-emac", 0x01e20000, "davinci_emac.1",
 		       NULL),
 	OF_DEV_AUXDATA("ti,da830-mcasp-audio", 0x01d00000, "davinci-mcasp.0", NULL),
+	OF_DEV_AUXDATA("ti,da850-aemif", 0x68000000, "ti-aemif", NULL),
 	{}
 };
 
-- 
2.9.2

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/4] Add DT support for NAND to LCDK Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 20:10 +0200
  [PATCH v2 4/4] ARM: dts: da850-lcdk: Add NAND to DT Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 20:10 +0200
    Re: [PATCH v2 4/4] ARM: dts: da850-lcdk: Add NAND to DT Sekhar Nori <nsekhar@ti.com> - 2016-08-18 12:00 +0200
      Re: [PATCH v2 4/4] ARM: dts: da850-lcdk: Add NAND to DT Karl Beldan <kbeldan@baylibre.com> - 2016-08-18 15:30 +0200
  [PATCH v2 3/4] ARM: dts: da850,da850-evm: Add an aemif node and use it for the NAND Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 20:20 +0200
    Re: [PATCH v2 3/4] ARM: dts: da850,da850-evm: Add an aemif node and  use it for the NAND Karl Beldan <kbeldan@baylibre.com> - 2016-08-13 13:30 +0200
  [PATCH v2 2/4] ARM: davinci_all_defconfig: Enable AEMIF as a module Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 22:20 +0200
  [PATCH v2 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 23:20 +0200

csiph-web