Skip to contentSkip to conversation

Add support for AT91SAM9263EK

PATCH New Jared Holzman 2 participants 2 messages Apr 22, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for AT91SAM9263EK

This patch adds support for the AT91SAM9263EK board. It builds on top of the support added for the AT91SAM9260EK by Stelian Pop. It was created against the u-boot-at91 custodian tree, so I hope this is correct place to submit it.
---

Makefile +3 -0
index cf16bd6..c6d903e 100644
@@ -2311,6 +2311,9 @@ at91rm9200dk_config    :    unconfig
 at91sam9260ek_config    :    unconfig
     @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
 
+at91sam9263ek_config    :    unconfig
+    @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91sam9
+
 cmc_pu2_config    :    unconfig
     @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
 
drivers/net/macb.c +0 -0
index 703784e..499c7da 100644
@@ -417,13 +417,13 @@ static int macb_init(struct eth_device *netdev, 

bd_t *bd)

     /* choose RMII or MII mode. This depends on the board */
 #ifdef CONFIG_RMII
-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260)
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || defined 
(CONFIG_AT91SAM9263)
     macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
 #else
     macb_writel(macb, USRIO, 0);
 #endif
 #else
-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260)
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || defined 
(CONFIG_AT91SAM9263)
     macb_writel(macb, USRIO, MACB_BIT(CLKEN));
 #else
     macb_writel(macb, USRIO, MACB_BIT(MII));
(quoted diff) +0 -0

b/include/asm-arm/arch-at91sam9/hardware.h
index 80b334f..4f9f2a8 100644

include/asm-arm/arch-at91sam9/hardware.h +4 -0
@@ -28,6 +28,10 @@
 #include <asm/arch/at91sam9261.h>
 #elif defined(CONFIG_AT91SAM9263)
 #include <asm/arch/at91sam9263.h>
+#define AT91_BASE_EMAC    AT91SAM9263_BASE_EMAC
+#define AT91_BASE_SPI    AT91SAM9263_BASE_SPI0
+#define AT91_ID_UHP    AT91SAM9263_ID_UHP
+#define AT91_PMC_UHP    AT91SAM926x_PMC_UHP
 #elif defined(CONFIG_AT91SAM9RL)
 #include <asm/arch/at91sam9rl.h>
 #elif defined(CONFIG_AT91CAP9)
net/eth.c +1 -1
index 99897ca..f0b9091 100644
@@ -284,7 +284,7 @@ int eth_initialize(bd_t *bis)
 #if defined(CONFIG_FSLDMAFEC)
     mcdmafec_initialize(bis);
 #endif
-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260)
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || 

defined(CONFIG_AT91SAM9263)

     at91sam9_eth_initialize(bis);

#endif

Signature · 21 lines
Regards,

Jared Holzman

------------------------------------------------------------------------

*Electronics Design Engineer*

*Genesys Electronics Design Pty Ltd*

Unit 5, 33 Ryde Rd Pymble
NSW, Australia 2073

Direct: +612 9496 8924
Phone: +612 9496 8900
Fax: +612 9496 8999

j.holzman at genesysdesign.com.au <mailto:[email protected]>
www.genesysdesign.com.au <http://www.genesysdesign.com.au>

------------------------------------------------------------------------
#1 lore raw

PATCH 1/1 Add support for AT91SAM9263EK

Quoted 5 lines · Jared Holzman

This patch adds support for the AT91SAM9263EK board. It builds on top of the support added for the AT91SAM9260EK by Stelian Pop. It was created against the u-boot-at91 custodian tree, so I hope this is correct place to submit it.
---

Patch line wrapped please resend it, use git tools as example and coding style issue (use tab for indentation)

Quoted 18 lines
Makefile +0 -0
index cf16bd6..c6d903e 100644
@@ -2311,6 +2311,9 @@ at91rm9200dk_config    :    unconfig

at91sam9260ek_config : unconfig

    @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
Makefile +3 -0
+at91sam9263ek_config    :    unconfig
+    @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91sam9
+

cmc_pu2_config : unconfig

    @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
drivers/net/macb.c +0 -0
index 703784e..499c7da 100644

drivers/net/macb.c static int macb_init(struct eth_device *netdev, bd_t · line 421

Quoted 6 lines
drivers/net/macb.c +1 -1
@@ -417,13 +417,13 @@ static int macb_init(struct eth_device *netdev, bd_t 
 *bd)
    /* choose RMII or MII mode. This depends on the board */
 #ifdef CONFIG_RMII
-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260)
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || defined 
 (CONFIG_AT91SAM9263)

We may create an other CONFIG_ for this

Quoted 14 lines
drivers/net/macb.c +1 -1
    macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
 #else
    macb_writel(macb, USRIO, 0);
 #endif
 #else
-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260)
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || defined 
 (CONFIG_AT91SAM9263)
    macb_writel(macb, USRIO, MACB_BIT(CLKEN));
#else
    macb_writel(macb, USRIO, MACB_BIT(MII));
include/asm-arm/arch-at91sam9/hardware.h +0 -0
index 80b334f..4f9f2a8 100644

include/asm-arm/arch-at91sam9/hardware.h

Quoted 1 line
include/asm-arm/arch-at91sam9/hardware.h +0 -1
--- a/include/asm-arm/arch-at91sam9/hardware.h

Best Regards,
J.