]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Move at91cap9 specific files to at91sam9 directory
authorStelian Pop <stelian@popies.net>
Wed, 26 Mar 2008 19:52:28 +0000 (20:52 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Mon, 31 Mar 2008 23:44:18 +0000 (01:44 +0200)
AT91CAP9 and AT91SAM9 SoCs are very close hardware wise, so a
common infrastructure can be used. Let this infrastructure be
named after the AT91SAM9 family, and move the existing AT91CAP9
files to the new place.

Signed-off-by: Stelian Pop <stelian@popies.net>
13 files changed:
Makefile
cpu/arm926ejs/at91sam9/Makefile [moved from cpu/arm926ejs/at91cap9/Makefile with 100% similarity]
cpu/arm926ejs/at91sam9/config.mk [moved from cpu/arm926ejs/at91cap9/config.mk with 100% similarity]
cpu/arm926ejs/at91sam9/ether.c [moved from cpu/arm926ejs/at91cap9/ether.c with 94% similarity]
cpu/arm926ejs/at91sam9/lowlevel_init.S [moved from cpu/arm926ejs/at91cap9/lowlevel_init.S with 97% similarity]
cpu/arm926ejs/at91sam9/spi.c [moved from cpu/arm926ejs/at91cap9/spi.c with 100% similarity]
cpu/arm926ejs/at91sam9/timer.c [moved from cpu/arm926ejs/at91cap9/timer.c with 97% similarity]
cpu/arm926ejs/at91sam9/usb.c [moved from cpu/arm926ejs/at91cap9/usb.c with 96% similarity]
include/asm-arm/arch-at91sam9/AT91CAP9.h [moved from include/asm-arm/arch-at91cap9/AT91CAP9.h with 100% similarity]
include/asm-arm/arch-at91sam9/clk.h [moved from include/asm-arm/arch-at91cap9/clk.h with 100% similarity]
include/asm-arm/arch-at91sam9/hardware.h [moved from include/asm-arm/arch-at91cap9/hardware.h with 100% similarity]
include/asm-arm/arch-at91sam9/memory-map.h [moved from include/asm-arm/arch-at91cap9/memory-map.h with 100% similarity]
net/eth.c

index 4255cf5a02ddc51b8f4337c0b6a75ed21c2f4c22..429a194753a52e97e7501693e4bb0e1d812b1f63 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2303,7 +2303,7 @@ xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$
 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
 
 at91cap9adk_config     :       unconfig
-       @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91cap9
+       @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
 
 at91rm9200dk_config    :       unconfig
        @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
similarity index 94%
rename from cpu/arm926ejs/at91cap9/ether.c
rename to cpu/arm926ejs/at91sam9/ether.c
index b7958d5aba1b0a8530ae19556d22869fca2302ba..8de1bb7c338ac7c1c5d20165f49ed1cbf9e19c69 100644 (file)
  */
 
 #include <common.h>
-#include <asm/arch/AT91CAP9.h>
+#include <asm/arch/hardware.h>
 
 extern int macb_eth_initialize(int id, void *regs, unsigned int phy_addr);
 
 #if defined(CONFIG_MACB) && defined(CONFIG_CMD_NET)
-void at91cap9_eth_initialize(bd_t *bi)
+void at91sam9_eth_initialize(bd_t *bi)
 {
        macb_eth_initialize(0, (void *)AT91C_BASE_MACB, 0x00);
 }
similarity index 97%
rename from cpu/arm926ejs/at91cap9/lowlevel_init.S
rename to cpu/arm926ejs/at91sam9/lowlevel_init.S
index 24d950cf74e6eacee87ca4289e62dfead40ffe33..40a3f6aaef6999c3b157ee5d50c48ec4958f7437 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * AT91CAP9 setup stuff
+ * AT91CAP9/SAM9 setup stuff
  *
  * (C) Copyright 2007-2008
  * Stelian Pop <stelian.pop <at> leadtechdesign.com>
similarity index 97%
rename from cpu/arm926ejs/at91cap9/timer.c
rename to cpu/arm926ejs/at91sam9/timer.c
index c6df5bd81b85527d11bfaa2fe79ee13b6dfc245d..79c135fad4f16dfc9188b61114d4517d42a94183 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/arch/hardware.h>
 
 /*
- * We're using the AT91CAP9 PITC in 32 bit mode, by
+ * We're using the AT91CAP9/SAM9 PITC in 32 bit mode, by
  * setting the 20 bit counter period to its maximum (0xfffff).
  */
 #define TIMER_LOAD_VAL 0xfffff
@@ -134,8 +134,7 @@ ulong get_tbclk(void)
 }
 
 /*
- * Reset the cpu by setting up the watchdog timer and let him time out
- * on the AT91CAP9ADK board
+ * Reset the cpu by setting up the watchdog timer and let him time out.
  */
 void reset_cpu(ulong ignored)
 {
similarity index 96%
rename from cpu/arm926ejs/at91cap9/usb.c
rename to cpu/arm926ejs/at91sam9/usb.c
index 69da5f3a92cb031701cb3142b8820e08b760f7a9..09292a6bed006e1e6c2dd880486c4e514b4dc7f2 100644 (file)
@@ -24,7 +24,6 @@
 #include <common.h>
 
 #if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
-#ifdef CONFIG_AT91CAP9
 
 #include <asm/arch/hardware.h>
 
@@ -50,5 +49,4 @@ int usb_cpu_init_fail(void)
        return usb_cpu_stop();
 }
 
-#endif /* CONFIG_AT91CAP9 */
 #endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
index 16a6dcbd8ca1dc09847ab0391550282c29d81e7b..1a98a9118334bbcaf17bc514f1d483bc182d79df 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -63,7 +63,7 @@ extern int atstk1000_eth_initialize(bd_t *);
 extern int atngw100_eth_initialize(bd_t *);
 extern int mcffec_initialize(bd_t*);
 extern int mcdmafec_initialize(bd_t*);
-extern int at91cap9_eth_initialize(bd_t *);
+extern int at91sam9_eth_initialize(bd_t *);
 
 #ifdef CONFIG_API
 extern void (*push_packet)(volatile void *, int);
@@ -285,7 +285,7 @@ int eth_initialize(bd_t *bis)
        mcdmafec_initialize(bis);
 #endif
 #if defined(CONFIG_AT91CAP9)
-       at91cap9_eth_initialize(bis);
+       at91sam9_eth_initialize(bis);
 #endif
 
        if (!eth_devices) {