The boards in board/davinci/da8xxevm/ define pinmux_config[] vectors
that contain pinmux configurations for emac, uarts, memory controllers...
In an earlier patch such pinmux configurations were added to the arch
tree. This patch makes the hawkboard use these definitions instead of
defining its own.

Signed-off-by: Christian Riesch <christian.rie...@omicron.at>
Cc: Sandeep Paulraj <s-paul...@ti.com>
Cc: Heiko Schocher <h...@denx.de>
Cc: Syed Mohammed Khasim <sm.kha...@gmail.com>
Cc: Sughosh Ganu <urwithsugh...@gmail.com>
Cc: Mike Frysinger <vap...@gentoo.org>
Acked-by: Heiko Schocher <h...@denx.de>
---
 board/davinci/da8xxevm/hawkboard_nand_spl.c |   51 ++++----------------------
 include/configs/hawkboard.h                 |    1 +
 nand_spl/board/davinci/da8xxevm/Makefile    |    5 +++
 3 files changed, 14 insertions(+), 43 deletions(-)

diff --git a/board/davinci/da8xxevm/hawkboard_nand_spl.c 
b/board/davinci/da8xxevm/hawkboard_nand_spl.c
index fd130fa..df97963 100644
--- a/board/davinci/da8xxevm/hawkboard_nand_spl.c
+++ b/board/davinci/da8xxevm/hawkboard_nand_spl.c
@@ -27,55 +27,20 @@
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
 #include <asm/arch/davinci_misc.h>
+#include <asm/arch/pinmux_defs.h>
 #include <ns16550.h>
 #include <nand.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static const struct pinmux_config mii_pins[] = {
-       { pinmux(2), 8, 1 },
-       { pinmux(2), 8, 2 },
-       { pinmux(2), 8, 3 },
-       { pinmux(2), 8, 4 },
-       { pinmux(2), 8, 5 },
-       { pinmux(2), 8, 6 },
-       { pinmux(2), 8, 7 }
-};
-
-static const struct pinmux_config mdio_pins[] = {
-       { pinmux(4), 8, 0 },
-       { pinmux(4), 8, 1 }
-};
-
-static const struct pinmux_config nand_pins[] = {
-       { pinmux(7), 1, 1 },
-       { pinmux(7), 1, 2 },
-       { pinmux(7), 1, 4 },
-       { pinmux(7), 1, 5 },
-       { pinmux(9), 1, 0 },
-       { pinmux(9), 1, 1 },
-       { pinmux(9), 1, 2 },
-       { pinmux(9), 1, 3 },
-       { pinmux(9), 1, 4 },
-       { pinmux(9), 1, 5 },
-       { pinmux(9), 1, 6 },
-       { pinmux(9), 1, 7 },
-       { pinmux(12), 1, 5 },
-       { pinmux(12), 1, 6 }
-};
-
-static const struct pinmux_config uart2_pins[] = {
-       { pinmux(0), 4, 6 },
-       { pinmux(0), 4, 7 },
-       { pinmux(4), 2, 4 },
-       { pinmux(4), 2, 5 }
-};
-
 static const struct pinmux_resource pinmuxes[] = {
-       PINMUX_ITEM(mii_pins),
-       PINMUX_ITEM(mdio_pins),
-       PINMUX_ITEM(nand_pins),
-       PINMUX_ITEM(uart2_pins),
+       PINMUX_ITEM(emac_pins_mii),
+       PINMUX_ITEM(emac_pins_mdio),
+       PINMUX_ITEM(emifa_pins_cs3),
+       PINMUX_ITEM(emifa_pins_cs4),
+       PINMUX_ITEM(emifa_pins_nand),
+       PINMUX_ITEM(uart2_pins_txrx),
+       PINMUX_ITEM(uart2_pins_rtscts),
 };
 
 static const struct lpsc_resource lpsc[] = {
diff --git a/include/configs/hawkboard.h b/include/configs/hawkboard.h
index 638643a..12acb27 100644
--- a/include/configs/hawkboard.h
+++ b/include/configs/hawkboard.h
@@ -34,6 +34,7 @@
 #define CONFIG_MACH_DAVINCI_HAWK
 #define CONFIG_ARM926EJS               /* arm926ejs CPU core */
 #define CONFIG_SOC_DA8XX               /* TI DA8xx SoC */
+#define CONFIG_SOC_DA850               /* TI DA850 SoC */
 #define CONFIG_SYS_CLK_FREQ            clk_get(DAVINCI_ARM_CLKID)
 #define CONFIG_SYS_OSCIN_FREQ          24000000
 #define CONFIG_SYS_TIMERBASE           DAVINCI_TIMER0_BASE
diff --git a/nand_spl/board/davinci/da8xxevm/Makefile 
b/nand_spl/board/davinci/da8xxevm/Makefile
index 7b06cd2..616e6f1 100644
--- a/nand_spl/board/davinci/da8xxevm/Makefile
+++ b/nand_spl/board/davinci/da8xxevm/Makefile
@@ -43,6 +43,7 @@ SOBJS = _divsi3.o \
 COBJS  = cpu.o \
        davinci_nand.o \
        pinmux.o \
+       da850_pinmux.o \
        div0.o \
        hawkboard_nand_spl.o \
        memsize.o \
@@ -82,6 +83,10 @@ $(obj)pinmux.c:
        @rm -f $@
        @ln -s $(TOPDIR)/arch/arm/cpu/arm926ejs/davinci/pinmux.c $@
 
+$(obj)da850_pinmux.c:
+       @rm -f $@
+       @ln -s $(TOPDIR)/arch/arm/cpu/arm926ejs/davinci/da850_pinmux.c $@
+
 # from drivers/mtd/nand directory
 $(obj)davinci_nand.c:
        @rm -f $@
-- 
1.7.0.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to