Re: [U-Boot] [PATCH v3] powerpc/t1023rdb: Add T1023 RDB board support

2015-03-25 Thread prabha...@freescale.com

> -Original Message-
> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Shengzhou Liu
> Sent: Monday, March 16, 2015 3:07 PM
> To: u-boot@lists.denx.de; Sun York-R58495
> Subject: [U-Boot] [PATCH v3] powerpc/t1023rdb: Add T1023 RDB board support
> 
> T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC.
> 
> T1023RDB board Overview
> ---
> - T1023 SoC integrating two 64-bit e5500 cores up to 1.4GHz
> - CoreNet fabric supporting coherent and noncoherent transactions with
>   prioritization and bandwidth allocation
> - SDRAM memory: 2GB Micron MT40A512M8HX unbuffered 32-bit DDR4 without
> ECC
> - Accelerator: DPAA components consist of FMan, BMan, QMan, DCE and SEC
> - Ethernet interfaces:
>   - one 1G RGMII port on-board(RTL8211F PHY)
>   - one 1G SGMII port on-board(RTL8211F PHY)
>   - one 2.5G SGMII port on-board(AQR105 PHY)
> - PCIe: Two Mini-PCIe connectors on-board.
> - SerDes: 4 lanes up to 10.3125GHz
> - NOR:  128MB S29GL01GS110TFIV10 Spansion NOR Flash
> - NAND: 512MB S34MS04G200BFI000 Spansion NAND Flash
> - eSPI: 64MB S25FL512SAGMFI010 Spansion SPI flash.
> - USB: one Type-A USB 2.0 port with internal PHY
> - eSDHC: support SD/MMC and eMMC card
> - 256Kbit M24256 I2C EEPROM
> - RTC: Real-time clock DS1339 on I2C bus
> - UART: one serial port on-board with RJ45 connector
> - Debugging: JTAG/COP for T1023 debugging
> 
> As well updated T1024RDB to add T1023RDB.

> 
> Signed-off-by: Shengzhou Liu 
> ---
> v3: updated readme.
> v2: updated the printout of serdes refclk.
> 
>  board/freescale/t102xrdb/Makefile   |  2 +-
>  board/freescale/t102xrdb/README | 96 ++
> ---
>  board/freescale/t102xrdb/eth_t102xrdb.c | 23 ++--
> board/freescale/t102xrdb/t1023_rcw.cfg  |  8 +++
>  board/freescale/t102xrdb/t102xrdb.c | 93
> ++--
>  board/freescale/t102xrdb/t102xrdb.h |  4 +-
>  include/configs/T102xRDB.h  | 73 +
>  7 files changed, 262 insertions(+), 37 deletions(-)  create mode 100644
> board/freescale/t102xrdb/t1023_rcw.cfg
> 
> diff --git a/board/freescale/t102xrdb/Makefile
> b/board/freescale/t102xrdb/Makefile
> index a0cf8f6..0520066 100644
> --- a/board/freescale/t102xrdb/Makefile
> +++ b/board/freescale/t102xrdb/Makefile
> @@ -8,7 +8,7 @@ ifdef CONFIG_SPL_BUILD
>  obj-y += spl.o
>  else
>  obj-y   += t102xrdb.o
> -obj-y   += cpld.o
> +obj-$(CONFIG_T1024RDB)   += cpld.o
>  obj-y   += eth_t102xrdb.o
>  obj-$(CONFIG_PCI)   += pci.o
>  endif
> diff --git a/board/freescale/t102xrdb/README
> b/board/freescale/t102xrdb/README index 2b17f50..35edfbd 100644
> --- a/board/freescale/t102xrdb/README
> +++ b/board/freescale/t102xrdb/README
> @@ -98,6 +98,29 @@ T1024RDB board Overview
>   - Four I2C ports
> 
> 
> +T1023RDB board Overview
> +---
> +- T1023 SoC integrating two 64-bit e5500 cores up to 1.4GHz
> +- CoreNet fabric supporting coherent and noncoherent transactions with
> +  prioritization and bandwidth allocation
> +- SDRAM memory: 2GB Micron MT40A512M8HX unbuffered 32-bit DDR4 w/o
> ECC
> +- Accelerator: DPAA components consist of FMan, BMan, QMan, DCE and SEC
> +- Ethernet interfaces:
> +  - one 1G RGMII port on-board(RTL8211FS PHY)
> +  - one 1G SGMII port on-board(RTL8211FS PHY)
> +  - one 2.5G SGMII port on-board(AQR105 PHY)
> +- PCIe: Two Mini-PCIe connectors on-board.
> +- SerDes: 4 lanes up to 10.3125GHz
> +- NOR:  128MB S29GL01GS110TFIV10 Spansion NOR Flash
> +- NAND: 512MB S34MS04G200BFI000 Spansion NAND Flash
> +- eSPI: 64MB S25FL512SAGMFI010 Spansion SPI flash.
> +- USB: one Type-A USB 2.0 port with internal PHY
> +- eSDHC: support SD/MMC and eMMC card
> +- 256Kbit M24256 I2C EEPROM
> +- RTC: Real-time clock DS1339U on I2C bus
> +- UART: one serial port on-board with RJ45 connector
> +- Debugging: JTAG/COP for T1023 debugging
> +
>  Memory map on T1024RDB
>  --
>  Start Address  End Address  Description  Size
> @@ -124,22 +147,32 @@ Start Address   End Address Definition
>   Max size
>  0xEFF2  0xEFF3  u-boot env (current bank)128KB
>  0xEFF0  0xEFF1  FMAN Ucode (current bank)128KB
>  0xEFE0  0xEFE3  QE firmware (current bank)   256KB
> -0xED30  0xEFEF  rootfs (alt bank)44MB
> +0xED30  0xEFDF  rootfs (alt bank)44MB
> +0xED00  0xED2F  Guest image #3 (alternate bank) 3MB
> +0xECD0  0xECFF  Guest image #2 (alternate bank) 3MB
> +0xECA0   0xECCF  Guest image #

