Skip to contentSkip to conversation

Support for Calao USB A9263 board based on AT91SAM9263 CPU

PATCH New Thomas Petazzoni 2 participants 2 messages Sep 11, 2009 – Sep 22, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support for Calao USB A9263 board based on AT91SAM9263 CPU

The Calao USB A9263 board is a board manufactured and sold by Calao Systems <http://www.calao-systems.com>. Its components are very similar to the AT91SAM9263EK board, so its configuration is based on the configuration of this board. There are however some
differences: different clocks, no LCD, etc.

---
 MAINTAINERS                       |    4 +
 MAKEALL                           |    1 +
 Makefile                          |    3 +
 board/calao/usb-a9263/Makefile    |   58 +++++++++++
 board/calao/usb-a9263/config.mk   |   24 +++++
 board/calao/usb-a9263/partition.c |   38 +++++++
 board/calao/usb-a9263/usb-a9263.c |  198 +++++++++++++++++++++++++++++++++++++
 include/configs/usb-a9263.h       |  184 ++++++++++++++++++++++++++++++++++
 8 files changed, 510 insertions(+), 0 deletions(-)
 create mode 100644 board/calao/usb-a9263/Makefile
 create mode 100644 board/calao/usb-a9263/config.mk
 create mode 100644 board/calao/usb-a9263/partition.c
 create mode 100644 board/calao/usb-a9263/usb-a9263.c
 create mode 100644 include/configs/usb-a9263.h
MAINTAINERS +4 -0
index e9db278..28fe0ae 100644
@@ -643,6 +643,10 @@ Peter Pearse <[email protected]>
 	versatile	ARM926EJ-S
 	versatile	ARM926EJ-S
 
+Thomas Petazzoni <[email protected]>
+
+	usb-a9263	ARM926EJS (AT91SAM9263 SoC)
+
 Dave Peverley <[email protected]>
 
 	omap730p2	ARM926EJS
MAKEALL +1 -0
index f0ed8ea..c0200a9 100755
@@ -617,6 +617,7 @@ LIST_at91="			\
 	SBC35_A9G20		\
 	TNY_A9260		\
 	TNY_A9G20		\
+	usb9263			\
 "
 
 #########################################################################
Makefile +3 -0
index 0449a5b..087c592 100644
@@ -2914,6 +2914,9 @@ TNY_A9260_config	:	unconfig
 	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
 	@$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
 
+usb_a9263_config	:	unconfig
+	@$(MKCONFIG) -a usb-a9263 arm arm926ejs usb-a9263 calao at91
+
 ########################################################################
 ## ARM Integrator boards - see doc/README-integrator for more info.
 integratorap_config	\
board/calao/usb-a9263/Makefile new file +58 -0

58 lines not on this page · raw message

board/calao/usb-a9263/config.mk new file +24 -0
new file mode 100644
index 0000000..2724a7d
@@ -0,0 +1,24 @@
+#
+# (C) Copyright 2009
+# Thomas Petazzoni, Free Electrons, <[email protected]>
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# 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
+#
+
+TEXT_BASE = 0x23f00000
board/calao/usb-a9263/partition.c new file +38 -0
new file mode 100644
index 0000000..614ef0d
@@ -0,0 +1,38 @@
+/*
+ * (C) Copyright 2008-2009
+ * Ulf Samuelsson <[email protected]>
+ * Thomas Petazzoni, Free Electrons, <[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[CONFIG_SYS_MAX_DATAFLASH_BANKS];
+
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+	{CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},	/* Logical adress, CS */
+};
+
+/*define the area offsets*/
+dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
+	{0x00000000, 0x00001FFF, FLAG_PROTECT_SET,   0, "Bootstrap"},
+	{0x00002000, 0x00003FFF, FLAG_PROTECT_CLEAR, 0, "Environment"},
+	{0x00004000, 0xFFFFFFFF, FLAG_PROTECT_SET,   0, "U-Boot"},
+};
board/calao/usb-a9263/usb-a9263.c new file +198 -0

198 lines not on this page · raw message

include/configs/usb-a9263.h new file +184 -0

184 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 1/1 Support for Calao USB A9263 board based on AT91SAM9263 CPU

Dear Thomas Petazzoni,

Quoted 8 lines · In message <1252668335-17986-1-git-send-email-thomas.petazzoni@free-electrons.c…

The Calao USB A9263 board is a board manufactured and sold by Calao Systems <http://www.calao-systems.com>. Its components are very similar to the AT91SAM9263EK board, so its configuration is based on the configuration of this board. There are however some
differences: different clocks, no LCD, etc.

...

board/calao/usb-a9263/usb-a9263.c line 189

Quoted 12 lines
board/calao/usb-a9263/usb-a9263.c new file +12 -0
+#ifdef CONFIG_RESET_PHY_R
+void reset_phy(void)
+{
+#ifdef CONFIG_MACB
+	/*
+	 * Initialize ethernet HW addr prior to starting Linux,
+	 * needed for nfsroot
+	 */
+	eth_init(gd->bd);
+#endif
+}
+#endif

You must not initialize the Ethernet interface unless U-Boot is running a network coimmand. And you should then disable it again before booting Linux. Please read the FAQ and fix the Linux driver issues in Linux.

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
A weak mind is like a microscope, which magnifies trifling things,
but cannot receive great ones.      -- Philip Earl of Chesterfield