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

2015-05-05 Thread York Sun


On 03/27/2015 12:48 AM, Shengzhou Liu wrote:
> 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
> - Memory: 2GB Micron MT40A512M8HX unbuffered 32-bit fixed 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 card and eMMC on-board
> - 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 
> ---
> v4: squashed ddr patch to this one. 
> v3: updated readme.
> v2: updated the printout of serdes refclk.
> 

Applied to u-boot-mpc85xx master. Awaiting upstream.

York

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2015-04-26 Thread Masahiro Yamada
Hi.

Sorry for my late reply.

2015-04-24 0:38 GMT+09:00 York Sun :
> Resend with corrected email address.
>
> +Masahiro Yamada
>
> On 04/23/2015 01:27 AM, Liu Shengzhou-B36685 wrote:
>>
>>> -Original Message-
>>> From: Sun York-R58495
>>> Sent: Friday, April 17, 2015 3:22 AM
>>> To: Liu Shengzhou-B36685; u-boot@lists.denx.de
>>> Subject: Re: [PATCH v4] powerpc/t1023rdb: Add T1023 RDB board support
>>>
>>> On 03/27/2015 12:48 AM, Shengzhou Liu wrote:
 T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC.

 +++ b/configs/T1023RDB_NAND_defconfig
 @@ -0,0 +1,5 @@
 +CONFIG_SPL=y
 +CONFIG_SYS_EXTRA_OPTIONS="PPC_T1023,T1023RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND"
 ++S:CONFIG_PPC=y
 ++S:CONFIG_MPC85xx=y
 ++S:CONFIG_TARGET_T102XRDB=y
>>>
>>> Please do not use CONFIG_SYS_EXTRA_OPTIONS for new boards.
>>>
>>> York
>>
>> I noted "config SYS_EXTRA_OPTIONS string "Extra Options (DEPRECATED)" in 
>> Kconfig.
>> But we still have to use the CONFIG_SYS_EXTRA_OPTIONS in current 
>> configuration
>> Infrastructure, unless a newer approach is available in future.
>>
>> Because there are some something like 'SPL_FSL_PBL', 'NAND', 
>> 'SPIFLASH''SDCARD' which must be
>> defined dynamically during build u-boot for various boot-mode in those 
>> *_defconfig files
>> instead of in static include/config.h
>
> I was thinking to use "select" in Kconfig. But as you said, there are some
> macros not standardized. Maybe it is too early to enforce that. Let's hear 
> from
> Masahiro Yamada.
>

As you notice, many macros are missing from Kconfig,
so we can not ban SYS_EXTRA_OPTIONS yet.



-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2015-04-23 Thread York Sun
Resend with corrected email address.

+Masahiro Yamada

On 04/23/2015 01:27 AM, Liu Shengzhou-B36685 wrote:
> 
>> -Original Message-
>> From: Sun York-R58495
>> Sent: Friday, April 17, 2015 3:22 AM
>> To: Liu Shengzhou-B36685; u-boot@lists.denx.de
>> Subject: Re: [PATCH v4] powerpc/t1023rdb: Add T1023 RDB board support
>>
>> On 03/27/2015 12:48 AM, Shengzhou Liu wrote:
>>> T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC.
>>>
>>> +++ b/configs/T1023RDB_NAND_defconfig
>>> @@ -0,0 +1,5 @@
>>> +CONFIG_SPL=y
>>> +CONFIG_SYS_EXTRA_OPTIONS="PPC_T1023,T1023RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND"
>>> ++S:CONFIG_PPC=y
>>> ++S:CONFIG_MPC85xx=y
>>> ++S:CONFIG_TARGET_T102XRDB=y
>>
>> Please do not use CONFIG_SYS_EXTRA_OPTIONS for new boards.
>>
>> York
> 
> I noted "config SYS_EXTRA_OPTIONS string "Extra Options (DEPRECATED)" in 
> Kconfig.
> But we still have to use the CONFIG_SYS_EXTRA_OPTIONS in current 
> configuration 
> Infrastructure, unless a newer approach is available in future.
> 
> Because there are some something like 'SPL_FSL_PBL', 'NAND', 
> 'SPIFLASH''SDCARD' which must be 
> defined dynamically during build u-boot for various boot-mode in those 
> *_defconfig files 
> instead of in static include/config.h