[U-Boot] [PATCH v3] powerpc/t1023rdb: Add T1023 RDB board support

2015-03-16 Thread Shengzhou Liu
T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC.

T1023RDB board Overview
---
- T1023 SoC integrating two 64-bit e5500 cores up to 1.4GHz
- CoreNet fabric supporting coherent and noncoherent transactions with
  prioritization and bandwidth allocation
- SDRAM memory: 2GB Micron MT40A512M8HX unbuffered 32-bit DDR4 without ECC
- Accelerator: DPAA components consist of FMan, BMan, QMan, DCE and SEC
- Ethernet interfaces:
  - one 1G RGMII port on-board(RTL8211F PHY)
  - one 1G SGMII port on-board(RTL8211F PHY)
  - one 2.5G SGMII port on-board(AQR105 PHY)
- PCIe: Two Mini-PCIe connectors on-board.
- SerDes: 4 lanes up to 10.3125GHz
- NOR:  128MB S29GL01GS110TFIV10 Spansion NOR Flash
- NAND: 512MB S34MS04G200BFI000 Spansion NAND Flash
- eSPI: 64MB S25FL512SAGMFI010 Spansion SPI flash.
- USB: one Type-A USB 2.0 port with internal PHY
- eSDHC: support SD/MMC and eMMC card
- 256Kbit M24256 I2C EEPROM
- RTC: Real-time clock DS1339 on I2C bus
- UART: one serial port on-board with RJ45 connector
- Debugging: JTAG/COP for T1023 debugging

As well updated T1024RDB to add T1023RDB.

Signed-off-by: Shengzhou Liu 
---
v3: updated readme.
v2: updated the printout of serdes refclk.

 board/freescale/t102xrdb/Makefile   |  2 +-
 board/freescale/t102xrdb/README | 96 ++---
 board/freescale/t102xrdb/eth_t102xrdb.c | 23 ++--
 board/freescale/t102xrdb/t1023_rcw.cfg  |  8 +++
 board/freescale/t102xrdb/t102xrdb.c | 93 ++--
 board/freescale/t102xrdb/t102xrdb.h |  4 +-
 include/configs/T102xRDB.h  | 73 +
 7 files changed, 262 insertions(+), 37 deletions(-)
 create mode 100644 board/freescale/t102xrdb/t1023_rcw.cfg

