APM821xx: Add bluestone board support
PATCH v6 2/2 APM821xx: Add bluestone board support
From: Tirumala Marri <[email protected]>
Add support code for bluestone board wth APM821XX processor based. This patch includes early board init, misc init, configure EBC, initializes UIC, MAKEALL, board.cfg and MAINTAINERS file.
---
V5:
* MAKEALL change is not needed anymore
* CONFIG_SYS_NOR_CS is not used anywhere.
* CONFIG_PHY_RESET_R is not used anywhere
V6:
* Correcting indentation.
---
--- MAINTAINERS | 4 + board/amcc/bluestone/Makefile | 52 +++++++++++ board/amcc/bluestone/bluestone.c | 111 +++++++++++++++++++++++ board/amcc/bluestone/config.mk | 40 +++++++++ board/amcc/bluestone/init.S | 60 +++++++++++++ boards.cfg | 1 + include/configs/bluestone.h | 178 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 446 insertions(+), 0 deletions(-)
MAINTAINERS +4 -0
@@ -500,6 +500,10 @@ Detlev Zundel <[email protected]> inka4x0 MPC5200 +Tirumala Marri <[email protected]> + + bluestone APM821XX + ------------------------------------------------------------------------- Unknown / orphaned boards:
board/amcc/bluestone/Makefile new file +52 -0
52 lines not on this page · raw message
board/amcc/bluestone/bluestone.c new file +111 -0
111 lines not on this page · raw message
board/amcc/bluestone/config.mk new file +40 -0
@@ -0,0 +1,40 @@ +# +# Copyright (c) 2010, Applied Micro Circuits Corporation +# Author: Tirumala R Marri <[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 +# +# Applied Micro APM821XX Evaluation board. +# + +sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp + +ifndef TEXT_BASE +TEXT_BASE = 0xFFFA0000 +endif + +PLATFORM_CPPFLAGS += -DCONFIG_440=1 + +ifeq ($(debug),1) +PLATFORM_CPPFLAGS += -DDEBUG +endif + +ifeq ($(dbcr),1) +PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000 +endif
board/amcc/bluestone/init.S new file +60 -0
60 lines not on this page · raw message
boards.cfg +1 -0
@@ -184,6 +184,7 @@ t3corp powerpc ppc4xx zeus powerpc ppc4xx acadia powerpc ppc4xx - amcc bamboo powerpc ppc4xx - amcc +bluestone powerpc ppc4xx - amcc bubinga powerpc ppc4xx - amcc ebony powerpc ppc4xx - amcc katmai powerpc ppc4xx - amcc
include/configs/bluestone.h new file +178 -0
178 lines not on this page · raw message
Signature · 1 line
1.6.1.rc3
PATCH v6 2/2 APM821xx: Add bluestone board support
Dear tmarri at apm.com,
Quoted 7 lines · In message <[email protected]> you wrote:
From: Tirumala Marri <[email protected]>
Add support code for bluestone board wth APM821XX processor based. This patch includes early board init, misc init, configure EBC, initializes UIC, MAKEALL, board.cfg and
MAINTAINERSfile.Signed-off-by Tirumala R Marri <[email protected]
...
include/configs/bluestone.h line 2
Quoted 5 lines
include/configs/bluestone.h new file +2
-0@@ -0,0 +1,178 @@ +/* +* bluestone.h - configuration for Blouestone (APM821XX)
s/Blouestone/Bluestone/ ?
...
Quoted 1 line
include/configs/bluestone.h new file +1
-0+#define SPD_EEPROM_ADDRESS {0x53, 0x51}/* SPD i2c spd addresses */
...
Quoted 3 lines
include/configs/bluestone.h new file +3
-0+#define CONFIG_SYS_I2C_SPEED 400000/* I2C speed */ +#define CONFIG_SYS_I2C_MULTI_EEPROMS +#define CONFIG_SYS_I2C_EEPROM_ADDR (0xa8 >> 1)
...
Quoted 1 line
+#define
CONFIG_4xx_CONFIG_I2C_EEPROM_ADDR0x52
Please replace the "(0xa8 >> 1)" by a plain 0x54 like youdo for the other I2C addresses as well. No need to make reading more difficult than necessary.
Thanks.
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 Real computer scientists don't comment their code. The identifiers are so long they can't afford the disk space.