RE: [PATCH v3 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

2020-10-20 Thread Y.b. Lu
Hi Meenakshi,

> -Original Message-
> From: U-Boot  On Behalf Of
> meenakshi.aggar...@nxp.com
> Sent: Monday, September 7, 2020 6:12 PM
> To: u-boot@lists.denx.de; Priyanka Jain 
> Cc: Varun Sethi ; Meenakshi Aggarwal
> 
> Subject: [PATCH v3 1/2] armv8: lx2162a: Add Soc changes to support LX2162A
> 
> From: Meenakshi Aggarwal 
> 
> LX2162 is LX2160 based SoC, it has same die as of LX2160
> with different packaging.
> 
> LX2162A support 64-bit 2.9GT/s DDR4 memory, i2c, micro-click module,
> microSD card, eMMC support, serial console, qspi nor flash, qsgmii,
> sgmii, 25g, 40g, 50g network interface, one usb 3.0 and serdes
> interface to support three PCIe gen3 interface.
> 
> Signed-off-by: Meenakshi Aggarwal 
> ---
>  arch/arm/cpu/armv8/Kconfig |  2 +-
>  arch/arm/cpu/armv8/fsl-layerscape/Kconfig  | 39 +--
>  arch/arm/cpu/armv8/fsl-layerscape/Makefile |  5 ++
>  arch/arm/cpu/armv8/fsl-layerscape/cpu.c|  9 ++--
>  arch/arm/cpu/armv8/fsl-layerscape/doc/README.soc   | 58
> ++
>  .../cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c|  8 +--
>  arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c | 19 ++-
>  arch/arm/cpu/armv8/fsl-layerscape/soc.c| 10 ++--
>  arch/arm/include/asm/arch-fsl-layerscape/config.h  |  6 +--
>  arch/arm/include/asm/arch-fsl-layerscape/cpu.h |  4 +-
>  .../include/asm/arch-fsl-layerscape/immap_lsch3.h  | 12 ++---
>  arch/arm/include/asm/arch-fsl-layerscape/soc.h |  7 ++-
>  .../asm/arch-fsl-layerscape/stream_id_lsch3.h  | 10 ++--
>  drivers/ddr/fsl/Kconfig|  1 +
>  drivers/net/fsl-mc/Kconfig |  4 +-
>  drivers/net/ldpaa_eth/Makefile |  1 +
>  drivers/pci/Kconfig|  4 +-
>  drivers/pci/pcie_layerscape_ep.c   |  4 +-
>  drivers/pci/pcie_layerscape_fixup_common.c |  7 ++-
>  19 files changed, 170 insertions(+), 40 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig
> index 3655990..f247441 100644
> --- a/arch/arm/cpu/armv8/Kconfig
> +++ b/arch/arm/cpu/armv8/Kconfig
> @@ -115,7 +115,7 @@ config PSCI_RESET
>  !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \
>  !TARGET_LS1046AFRWY && \
>  !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \
> -!TARGET_LX2160AQDS && \
> +!TARGET_LX2160AQDS && !TARGET_LX2162AQDS && \
>  !ARCH_UNIPHIER && !TARGET_S32V234EVB
>   help
> Most armv8 systems have PSCI support enabled in EL3, either through
> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> index be51b7d..4d46587 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> @@ -208,6 +208,35 @@ config ARCH_LS2080A
>   imply DISTRO_DEFAULTS
>   imply PANIC_HANG
> 
> +config ARCH_LX2162A
> + bool
> + select ARMV8_SET_SMPEN
> + select FSL_LSCH3
> + select NXP_LSCH3_2
> + select SYS_HAS_SERDES
> + select SYS_FSL_SRDS_1
> + select SYS_FSL_SRDS_2
> + select SYS_FSL_DDR
> + select SYS_FSL_DDR_LE
> + select SYS_FSL_DDR_VER_50
> + select SYS_FSL_EC1
> + select SYS_FSL_EC2
> + select SYS_FSL_ERRATUM_A050106
> + select SYS_FSL_HAS_RGMII
> + select SYS_FSL_HAS_SEC
> + select SYS_FSL_HAS_CCN508
> + select SYS_FSL_HAS_DDR4
> + select SYS_FSL_SEC_COMPAT_5
> + select SYS_FSL_SEC_LE
> + select ARCH_EARLY_INIT_R
> + select BOARD_EARLY_INIT_F
> + select SYS_I2C_MXC
> + select RESV_RAM if GIC_V3_ITS
> + imply DISTRO_DEFAULTS
> + imply PANIC_HANG
> + imply SCSI
> + imply SCSI_AHCI
> +
>  config ARCH_LX2160A
>   bool
>   select ARMV8_SET_SMPEN
> @@ -345,7 +374,7 @@ config SYS_FSL_ERRATUM_A050106
>   help
> USB3.0 Receiver needs to enable fixed equalization
> for each of PHY instances in an SOC. This is similar
> -   to erratum A-009007, but this one is for LX2160A,
> +   to erratum A-009007, but this one is for LX2160A and LX2162A,
> and the register value is different.
> 
>  config SYS_FSL_ERRATUM_A010315
> @@ -362,6 +391,7 @@ config MAX_CPUS
>   default 16 if ARCH_LS2080A
>   default 8 if ARCH_LS1088A
>   default 16 if ARCH_LX2160A
> + default 16 if ARCH_LX2162A
>   default 1
>   help
> Set this number to the maximum number of possible CPUs in the SoC.
> @@ -491,6 +521,7 @@ config SYS_FSL_DUART_CLK_DIV
>   int "DUART clock divider"
>   default 1 if ARCH_LS1043A
>   default 4 if ARCH_LX2160A
> + default 4 if ARCH_LX2162A
>   default 2
>   help
> This is the divider that is used to derive DUART clock from Platform
> @@ -502,6 +533,7 @@ config SYS_FSL_I2C_CLK_DIV
>   default 4 if ARCH_LS1012A
>   default 4 if ARCH_LS1028A
> 

RE: [PATCH v3 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

2020-09-08 Thread Meenakshi Aggarwal
Thanks Tom,

We will plan it.

-Original Message-
From: Tom Rini  
Sent: Monday, September 7, 2020 6:42 PM
To: Meenakshi Aggarwal 
Cc: u-boot@lists.denx.de; Priyanka Jain ; Varun Sethi 

Subject: Re: [PATCH v3 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

On Mon, Sep 07, 2020 at 03:42:06PM +0530, meenakshi.aggar...@nxp.com wrote:

> From: Meenakshi Aggarwal 
> 
> LX2162 is LX2160 based SoC, it has same die as of LX2160 with 
> different packaging.
> 
> LX2162A support 64-bit 2.9GT/s DDR4 memory, i2c, micro-click module, 
> microSD card, eMMC support, serial console, qspi nor flash, qsgmii, 
> sgmii, 25g, 40g, 50g network interface, one usb 3.0 and serdes 
> interface to support three PCIe gen3 interface.
> 
> Signed-off-by: Meenakshi Aggarwal 
> ---
>  arch/arm/cpu/armv8/Kconfig |  2 +-
>  arch/arm/cpu/armv8/fsl-layerscape/Kconfig  | 39 +--
>  arch/arm/cpu/armv8/fsl-layerscape/Makefile |  5 ++
>  arch/arm/cpu/armv8/fsl-layerscape/cpu.c|  9 ++--
>  arch/arm/cpu/armv8/fsl-layerscape/doc/README.soc   | 58 
> ++

I just want to make sure it's on the TODO list somewhere to convert this 
README.soc file to rST and move it under doc/board/ or similar, thanks!

--
Tom


Re: [PATCH v3 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

2020-09-07 Thread Tom Rini
On Mon, Sep 07, 2020 at 03:42:06PM +0530, meenakshi.aggar...@nxp.com wrote:

> From: Meenakshi Aggarwal 
> 
> LX2162 is LX2160 based SoC, it has same die as of LX2160
> with different packaging.
> 
> LX2162A support 64-bit 2.9GT/s DDR4 memory, i2c, micro-click module,
> microSD card, eMMC support, serial console, qspi nor flash, qsgmii,
> sgmii, 25g, 40g, 50g network interface, one usb 3.0 and serdes
> interface to support three PCIe gen3 interface.
> 
> Signed-off-by: Meenakshi Aggarwal 
> ---
>  arch/arm/cpu/armv8/Kconfig |  2 +-
>  arch/arm/cpu/armv8/fsl-layerscape/Kconfig  | 39 +--
>  arch/arm/cpu/armv8/fsl-layerscape/Makefile |  5 ++
>  arch/arm/cpu/armv8/fsl-layerscape/cpu.c|  9 ++--
>  arch/arm/cpu/armv8/fsl-layerscape/doc/README.soc   | 58 
> ++

I just want to make sure it's on the TODO list somewhere to convert this
README.soc file to rST and move it under doc/board/ or similar, thanks!

-- 
Tom


signature.asc
Description: PGP signature