Added preliminary support for the AT91SAM9263-EK. The following has been tested:
Subsystems (4)
PATCH 1/1 Added preliminary support for the AT91SAM9263-EK. The following has been tested:
Makefile +3 -0
@@ -2347,6 +2347,9 @@ at91cap9adk_config : unconfig at91sam9260ek_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9 +at91sam9263ek_config : unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91sam9 + ######################################################################## ## ARM Integrator boards - see doc/README-integrator for more info. integratorap_config \
board/atmel/at91sam9263ek/Makefile new file +53 -0
53 lines not on this page · raw message
board/atmel/at91sam9263ek/at91sam9263ek.c new file +230 -0
230 lines not on this page · raw message
board/atmel/at91sam9263ek/config.mk new file +1 -0
@@ -0,0 +1 @@ +TEXT_BASE = 0x23f00000
board/atmel/at91sam9263ek/led.c new file +78 -0
78 lines not on this page · raw message
board/atmel/at91sam9263ek/nand.c new file +76 -0
76 lines not on this page · raw message
board/atmel/at91sam9263ek/partition.c new file +38 -0
@@ -0,0 +1,38 @@ +/* +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ +#include <common.h> +#include <config.h> +#include <asm/hardware.h> +#include <dataflash.h> + +AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS ]; + +struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS ] = { + {CFG_DATAFLASH_LOGIC_ADDR_CS0 ,0 },/* Logical adress, CS */ + {CFG_DATAFLASH_LOGIC_ADDR_CS1 ,1 } +}; + +/*define the area offsets*/ +dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { + {0x00000000 ,0x000041FF ,FLAG_PROTECT_SET ,0 ,"Bootstrap" }, + {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, + {0x00008400 ,0x00041FFF ,FLAG_PROTECT_SET ,0 ,"U-Boot" }, + {0x00042000 ,0x00251FFF ,FLAG_PROTECT_CLEAR ,0 ,"Kernel" }, + {0x00252000 ,0xFFFFFFFF ,FLAG_PROTECT_CLEAR ,0 ,"FS" }, +};
board/atmel/at91sam9263ek/u-boot.lds new file +57 -0
57 lines not on this page · raw message
drivers/net/macb.c +2 -2
@@ -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 ));
include/asm-arm/arch-at91sam9/at91sam9263.h new file +120 -0
120 lines not on this page · raw message
include/asm-arm/arch-at91sam9/at91sam9263_matrix.h new file +88 -0
88 lines not on this page · raw message
include/asm-arm/arch-at91sam9/at91sam9263_mc.h new file +140 -0
140 lines not on this page · raw message
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 )
include/asm-i386/arch new file +1 -0
@@ -0,0 +1 @@ +arch-i386
include/configs/at91sam9263ek.h new file +205 -0
205 lines not on this page · raw message
net/eth.c +1 -1
@@ -288,7 +288,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 · 1 line
1.5.2.2
PATCH 1/1 Added preliminary support for the AT91SAM9263-EK. The following has been tested:
In message <[email protected]> you wrote:
Commit message missing.
Signed-off-by line missing.
board/atmel/at91sam9263ek/Makefile line 6
Quoted 12 lines
board/atmel/at91sam9263ek/Makefile new file +6
-0@@ -0,0 +1,53 @@ +# +# (C) Copyright 2003-2008 +# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de. +# +# See file CREDITS for list of people who contributed to this +# project.
Please add your own Copyright message!
board/atmel/at91sam9263ek/at91sam9263ek.c line 7
Quoted 13 lines
board/atmel/at91sam9263ek/at91sam9263ek.c new file +7
-0@@ -0,0 +1,230 @@ +/* +* (C) Copyright 2007-2008 +* Stelian Pop <stelian.pop <at> leadtechdesign.com> +* Lead Tech Design <www.leadtechdesign.com> +* +* See file CREDITS for list of people who contributed to this +* project.
Ditto.
board/atmel/at91sam9263ek/led.c line 7
Quoted 13 lines
board/atmel/at91sam9263ek/led.c new file +7
-0@@ -0,0 +1,78 @@ +/* +* (C) Copyright 2007-2008 +* Stelian Pop <stelian.pop <at> leadtechdesign.com> +* Lead Tech Design <www.leadtechdesign.com> +* +* See file CREDITS for list of people who contributed to this +* project.
Ditto.
...
Quoted 4 lines
board/atmel/at91sam9263ek/led.c new file +4
-0+void power_LED_on (void ) +{ +at91_set_gpio_value (POWER_LED ,1 ); +}
board/atmel/at91sam9263ek/led.c line 48
Quoted 10 lines
board/atmel/at91sam9263ek/led.c new file +10
-0+ +void power_LED_off (void ) +{ +at91_set_gpio_value (POWER_LED ,0 ); +} + +void user1_LED_on (void ) +{ +at91_set_gpio_value (USER1_LED ,0 ); +}
..
This whole board/atmel/*/led.c stuff is a terrible mess and needs a major cleanup one day.
Anybody volunteering?
board/atmel/at91sam9263ek/nand.c line 6
Quoted 12 lines
board/atmel/at91sam9263ek/nand.c new file +6
-0@@ -0,0 +1,76 @@ +/* +* (C) Copyright 2007-2008 +* Stelian Pop <stelian.pop <at> leadtechdesign.com> +* Lead Tech Design <www.leadtechdesign.com> +* +* (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
Copyright entry...
board/atmel/at91sam9263ek/partition.c line 6
Quoted 12 lines
board/atmel/at91sam9263ek/partition.c new file +6
-0@@ -0,0 +1,38 @@ +/* +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version.
Ditto.
board/atmel/at91sam9263ek/u-boot.lds line 6
Quoted 12 lines
board/atmel/at91sam9263ek/u-boot.lds new file +6
-0@@ -0,0 +1,57 @@ +/* + * (C) Copyright 2002 + * Gary Jennejohn, DENX Software Engineering, <gj <at> denx.de> + * + * See file CREDITS for list of people who contributed to this + * project.
Ditto.
include/asm-arm/arch-at91sam9/at91sam9263.h line 4
Quoted 10 lines
include/asm-arm/arch-at91sam9/at91sam9263.h new file +4
-0@@ -0,0 +1,120 @@ +/* +* include/asm-arm/arch-at91/at91sam9263.h +* +* (C) 2006 Andrew Victor
Hm. The Linux kernel has a file that's looking suspiciously similar, but it reads:
(C) 2007 Atmel Corporation.
Which one is correct?
include/asm-arm/arch-at91sam9/at91sam9263_matrix.h line 5
Quoted 11 lines
include/asm-arm/arch-at91sam9/at91sam9263_matrix.h new file +5
-0@@ -0,0 +1,88 @@ +/* +* include/asm-arm/arch-at91/at91sam9260_matrix.h +* +* Memory Controllers (MATRIX, EBI) - System peripherals registers. +* Based on AT91SAM9260 datasheet revision B.
Here the Linux file has
Copyright (C) 2006 Atmel Corporation.
include/asm-arm/arch-at91sam9/at91sam9263_mc.h line 5
Quoted 11 lines
include/asm-arm/arch-at91sam9/at91sam9263_mc.h new file +5
-0@@ -0,0 +1,140 @@ +/* +* include/asm-arm/arch-at91/at91sam926x_mc.h +* +* Memory Controllers (SMC, SDRAMC) - System peripherals registers. +* Based on AT91SAM9261 datasheet revision D.
Copyright ?
include/configs/at91sam9263ek.h line 4
Quoted 10 lines
include/configs/at91sam9263ek.h new file +4
-0@@ -0,0 +1,205 @@ +/* +* (C) Copyright 2007-2008 +* Stelian Pop <stelian.pop <at> leadtechdesign.com> +* Lead Tech Design <www.leadtechdesign.com>
Ditto ?
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Change is the essential process of all existence. -- Spock, "Let That Be Your Last Battlefield", stardate 5730.2