I was thinking to use "select" in Kconfig. But as you said, there are some
macros not standardized. Maybe it is too early to enforce that. Let's hear from
Masahiro Yamada.

York
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2015-04-23 Thread York Sun
+Masahiro Yamada

On 04/23/2015 01:27 AM, Liu Shengzhou-B36685 wrote:
> 
>> -Original Message-
>> From: Sun York-R58495
>> Sent: Friday, April 17, 2015 3:22 AM
>> To: Liu Shengzhou-B36685; u-boot@lists.denx.de
>> Subject: Re: [PATCH v4] powerpc/t1023rdb: Add T1023 RDB board support
>>
>> On 03/27/2015 12:48 AM, Shengzhou Liu wrote:
>>> T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC.
>>>
>>> +++ b/configs/T1023RDB_NAND_defconfig
>>> @@ -0,0 +1,5 @@
>>> +CONFIG_SPL=y
>>> +CONFIG_SYS_EXTRA_OPTIONS="PPC_T1023,T1023RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND"
>>> ++S:CONFIG_PPC=y
>>> ++S:CONFIG_MPC85xx=y
>>> ++S:CONFIG_TARGET_T102XRDB=y
>>
>> Please do not use CONFIG_SYS_EXTRA_OPTIONS for new boards.
>>
>> York
> 
> I noted "config SYS_EXTRA_OPTIONS string "Extra Options (DEPRECATED)" in 
> Kconfig.
> But we still have to use the CONFIG_SYS_EXTRA_OPTIONS in current 
> configuration 
> Infrastructure, unless a newer approach is available in future.
> 
> Because there are some something like 'SPL_FSL_PBL', 'NAND', 
> 'SPIFLASH''SDCARD' which must be 
> defined dynamically during build u-boot for various boot-mode in those 
> *_defconfig files 
> instead of in static include/config.h

I was thinking to use "select" in Kconfig. But as you said, there are some
macros not standardized. Maybe it is too early to enforce that. Let's hear from
Masahiro.

York
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2015-04-23 Thread shengzhou....@freescale.com

> -Original Message-
> From: Sun York-R58495
> Sent: Friday, April 17, 2015 3:22 AM
> To: Liu Shengzhou-B36685; u-boot@lists.denx.de
> Subject: Re: [PATCH v4] powerpc/t1023rdb: Add T1023 RDB board support
> 
> On 03/27/2015 12:48 AM, Shengzhou Liu wrote:
> > T1023RDB is a Freescale Reference Design Board that hosts the T1023 SoC.
> >
> > +++ b/configs/T1023RDB_NAND_defconfig
> > @@ -0,0 +1,5 @@
> > +CONFIG_SPL=y
> > +CONFIG_SYS_EXTRA_OPTIONS="PPC_T1023,T1023RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND"
> > ++S:CONFIG_PPC=y
> > ++S:CONFIG_MPC85xx=y
> > ++S:CONFIG_TARGET_T102XRDB=y
> 
> Please do not use CONFIG_SYS_EXTRA_OPTIONS for new boards.
> 
> York

I noted "config SYS_EXTRA_OPTIONS string "Extra Options (DEPRECATED)" in 
Kconfig.
But we still have to use the CONFIG_SYS_EXTRA_OPTIONS in current configuration 
Infrastructure, unless a newer approach is available in future.

Because there are some something like 'SPL_FSL_PBL', 'NAND', 'SPIFLASH''SDCARD' 
which must be 
defined dynamically during build u-boot for various boot-mode in those 
*_defconfig files 
instead of in static include/config.h

Shengzhou
 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2015-04-16 Thread York Sun
On 03/27/2015 12:48 AM, Shengzhou Liu wrote:
> 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
> - Memory: 2GB Micron MT40A512M8HX unbuffered 32-bit fixed 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 card and eMMC on-board
> - 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 
> ---
> v4: squashed ddr patch to this one. 
> v3: updated readme.
> v2: updated the printout of serdes refclk.
> 


