]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm, davinci: Move pinmux functions from board to arch tree
authorChristian Riesch <christian.riesch@omicron.at>
Mon, 28 Nov 2011 23:46:14 +0000 (23:46 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:36 +0000 (23:59 +0100)
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Syed Mohammed Khasim <sm.khasim@gmail.com>
Cc: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Nick Thompson <nick.thompson@ge.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Nick Thompson <nick.thompson@ge.com>
arch/arm/cpu/arm926ejs/davinci/Makefile
arch/arm/cpu/arm926ejs/davinci/pinmux.c [moved from board/davinci/common/davinci_pinmux.c with 100% similarity]
arch/arm/include/asm/arch-davinci/hardware.h
board/davinci/common/Makefile
board/davinci/da8xxevm/da830evm.c
board/davinci/da8xxevm/da850evm.c
board/davinci/da8xxevm/hawkboard_nand_spl.c
board/davinci/ea20/ea20.c
nand_spl/board/davinci/da8xxevm/Makefile

index aeb058acd095e154b79945c38947a1651524b582..2105ec5de9589f91f1ee35ba585346bed4026e0c 100644 (file)
@@ -27,7 +27,7 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(SOC).o
 
-COBJS-y                                += cpu.o timer.o psc.o
+COBJS-y                                += cpu.o timer.o psc.o pinmux.o
 COBJS-$(CONFIG_DA850_LOWLEVEL) += da850_lowlevel.o
 COBJS-$(CONFIG_SOC_DM355)      += dm355.o
 COBJS-$(CONFIG_SOC_DM365)      += dm365.o
index 3e9a3b6de2b6e8e6d7a1b38f9a2d2a60fdc99c56..06819a68c8820369ccee5346cc3112c5e43e218a 100644 (file)
@@ -480,6 +480,8 @@ struct davinci_syscfg_regs {
 #define davinci_syscfg_regs \
        ((struct davinci_syscfg_regs *)DAVINCI_BOOTCFG_BASE)
 
+#define pinmux(x)      (&davinci_syscfg_regs->pinmux[x])
+
 /* Emulation suspend bits */
 #define DAVINCI_SYSCFG_SUSPSRC_EMAC            (1 << 5)
 #define DAVINCI_SYSCFG_SUSPSRC_I2C             (1 << 16)
index 9d7b1642386bbe11fe12fc4493c1ce4341d697bc..bc99da38be9b03af97a89c4c231ea33db334772a 100644 (file)
@@ -29,7 +29,7 @@ endif
 
 LIB    = $(obj)lib$(VENDOR).o
 
-COBJS  := misc.o davinci_pinmux.o
+COBJS  := misc.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
index 2021e7324298dd0a41728d47b02ba5ce4bbc72e2..c45c94b4c0d6ccc231dfe6db5f74ba8e715e2ec9 100644 (file)
@@ -46,8 +46,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define pinmux(x)      (&davinci_syscfg_regs->pinmux[x])
-
 /* SPI0 pin muxer settings */
 static const struct pinmux_config spi0_pins[] = {
        { pinmux(7), 1, 3 },
index e0a3bbefcf0477e577efb71e2c44b9173487e4a6..844e585f60164aeb8b8dad61a6ea1594bf1e4821 100644 (file)
@@ -34,8 +34,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define pinmux(x)      (&davinci_syscfg_regs->pinmux[x])
-
 /* SPI0 pin muxer settings */
 static const struct pinmux_config spi1_pins[] = {
        { pinmux(5), 1, 1 },
index 32b17ce7f4e4fa22a807400e2c54da270671eae2..0fdccac435fb0b3615a816c5218e723075e11e40 100644 (file)
@@ -32,8 +32,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define pinmux(x)                      (&davinci_syscfg_regs->pinmux[x])
-
 static const struct pinmux_config mii_pins[] = {
        { pinmux(2), 8, 1 },
        { pinmux(2), 8, 2 },
index 720a3607a75edb32d1524b38d83c5f871646d335..9b6c4c047dd4b7cefa98d6183a6c0ed6a91eab23 100644 (file)
@@ -40,8 +40,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define pinmux(x)      (&davinci_syscfg_regs->pinmux[x])
-
 static const struct da8xx_panel lcd_panel = {
        /* Casio COM57H531x */
        .name = "Casio_COM57H531x",
index accf71607c54be0126d2e4d114cafb09cc49b7e1..7b06cd2fe5e115b07b4abcf9411bb365dea8903e 100644 (file)
@@ -42,7 +42,7 @@ SOBJS = _divsi3.o \
 
 COBJS  = cpu.o \
        davinci_nand.o \
-       davinci_pinmux.o \
+       pinmux.o \
        div0.o \
        hawkboard_nand_spl.o \
        memsize.o \
@@ -78,9 +78,9 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # create symbolic links for common files
 
 # from board directory
-$(obj)davinci_pinmux.c:
+$(obj)pinmux.c:
        @rm -f $@
-       @ln -s $(TOPDIR)/board/davinci/common/davinci_pinmux.c $@
+       @ln -s $(TOPDIR)/arch/arm/cpu/arm926ejs/davinci/pinmux.c $@
 
 # from drivers/mtd/nand directory
 $(obj)davinci_nand.c: