Skip to contentSkip to conversation

skat91: add support for SK-AT91SAM9/SIM508 board

PATCH New Vladimir Zapolskiy 2 participants 3 messages Dec 6, 2011 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 skat91: add support for SK-AT91SAM9/SIM508 board

This change adds complete support for Starterkit SK-AT91SAM9/SIM508 board.

---
 MAINTAINERS                                    |    4 +
 board/starterkit/skat91_sim508/Makefile        |   44 ++++++
 board/starterkit/skat91_sim508/partition.c     |   39 +++++
 board/starterkit/skat91_sim508/skat91_sim508.c |  124 ++++++++++++++++
 boards.cfg                                     |    2 +
 include/configs/skat91_sim508.h                |  181 ++++++++++++++++++++++++
 6 files changed, 394 insertions(+), 0 deletions(-)
 create mode 100644 board/starterkit/skat91_sim508/Makefile
 create mode 100644 board/starterkit/skat91_sim508/partition.c
 create mode 100644 board/starterkit/skat91_sim508/skat91_sim508.c
 create mode 100644 include/configs/skat91_sim508.h
MAINTAINERS +4 -0
index 689c766..966f17f 100644
@@ -899,6 +899,10 @@ Sughosh Ganu <[email protected]>
 
 	hawkboard	ARM926EJS (OMAP-L138)
 
+Vladimir Zapolskiy <[email protected]>
+
+	skat91_sim508	ARM926EJS (AT91SAM9260 SoC)
+
 -------------------------------------------------------------------------
 
 Unknown / orphaned boards:
board/starterkit/skat91_sim508/Makefile new file +44 -0

44 lines not on this page · raw message

board/starterkit/skat91_sim508/partition.c new file +39 -0
new file mode 100644
index 0000000..f82046d
@@ -0,0 +1,39 @@
+/*
+ * StarterKit SK-AT91SAM9/SIM508 board support, dataflash partitions
+ *
+ * Copyright (C) 2011 Vladimir Zapolskiy <[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., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+#include <common.h>
+#include <config.h>
+#include <asm/hardware.h>
+#include <dataflash.h>
+
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
+
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+	{ CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0 },
+};
+
+/* define the area offsets */
+dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
+	{ 0x00000000, 0x00003FFF, FLAG_PROTECT_SET,   0, "Bootstrap" },
+	{ 0x00004000, 0x00007FFF, FLAG_PROTECT_CLEAR, 0, "Environment" },
+	{ 0x00008000, 0x00037FFF, FLAG_PROTECT_SET,   0, "U-Boot" },
+	{ 0x00038000, 0x0041FFFF, FLAG_PROTECT_CLEAR, 0, "Kernel" },
+};
board/starterkit/skat91_sim508/skat91_sim508.c new file +124 -0

124 lines not on this page · raw message

boards.cfg +2 -0
index d9021aa..391f3ca 100644
@@ -119,6 +119,8 @@ otc570_dataflash             arm         arm926ejs   otc570              esd
 pm9261                       arm         arm926ejs   pm9261              ronetix        at91        pm9261:AT91SAM9261
 pm9263                       arm         arm926ejs   pm9263              ronetix        at91        pm9263:AT91SAM9263
 pm9g45                       arm         arm926ejs   pm9g45              ronetix        at91        pm9g45:AT91SAM9G45
+skat91_sim508                arm         arm926ejs   skat91_sim508       starterkit     at91        skat91_sim508:AT91SAM9260,SYS_USE_NANDFLASH
+skat91_sim508_dataflash      arm         arm926ejs   skat91_sim508       starterkit     at91        skat91_sim508:AT91SAM9260,SYS_USE_DATAFLASH_CS0
 da830evm                     arm         arm926ejs   da8xxevm            davinci        davinci
 da850evm                     arm         arm926ejs   da8xxevm            davinci        davinci
 da850_am18xxevm              arm         arm926ejs   da8xxevm            davinci        davinci
include/configs/skat91_sim508.h new file +181 -0

181 lines not on this page · raw message

Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 skat91: add support for SK-AT91SAM9/SIM508 board

Dear Vladimir Zapolskiy,

Quoted 4 lines · In message <[email protected]>…

This change adds complete support for Starterkit SK-AT91SAM9/SIM508 board.

You probably want to put the responsible custodian on Cc: if you want to see this patch processed.

...

include/configs/skat91_sim508.h line 179

Quoted 4 lines
include/configs/skat91_sim508.h new file +4 -0
+#define CONFIG_EXTRA_ENV_SETTINGS				\
+	"ethaddr=00:01:02:B4:36:65\0"				\
+	"ipaddr=192.168.3.2\0"					\
+	"serverip=192.168.3.1\0"				\

NAK. We don't allow such crap in mainline.

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
Time is a drug. Too much of it kills you.
                                      - Terry Pratchett, _Small Gods_
#2 lore raw

PATCH 1/1 skat91: add support for SK-AT91SAM9/SIM508 board

Hi Wolfgang,

Quoted 10 lines · Wolfgang Denk

Dear Vladimir Zapolskiy,

Quoted 4 lines · In message<[email protected]>…

This change adds complete support for Starterkit SK-AT91SAM9/SIM508 board.

You probably want to put the responsible custodian on Cc: if you want to see this patch processed.

thank you for the hint, I'll definitely add Reinhard Meyer into Cc: list.

Quoted 8 lines

...

include/configs/skat91_sim508.h line 179

Quoted 4 lines
include/configs/skat91_sim508.h new file +4 -0
+#define CONFIG_EXTRA_ENV_SETTINGS				\
+	"ethaddr=00:01:02:B4:36:65\0"				\
+	"ipaddr=192.168.3.2\0"					\
+	"serverip=192.168.3.1\0"				\

NAK. We don't allow such crap in mainline.

CONFIG_EXTRA_ENV_SETTINGS is removed in version 2.

Signature · 2 lines
With best wishes,
Vladimir