public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/T104xD4RDB: Add T1040/T1042D4RDB boards support
Date: Thu, 26 Feb 2015 10:17:48 -0800	[thread overview]
Message-ID: <54EF634C.2000904@freescale.com> (raw)
In-Reply-To: <1422972044-29758-1-git-send-email-vijay.rai@freescale.com>



On 02/03/2015 06:00 AM, Vijay Rai wrote:
>     T1040D4RDB is a Freescale reference board that hosts the T1040 SoC.
>     It is similar to T1040RDB board with the following differences :
>     - Has DDR4 memory
>     - PHY ports have different PHY addresses
>     - RTC support
>     - Both QE-TDM and DIU connector 
> 
>     T1040D4RDB supports 0x66 serdes protocol with following interfaces
>         - 2 RGMII's on DTSEC4, DTSEC5
>         - 1 SGMII on DTSEC3
> 
>     T1042D4RDB is variant of T1040D4RDB which hosts T1042 SoC
>     (Personality of T1040 without L2 switch)
>     T1042D4RDB supports 0x86 serdes protocol with following interfaces
>         - 2 RGMII's on DTSEC4, DTSEC5
>         - 3 SGMII on DTSEC1, DTSEC2 & DTSEC3
> 
> Signed-off-by: Vijay Rai <vijay.rai@freescale.com>
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> ---
>  board/freescale/t104xrdb/MAINTAINERS     |    8 ++++++
>  board/freescale/t104xrdb/ddr.c           |    7 +++++
>  board/freescale/t104xrdb/ddr.h           |   12 ++++++++
>  board/freescale/t104xrdb/eth.c           |   20 +++++++++++--
>  board/freescale/t104xrdb/t1040d4_rcw.cfg |    7 +++++
>  board/freescale/t104xrdb/t1042d4_rcw.cfg |    7 +++++
>  configs/T1040D4RDB_NAND_defconfig        |    5 ++++
>  configs/T1040D4RDB_SDCARD_defconfig      |    5 ++++
>  configs/T1040D4RDB_SPIFLASH_defconfig    |    5 ++++
>  configs/T1040D4RDB_defconfig             |    4 +++
>  configs/T1042D4RDB_NAND_defconfig        |    5 ++++
>  configs/T1042D4RDB_SDCARD_defconfig      |    5 ++++
>  configs/T1042D4RDB_SPIFLASH_defconfig    |    5 ++++
>  configs/T1042D4RDB_defconfig             |    4 +++
>  include/configs/T104xRDB.h               |   46 ++++++++++++++++++++++++------
>  15 files changed, 134 insertions(+), 11 deletions(-)
>  create mode 100644 board/freescale/t104xrdb/t1040d4_rcw.cfg
>  create mode 100644 board/freescale/t104xrdb/t1042d4_rcw.cfg
>  create mode 100644 configs/T1040D4RDB_NAND_defconfig
>  create mode 100644 configs/T1040D4RDB_SDCARD_defconfig
>  create mode 100644 configs/T1040D4RDB_SPIFLASH_defconfig
>  create mode 100644 configs/T1040D4RDB_defconfig
>  create mode 100644 configs/T1042D4RDB_NAND_defconfig
>  create mode 100644 configs/T1042D4RDB_SDCARD_defconfig
>  create mode 100644 configs/T1042D4RDB_SPIFLASH_defconfig
>  create mode 100644 configs/T1042D4RDB_defconfig
> 
> diff --git a/board/freescale/t104xrdb/MAINTAINERS b/board/freescale/t104xrdb/MAINTAINERS
> index 13d9be9..32e044f 100644
> --- a/board/freescale/t104xrdb/MAINTAINERS
> +++ b/board/freescale/t104xrdb/MAINTAINERS
> @@ -6,7 +6,13 @@ F:	include/configs/T104xRDB.h
>  F:	configs/T1040RDB_defconfig
>  F:	configs/T1040RDB_NAND_defconfig
>  F:	configs/T1040RDB_SPIFLASH_defconfig
> +F:	configs/T1040D4RDB_defconfig
> +F:	configs/T1040D4RDB_NAND_defconfig
> +F:	configs/T1040D4RDB_SPIFLASH_defconfig
>  F:	configs/T1042RDB_defconfig
> +F:	configs/T1042D4RDB_defconfig
> +F:	configs/T1042D4RDB_NAND_defconfig
> +F:	configs/T1042D4RDB_SPIFLASH_defconfig
>  F:	configs/T1042RDB_PI_defconfig
>  F:	configs/T1042RDB_PI_NAND_defconfig
>  F:	configs/T1042RDB_PI_SPIFLASH_defconfig
> @@ -15,6 +21,8 @@ T1040RDB_SDCARD BOARD
>  #M:	-
>  S:	Maintained
>  F:	configs/T1040RDB_SDCARD_defconfig
> +F:	configs/T1040D4RDB_SDCARD_defconfig
> +F:	configs/T1042D4RDB_SDCARD_defconfig
>  F:	configs/T1042RDB_PI_SDCARD_defconfig
>  
>  T1040RDB_SECURE_BOOT BOARD
> diff --git a/board/freescale/t104xrdb/ddr.c b/board/freescale/t104xrdb/ddr.c
> index e1148e5..217c8ea 100644
> --- a/board/freescale/t104xrdb/ddr.c
> +++ b/board/freescale/t104xrdb/ddr.c
> @@ -91,9 +91,16 @@ found:
>  	popts->zq_en = 1;
>  
>  	/* DHC_EN =1, ODT = 75 Ohm */
> +#ifdef CONFIG_SYS_FSL_DDR4
> +	popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_80ohm);
> +	popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_80ohm) |
> +		DDR_CDR2_VREF_OVRD(70);       /* Vref = 70% */
> +#else
>  	popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_75ohm);
>  	popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_75ohm);
> +#endif
>  }
> +#endif
>  
>  #if defined(CONFIG_DEEP_SLEEP)
>  void board_mem_sleep_setup(void)

You added extra #endif. Did you miss something? Please check your local code and
make sure it compiles when sending patches.

York

      reply	other threads:[~2015-02-26 18:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 14:00 [U-Boot] [PATCH] powerpc/T104xD4RDB: Add T1040/T1042D4RDB boards support Vijay Rai
2015-02-26 18:17 ` York Sun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54EF634C.2000904@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox