[U-Boot] [PATCH 9/9] configs: ls1012a: add pfe configuration for LS1012A
Prabhakar Kushwaha
prabhakar.kushwaha at nxp.com
Wed Dec 6 08:41:32 UTC 2017
> -----Original Message-----
> From: Calvin Johnson [mailto:calvin.johnson at nxp.com]
> Sent: Monday, October 09, 2017 2:42 PM
> To: u-boot at lists.denx.de
> Cc: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>; York Sun
> <york.sun at nxp.com>; joe.hershberger at ni.com; Calvin Johnson
> <calvin.johnson at nxp.com>; Anji Jagarlmudi <anji.jagarlmudi at nxp.com>
> Subject: [PATCH 9/9] configs: ls1012a: add pfe configuration for LS1012A
>
> Signed-off-by: Calvin Johnson <calvin.johnson at nxp.com>
> Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi at nxp.com>
> ---
> configs/ls1012afrdm_qspi_defconfig | 1 +
> configs/ls1012aqds_qspi_defconfig | 1 +
> configs/ls1012ardb_qspi_defconfig | 1 +
> drivers/net/Kconfig | 1 +
> drivers/net/Makefile | 1 +
> drivers/net/pfe_eth/Kconfig | 23 ++++++++++++++++++++++-
> include/configs/ls1012a_common.h | 6 +++---
> include/configs/ls1012afrdm.h | 7 +++++++
> include/configs/ls1012aqds.h | 14 ++++++++++++++
> include/configs/ls1012ardb.h | 8 ++++++++
> 10 files changed, 59 insertions(+), 4 deletions(-)
>
> diff --git a/configs/ls1012afrdm_qspi_defconfig
> b/configs/ls1012afrdm_qspi_defconfig
> index 84b5577..7db7a18 100644
> --- a/configs/ls1012afrdm_qspi_defconfig
> +++ b/configs/ls1012afrdm_qspi_defconfig
> @@ -32,6 +32,7 @@ CONFIG_DM_SPI_FLASH=y
> CONFIG_SPI_FLASH=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> +CONFIG_FSL_PFE=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
> diff --git a/configs/ls1012aqds_qspi_defconfig
> b/configs/ls1012aqds_qspi_defconfig
> index 2124273..4b9fdf5 100644
> --- a/configs/ls1012aqds_qspi_defconfig
> +++ b/configs/ls1012aqds_qspi_defconfig
> @@ -37,6 +37,7 @@ CONFIG_DM_SPI_FLASH=y
> CONFIG_SPI_FLASH=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> +CONFIG_FSL_PFE=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
> diff --git a/configs/ls1012ardb_qspi_defconfig
> b/configs/ls1012ardb_qspi_defconfig
> index 40349ce..d63e736 100644
> --- a/configs/ls1012ardb_qspi_defconfig
> +++ b/configs/ls1012ardb_qspi_defconfig
> @@ -35,6 +35,7 @@ CONFIG_DM_SPI_FLASH=y
> CONFIG_SPI_FLASH=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> +CONFIG_FSL_PFE=y
> CONFIG_PCI=y
> CONFIG_DM_PCI=y
> CONFIG_DM_PCI_COMPAT=y
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index 736aab2..c82c63b 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -304,4 +304,5 @@ config FEC2_PHY_NORXERR
> The PHY does not have a RXERR line (RMII only).
> (so program the FEC to ignore it).
>
> +source "drivers/net/pfe_eth/Kconfig"
> endif # NETDEVICES
> diff --git a/drivers/net/Makefile b/drivers/net/Makefile
> index 94a4fd8..0572cde 100644
> --- a/drivers/net/Makefile
> +++ b/drivers/net/Makefile
> @@ -75,3 +75,4 @@ obj-$(CONFIG_FSL_MEMAC) += fm/memac_phy.o
> obj-$(CONFIG_VSC9953) += vsc9953.o
> obj-$(CONFIG_PIC32_ETH) += pic32_mdio.o pic32_eth.o
> obj-$(CONFIG_DWC_ETH_QOS) += dwc_eth_qos.o
> +obj-$(CONFIG_FSL_PFE) += pfe_eth/
> diff --git a/drivers/net/pfe_eth/Kconfig b/drivers/net/pfe_eth/Kconfig
> index b9996df..c05aeda 100644
> --- a/drivers/net/pfe_eth/Kconfig
> +++ b/drivers/net/pfe_eth/Kconfig
> @@ -1,8 +1,29 @@
> +menuconfig FSL_PFE
> + bool "Freescale PFE driver"
> + help
> + This driver provides support for Freescale PFE.
> +
> +if FSL_PFE
> +
> config UTIL_PE_DISABLED
> bool
> help
> Disable UTIL processor engine of PFE
>
> -config SYS_FSL_PPFE_ADDR
> +config SYS_FSL_PFE_ADDR
> hex "PFE base address"
> default 0x04000000
> +
> +config SYS_LS_PFE_FW_ADDR
> + hex "Flash address of PFE firmware"
> + default 0x40a00000
> +
Why this parameter in Kconfig.
This address is hard-coded per platform as defined in standard LSDK flash layout.
--pk
More information about the U-Boot
mailing list