> diff --git a/configs/T1023RDB_NAND_defconfig b/configs/T1023RDB_NAND_defconfig
> new file mode 100644
> index 000..23c2f03
> --- /dev/null
> +++ b/configs/T1023RDB_NAND_defconfig
> @@ -0,0 +1,5 @@
> +CONFIG_SPL=y
> +CONFIG_SYS_EXTRA_OPTIONS="PPC_T1023,T1023RDB,RAMBOOT_PBL,SPL_FSL_PBL,NAND"
> ++S:CONFIG_PPC=y
> ++S:CONFIG_MPC85xx=y
> ++S:CONFIG_TARGET_T102XRDB=y

Please do not use CONFIG_SYS_EXTRA_OPTIONS for new boards.

York

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2015-03-27 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
- Memory: 2GB Micron MT40A512M8HX unbuffered 32-bit fixed 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 card and eMMC on-board
- 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 
---
v4: squashed ddr patch to this one. 
v3: updated readme.
v2: updated the printout of serdes refclk.

 board/freescale/t102xrdb/MAINTAINERS|  5 ++
 board/freescale/t102xrdb/Makefile   |  2 +-
 board/freescale/t102xrdb/README | 97 ++---
 board/freescale/t102xrdb/ddr.c  | 78 +-
 board/freescale/t102xrdb/eth_t102xrdb.c | 27 -
 board/freescale/t102xrdb/t1023_rcw.cfg  |  8 +++
 board/freescale/t102xrdb/t102xrdb.c | 93 ++-
 board/freescale/t102xrdb/t102xrdb.h |  4 +-
 configs/T1023RDB_NAND_defconfig |  5 ++
 configs/T1023RDB_SDCARD_defconfig   |  5 ++
 configs/T1023RDB_SECURE_BOOT_defconfig  |  4 ++
 configs/T1023RDB_SPIFLASH_defconfig |  5 ++
 configs/T1023RDB_defconfig  |  4 ++
 configs/T1024RDB_NAND_defconfig |  2 +-
 configs/T1024RDB_SDCARD_defconfig   |  2 +-
 configs/T1024RDB_SECURE_BOOT_defconfig  |  2 +-
 configs/T1024RDB_SPIFLASH_defconfig |  2 +-
 configs/T1024RDB_defconfig  |  2 +-
 include/configs/T102xRDB.h  | 79 +++
 19 files changed, 382 insertions(+), 44 deletions(-)
 create mode 100644 board/freescale/t102xrdb/t1023_rcw.cfg
 create mode 100644 configs/T1023RDB_NAND_defconfig
 create mode 100644 configs/T1023RDB_SDCARD_defconfig
 create mode 100644 configs/T1023RDB_SECURE_BOOT_defconfig
 create mode 100644 configs/T1023RDB_SPIFLASH_defconfig
 create mode 100644 configs/T1023RDB_defconfig

diff --git a/board/freescale/t102xrdb/MAINTAINERS 
b/board/freescale/t102xrdb/MAINTAINERS
index dc554d4..297e63a 100644
--- a/board/freescale/t102xrdb/MAINTAINERS
+++ b/board/freescale/t102xrdb/MAINTAINERS
@@ -8,3 +8,8 @@ F:  configs/T1024RDB_NAND_defconfig
 F: configs/T1024RDB_SDCARD_defconfig
 F: configs/T1024RDB_SPIFLASH_defconfig
 F: configs/T1024RDB_SECURE_BOOT_defconfig
+F: configs/T1023RDB_defconfig
+F: configs/T1023RDB_NAND_defconfig
+F: configs/T1023RDB_SDCARD_defconfig
+F: configs/T1023RDB_SPIFLASH_defconfig
+F: configs/T1023RDB_SECURE_BOOT_defconfig
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..922450e 100644
--- a/board/freescale/t102xrdb/README
+++ b/board/freescale/t102xrdb/README
@@ -98,6 +98,30 @@ 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
+
+
 Me