diff --git a/board/freescale/t102xrdb/Makefile 
b/board/freescale/t102xrdb/Makefile
index a0cf8f6..0520066 100644
--- a/board/freescale/t102xrdb/Makefile
+++ b/board/freescale/t102xrdb/Makefile
@@ -8,7 +8,7 @@ ifdef CONFIG_SPL_BUILD
 obj-y += spl.o
 else
 obj-y   += t102xrdb.o
-obj-y   += cpld.o
+obj-$(CONFIG_T1024RDB)   += cpld.o
 obj-y   += eth_t102xrdb.o
 obj-$(CONFIG_PCI)   += pci.o
 endif
diff --git a/board/freescale/t102xrdb/README b/board/freescale/t102xrdb/README
index 2b17f50..35edfbd 100644
--- a/board/freescale/t102xrdb/README
+++ b/board/freescale/t102xrdb/README
@@ -98,6 +98,29 @@ T1024RDB board Overview
  - Four I2C ports
 
 
+T1023RDB board Overview
+---
+- T1023 SoC integrating two 64-bit e5500 cores up to 1.4GHz
+- CoreNet fabric supporting coherent and noncoherent transactions with
+  prioritization and bandwidth allocation
+- SDRAM memory: 2GB Micron MT40A512M8HX unbuffered 32-bit DDR4 w/o ECC
+- Accelerator: DPAA components consist of FMan, BMan, QMan, DCE and SEC
+- Ethernet interfaces:
+  - one 1G RGMII port on-board(RTL8211FS PHY)
+  - one 1G SGMII port on-board(RTL8211FS PHY)
+  - one 2.5G SGMII port on-board(AQR105 PHY)
+- PCIe: Two Mini-PCIe connectors on-board.
+- SerDes: 4 lanes up to 10.3125GHz
+- NOR:  128MB S29GL01GS110TFIV10 Spansion NOR Flash
+- NAND: 512MB S34MS04G200BFI000 Spansion NAND Flash
+- eSPI: 64MB S25FL512SAGMFI010 Spansion SPI flash.
+- USB: one Type-A USB 2.0 port with internal PHY
+- eSDHC: support SD/MMC and eMMC card
+- 256Kbit M24256 I2C EEPROM
+- RTC: Real-time clock DS1339U on I2C bus
+- UART: one serial port on-board with RJ45 connector
+- Debugging: JTAG/COP for T1023 debugging
+
 Memory map on T1024RDB
 --
 Start Address  End Address  DescriptionSize
@@ -124,22 +147,32 @@ Start Address   End Address Definition
Max size
 0xEFF2  0xEFF3  u-boot env (current bank)  128KB
 0xEFF0  0xEFF1  FMAN Ucode (current bank)  128KB
 0xEFE0  0xEFE3  QE firmware (current bank) 256KB
-0xED30  0xEFEF  rootfs (alt bank)  44MB
+0xED30  0xEFDF  rootfs (alt bank)  44MB
+0xED00  0xED2F  Guest image #3 (alternate bank) 3MB
+0xECD0  0xECFF  Guest image #2 (alternate bank) 3MB
+0xECA0 0xECCF  Guest image #1 (alternate bank) 3MB
+0xEC90 0xEC9F  HV config device tree(alt bank) 1MB
 0xEC80  0xEC8F  Hardware device tree (alt bank) 1MB
-0xEC02  0xEC7F  Linux.uImage (alt bank)7MB + 
875KB
+0xEC70 0xEC7F  HV.uImage (alternate bank)  1MB
+0xEC02  0xEC6F  Linux.uImage (alt bank)~7MB
 0xEC00  0xEC01  RCW (alt bank) 128KB
 0xEBF4  0xEBFF  u-boot (alt bank)  768KB
 0xEBF2  0xEBF3  u-boot env (alt bank)  128KB
 0xEBF0  0xEBF1  FMAN ucode (alt bank)  128KB
 0xEBE0  0xEBE3  QE firmware (alt bank) 256KB
-0xE930  0xEBEF  rootfs (current ba