mpc5200: Add a4m2k board port
PATCH v3 1/1 mpc5200: Add a4m2k board port
This patch adds the a4m2k MPC5200B board port. Its a derivate of the a3m071 board with only minor changes.
Additionally this patch includes some clean-up changes:
- Remove I2C support from a3m071 as its unused
- Fix/enhance default env variables
- Fix some comments
- Add newly introduced CONFIG_SPL_TARGET to automatically build "u-boot-img.bin"
- Fix dtb patching in READ desciption for SPL Linux booting:
"fdt chosen" needs to get called to patch/create the chosen node.
- Add missing call to spl_board_init():
Define CONFIG_SPL_BOARD_INIT so that spl_board_init() will get called in the SPL version.
---
v3:
- Fix dtb patching in READ desciption for SPL Linux booting
- Add missing call to spl_board_init()
v2:
- Enable CAN1 on I2C in GPS Port Configuration for a4m2k
MAINTAINERS | 1 + board/a3m071/README | 2 +- board/a3m071/a3m071.c | 91 +++++++++++++++++++++++++++++++++--- board/a3m071/is46r16320d.h | 35 ++++++++++++++ boards.cfg | 1 + include/configs/a3m071.h | 113 ++++++++++++++++++++++++++------------------- 6 files changed, 188 insertions(+), 55 deletions(-) create mode 100644 board/a3m071/is46r16320d.h
MAINTAINERS +1 -0
@@ -394,6 +394,7 @@ Ricardo Ribalda <[email protected]> Stefan Roese <[email protected]> a3m071 MPC5200 + a4m2k MPC5200 P3M7448 MPC7448
board/a3m071/README +1 -1
@@ -62,7 +62,7 @@ the following command: All this can be integrated into an environment command: => setenv upd_fdt 'tftp 1800000 a3m071/a3m071.dtb;run mtdargs addip2 addtty; \ - fdt addr 1800000;fdt boardsetup;erase fc060000 fc07ffff; \ + fdt addr 1800000;fdt boardsetup;fdt chosen;erase fc060000 fc07ffff; \ cp.b 1800000 fc060000 10000' => saveenv
board/a3m071/a3m071.c +84 -7
160 lines not on this page · raw message
board/a3m071/is46r16320d.h new file +35 -0
@@ -0,0 +1,35 @@ +/* +* (C) Copyright 2004 +* Mark Jonas, Freescale Semiconductor, mark.jonas at motorola.com. +* +* 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. +*/ + +#define SDRAM_DDR /* is DDR */ + +#if defined(CONFIG_MPC5200 ) +/* Settings for XLB = 132 MHz */ +/* see is46r16320d datasheet and MPC5200UM chap. 8.6.1. */ + +/* SDRAM Config Standard timing */ +#define SDRAM_MODE 0x008d0000 +#define SDRAM_EMODE 0x40010000 +#define SDRAM_CONTROL 0x70430f00 +#define SDRAM_CONFIG1 0x33622930 +#define SDRAM_CONFIG2 0x46670000 +#define SDRAM_TAPDELAY 0x10000000 + +#else +#error CONFIG_MPC5200 not defined +#endif
boards.cfg +1 -0
@@ -477,6 +477,7 @@ cmi_mpc5xx powerpc mpc5xx cmi PATI powerpc mpc5xx pati mpl a3m071 powerpc mpc5xxx a3m071 a4m072 powerpc mpc5xxx a4m072 +a4m2k powerpc mpc5xxx a3m071 - - a3m071:A4M2K BC3450 powerpc mpc5xxx bc3450 canmb powerpc mpc5xxx cm5200 powerpc mpc5xxx
include/configs/a3m071.h +66 -47
227 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH v3 1/1 mpc5200: Add a4m2k board port
Dear Stefan Roese,
Quoted 24 lines · In message <[email protected]> you wrote:
This patch adds the a4m2k MPC5200B board port. Its a derivate of the a3m071 board with only minor changes.
Additionally this patch includes some clean-up changes:
- Remove I2C support from a3m071 as its unused
- Fix/enhance default env variables
- Fix some comments
- Add newly introducedCONFIG_SPL_TARGETto automatically build "u-boot-img.bin"
- Fix dtb patching in READ desciption for SPL Linux booting:
"fdt chosen" needs to get called to patch/create the chosen node.
- Add missing call tospl_board_init():
DefineCONFIG_SPL_BOARD_INITso thatspl_board_init()will get called in the SPL version.Signed-off-by Stefan Roese <[email protected]>---
v3:
- Fix dtb patching in READ desciption for SPL Linux booting
- Add missing call tospl_board_init()v2:
- Enable CAN1 on I2C in GPS Port Configuration for a4m2k
Quoted 8 lines
MAINTAINERS | 1 + board/a3m071/README | 2 +- board/a3m071/a3m071.c | 91 +++++++++++++++++++++++++++++++++--- board/a3m071/is46r16320d.h | 35 ++++++++++++++ boards.cfg | 1 + include/configs/a3m071.h | 113 ++++++++++++++++++++++++++------------------- 6 files changed, 188 insertions(+), 55 deletions(-) create mode 100644 board/a3m071/is46r16320d.h
Applied to u-boot-mpc5xxx repo, 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 Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The chicken was involved, the pig was committed.