Custom AFEB9260 board support
Subsystems (3)
PATCH 1/1 Custom AFEB9260 board support
This patch provides support for AFEB9260 board, a product of OpenSource hardware and software. Some commertial projects are made with this design. A board is basically AT91SAM9260-EK with some modifications and different peripherals and different parts used. Main purpose of this project is to gain experience in hardware design.
More info: http://groups.google.com/group/arm9fpga-evolution-board
(In Russian only, sorry).
Subversion repository: svn://194.85.238.22/home/users/george/svn/arm9eb
---
This is rebased version of previous one.
--- MAKEALL | 1 + Makefile | 3 + board/afeb9260/Makefile | 56 ++++++++ board/afeb9260/afeb9260.c | 243 +++++++++++++++++++++++++++++++++ board/afeb9260/config.mk | 1 + board/afeb9260/nand.c | 78 +++++++++++ board/afeb9260/partition.c | 36 +++++ board/atmel/at91sam9260ek/partition.c | 4 +- include/configs/afeb9260.h | 171 +++++++++++++++++++++++ net/eth.c | 1 + 10 files changed, 592 insertions(+), 2 deletions(-) create mode 100644 board/afeb9260/Makefile create mode 100644 board/afeb9260/afeb9260.c create mode 100644 board/afeb9260/config.mk create mode 100644 board/afeb9260/nand.c create mode 100644 board/afeb9260/partition.c create mode 100644 include/configs/afeb9260.h
MAKEALL +1 -0
@@ -542,6 +542,7 @@ LIST_at91=" \ kb9202 \ mp2usb \ m501sk \ + afeb9260 \ " #########################################################################
Makefile +3 -0
@@ -2521,6 +2521,9 @@ at91cap9adk_config : unconfig at91sam9260ek_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91 +afeb9260_config : unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91 + ######################################################################## ## ARM Integrator boards - see doc/README-integrator for more info. integratorap_config \
board/afeb9260/Makefile new file +56 -0
56 lines not on this page · raw message
board/afeb9260/afeb9260.c new file +243 -0
243 lines not on this page · raw message
board/afeb9260/config.mk new file +1 -0
@@ -0,0 +1 @@ +TEXT_BASE = 0x21f00000
board/afeb9260/nand.c new file +78 -0
78 lines not on this page · raw message
board/afeb9260/partition.c new file +36 -0
@@ -0,0 +1,36 @@ +/* +* +* 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_CLEAR ,0 ,"Bootstrap" }, + {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, + {0x00008400 ,0x00041FFF ,FLAG_PROTECT_CLEAR ,0 ,"U-Boot" }, +};
board/atmel/at91sam9260ek/partition.c +2 -2
@@ -30,7 +30,7 @@ struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {/*define the area offsets*/ dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_CLEAR ,0 ,"Bootstrap" }, + {0x00000000 ,0x000041FF ,FLAG_PROTECT_CLEAR ,0 ,"Bootstrap" }, {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00041FFF ,FLAG_PROTECT_CLEAR ,0 ,"U-Boot" }, + {0x00008400 ,0x00041FFF ,FLAG_PROTECT_CLEAR ,0 ,"U-Boot" }, };
include/configs/afeb9260.h new file +171 -0
171 lines not on this page · raw message
net/eth.c +1 -0
@@ -190,6 +190,7 @@ int eth_initialize(bd_t *bis)#if defined(CONFIG_IXP4XX_NPE )npe_initialize (bis);#endif +if (!eth_devices) {puts ("No ethernet found.\n" );show_boot_progress (-64 );
Signature · 1 line
1.5.6.5
PATCH 1/1 Custom AFEB9260 board support
Quoted 25 lines · Sergey Lapin
This patch provides support for AFEB9260 board, a product of OpenSource hardware and software. Some commertial projects are made with this design. A board is basically AT91SAM9260-EK with some modifications and different peripherals and different parts used. Main purpose of this project is to gain experience in hardware design.
More info: http://groups.google.com/group/arm9fpga-evolution-board
(In Russian only, sorry).
Subversion repository: svn://194.85.238.22/home/users/george/svn/arm9ebSigned-off-by Sergey Lapin <[email protected]>---
This is rebased version of previous one.--- MAKEALL | 1 + Makefile | 3 + board/afeb9260/Makefile | 56 ++++++++ board/afeb9260/afeb9260.c | 243 +++++++++++++++++++++++++++++++++ board/afeb9260/config.mk | 1 + board/afeb9260/nand.c | 78 +++++++++++ board/afeb9260/partition.c | 36 +++++ board/atmel/at91sam9260ek/partition.c | 4 +- include/configs/afeb9260.h | 171 +++++++++++++++++++++++ net/eth.c | 1 +
<snip>
net/eth.c int eth_initialize(bd_t *bis) · line 196
Quoted 13 lines
net/eth.c +1
-0@@ -190,6 +190,7 @@ int eth_initialize(bd_t *bis)#if defined(CONFIG_IXP4XX_NPE )npe_initialize (bis);#endif +if (!eth_devices) {puts ("No ethernet found.\n" );show_boot_progress (-64 );
This is orthogonal to the rest of your patch and I suspect was unintentional. Please remove and resubmit.
regards,
Ben
PATCH 1/1 Custom AFEB9260 board support
This patch provides support for AFEB9260 board, a product of OpenSource hardware and software. Some commertial projects are made with this design. A board is basically AT91SAM9260-EK with some modifications and different peripherals and different parts used. Main purpose of this project is to gain experience in hardware design.
More info: http://groups.google.com/group/arm9fpga-evolution-board
(In Russian only, sorry).
Subversion repository: svn://194.85.238.22/home/users/george/svn/arm9eb
---
Fixed wrong leftovers of net/eth.c somehow appeared insde patch due to rebase messed-up somewhere
--- MAKEALL | 1 + Makefile | 3 + board/afeb9260/Makefile | 56 ++++++++ board/afeb9260/afeb9260.c | 243 +++++++++++++++++++++++++++++++++ board/afeb9260/config.mk | 1 + board/afeb9260/nand.c | 78 +++++++++++ board/afeb9260/partition.c | 36 +++++ board/atmel/at91sam9260ek/partition.c | 4 +- include/configs/afeb9260.h | 171 +++++++++++++++++++++++ 9 files changed, 591 insertions(+), 2 deletions(-) create mode 100644 board/afeb9260/Makefile create mode 100644 board/afeb9260/afeb9260.c create mode 100644 board/afeb9260/config.mk create mode 100644 board/afeb9260/nand.c create mode 100644 board/afeb9260/partition.c create mode 100644 include/configs/afeb9260.h
MAKEALL +1 -0
@@ -542,6 +542,7 @@ LIST_at91=" \ kb9202 \ mp2usb \ m501sk \ + afeb9260 \ " #########################################################################
Makefile +3 -0
@@ -2521,6 +2521,9 @@ at91cap9adk_config : unconfig at91sam9260ek_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91 +afeb9260_config : unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91 + ######################################################################## ## ARM Integrator boards - see doc/README-integrator for more info. integratorap_config \
board/afeb9260/Makefile new file +56 -0
56 lines not on this page · raw message
board/afeb9260/afeb9260.c new file +243 -0
243 lines not on this page · raw message
board/afeb9260/config.mk new file +1 -0
@@ -0,0 +1 @@ +TEXT_BASE = 0x21f00000
board/afeb9260/nand.c new file +78 -0
78 lines not on this page · raw message
board/afeb9260/partition.c new file +36 -0
@@ -0,0 +1,36 @@ +/* +* +* 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_CLEAR ,0 ,"Bootstrap" }, + {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, + {0x00008400 ,0x00041FFF ,FLAG_PROTECT_CLEAR ,0 ,"U-Boot" }, +};
board/atmel/at91sam9260ek/partition.c +2 -2
@@ -30,7 +30,7 @@ struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {/*define the area offsets*/ dataflash_protect_t area_list[NB_DATAFLASH_AREA ] = { - {0x00000000 ,0x000041FF ,FLAG_PROTECT_CLEAR ,0 ,"Bootstrap" }, + {0x00000000 ,0x000041FF ,FLAG_PROTECT_CLEAR ,0 ,"Bootstrap" }, {0x00004200 ,0x000083FF ,FLAG_PROTECT_CLEAR ,0 ,"Environment" }, - {0x00008400 ,0x00041FFF ,FLAG_PROTECT_CLEAR ,0 ,"U-Boot" }, + {0x00008400 ,0x00041FFF ,FLAG_PROTECT_CLEAR ,0 ,"U-Boot" }, };
include/configs/afeb9260.h new file +171 -0
171 lines not on this page · raw message
Signature · 1 line
1.5.6.5
PATCH 1/1 Custom AFEB9260 board support
Hi, all!
Quoted 10 lines · Sergey Lapin
This patch provides support for AFEB9260 board, a product of OpenSource hardware and software. Some commertial projects are made with this design. A board is basically AT91SAM9260-EK with some modifications and different peripherals and different parts used. Main purpose of this project is to gain experience in hardware design.
More info: http://groups.google.com/group/arm9fpga-evolution-board
(In Russian only, sorry).
Subversion repository: svn://194.85.238.22/home/users/george/svn/arm9eb
Quoted 4 lines
Signed-off-by Sergey Lapin <[email protected]>---
Fixed wrong leftovers ofnet/eth.csomehow appeared insde patch due to rebase messed-up somewhere
Any comments regarding this patch?
S.