PATCH: U-Boot support for Olimex SAM9L-9260 development board
Subsystems (2)
Hi,
I added support for the Olimex SAM9L-9260 development board to the current git source tree.
The original code is from the at91sam9260ek implementation and has been modified to work with the Olimex board.
I also changed cpu/arm926ejs/at91/ether.c to be able to specify a custom PHY address with CONFIG_EMAC_PHY_ADDR instead of having the fixed address "0x00" in the code.
---
board/sam9l9260/config.mk +1 -0
@@ -0,0 +1 @@ +TEXT_BASE = 0x23f00000
board/sam9l9260/led.c +64 -0
64 lines not on this page · raw message
board/sam9l9260/Makefile +60 -0
60 lines not on this page · raw message
board/sam9l9260/nand.c +78 -0
78 lines not on this page · raw message
board/sam9l9260/partition.c +40 -0
@@ -0,0 +1,40 @@ +/* +* (C) Copyright 2008 +* Ulf Samuelsson <[email protected]> +* +* 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/sam9l9260/sam9l9260.c +260 -0
260 lines not on this page · raw message
cpu/arm926ejs/at91/ether.c +0 -0
@@ -30,6 +30,10 @@ extern int macb_eth_initialize(int id, v
#if defined(CONFIG_MACB) && defined(CONFIG_CMD_NET) void at91sam9_eth_initialize(bd_t *bi)
{
+#if defined(CONFIG_EMAC_PHY_ADDR)
+ macb_eth_initialize(0, (void *)AT91_BASE_EMAC, CONFIG_EMAC_PHY_ADDR);
+#else
macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
+#endif
}
#endif
Binary files git-orig/.git/index and git-olimex/.git/index differ
include/configs/sam9l9260.h +211 -0
211 lines not on this page · raw message
Makefile +0 -0
@@ -2459,6 +2459,9 @@ at91cap9adk_config : unconfig
at91sam9260ek_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
+sam9l9260_config: unconfig
+ @$(MKCONFIG) $(@:_config=) arm arm926ejs sam9l9260 NULL at91
+
########################################################################
## ARM Integrator boards - see doc/README-integrator for more info.integratorap_config \
---
Dear Jean-Christophe,
Quoted 11 lines · In message <[email protected]> Markus Kammerstetter wrote:
Hi,
I added support for the Olimex SAM9L-9260 development board to the current git source tree.
The original code is from the at91sam9260ek implementation and has been modified to work with the Olimex board.I also changed
cpu/arm926ejs/at91/ether.cto be able to specify a custom PHY address withCONFIG_EMAC_PHY_ADDRinstead of having the fixed address "0x00" in the code.Signed-off-by Markus Kammerstetter <m.kammerstetter <at> tbmn.org>
This patch was sumbitted while the merge window was open.
Is there any special reason it was not added, and the submitter received no feedback?
Best regards,
Wolfgang Denk
Signature · 5 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 If something is different, it's either better or worse, and usually both. - Larry Wall
Quoted 13 lines · Wolfgang Denk
Dear Jean-Christophe,
Quoted 10 lines · In message <[email protected]> Markus Kammerstetter wrote:
Hi,
I added support for the Olimex SAM9L-9260 development board to the current git source tree.
The original code is from the at91sam9260ek implementation and has been modified to work with the Olimex board.I also changed
cpu/arm926ejs/at91/ether.cto be able to specify a custom PHY address withCONFIG_EMAC_PHY_ADDRinstead of having the fixed address "0x00" in the code.
Quoted 6 lines
Quoted 1 line
Signed-off-by Markus Kammerstetter <m.kammerstetter <at> tbmn.org>This patch was sumbitted while the merge window was open.
Is there any special reason it was not added, and the submitter received no feedback?
I'm currently reviewing it
Best Regards,
J.