LS1012A-FRDM and LS1012A-FRWY board.

1-Move all common files applicable for both boards LS1012A-FRDM
  and LS1012A-FRWY into board directory ls1012afrx.
2-Restructure LS1012A-FRDM code. Only board specific files are
  in LS1012A-FRDM board directory.

Signed-off-by: Pramod Kumar <pramod.kuma...@nxp.com>
---
 arch/arm/Kconfig                                   |  2 +
 board/freescale/ls1012afrdm/Kconfig                | 60 ----------------------
 board/freescale/ls1012afrdm/MAINTAINERS            | 12 +----
 board/freescale/ls1012afrdm/Makefile               |  4 +-
 board/freescale/ls1012afrx/Kconfig                 | 27 ++++++++++
 board/freescale/{ls1012afrdm => ls1012afrx}/eth.c  |  0
 .../ls1012afrdm.c => ls1012afrx/ls1012afrx.c}      |  0
 7 files changed, 32 insertions(+), 73 deletions(-)
 create mode 100644 board/freescale/ls1012afrx/Kconfig
 rename board/freescale/{ls1012afrdm => ls1012afrx}/eth.c (100%)
 rename board/freescale/{ls1012afrdm/ls1012afrdm.c => ls1012afrx/ls1012afrx.c} 
(100%)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 350653b..c7493e4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1320,6 +1320,8 @@ source "board/freescale/ls1046ardb/Kconfig"
 source "board/freescale/ls1012aqds/Kconfig"
 source "board/freescale/ls1012ardb/Kconfig"
 source "board/freescale/ls1012afrdm/Kconfig"
+source "board/freescale/ls1012afrx/Kconfig"
+source "board/freescale/ls1012afrwy/Kconfig"
 source "board/freescale/mx31ads/Kconfig"
 source "board/freescale/mx31pdk/Kconfig"
 source "board/freescale/mx35pdk/Kconfig"
diff --git a/board/freescale/ls1012afrdm/Kconfig 
b/board/freescale/ls1012afrdm/Kconfig
index f52a896..58e592d 100644
--- a/board/freescale/ls1012afrdm/Kconfig
+++ b/board/freescale/ls1012afrdm/Kconfig
@@ -21,63 +21,3 @@ config SYS_LS_PPA_FW_ADDR
        default 0x40400000
 
 endif
-
-if FSL_PFE
-
-config BOARD_SPECIFIC_OPTIONS # dummy
-       def_bool y
-       select PHYLIB
-       imply PHY_REALTEK
-       imply PHY_ATHEROS
-
-config DDR_PFE_PHYS_BASEADDR
-       hex "PFE DDR physical base address"
-       default 0x03800000
-
-config DDR_PFE_BASEADDR
-       hex "PFE DDR base address"
-       default 0x83800000
-
-config PFE_EMAC1_PHY_ADDR
-       hex "PFE DDR base address"
-       default 0x2
-
-config PFE_EMAC2_PHY_ADDR
-       hex "PFE DDR base address"
-       default 0x1
-
-endif
-
-if TARGET_LS1012AFRWY
-
-config SYS_BOARD
-       default "ls1012afrdm"
-
-config SYS_VENDOR
-       default "freescale"
-
-config SYS_SOC
-       default "fsl-layerscape"
-
-config SYS_CONFIG_NAME
-       default "ls1012afrwy"
-
-config SYS_LS_PFE_FW_ADDR
-       hex "Flash address of PFE firmware"
-       default 0x40020000
-
-config SYS_LS_PPA_FW_ADDR
-       hex "PPA Firmware Addr"
-       default 0x40060000
-
-config SYS_LS_PPA_ESBC_ADDR
-       hex "PPA Firmware HDR Addr"
-       default 0x401f4000
-
-config SYS_LS_PFE_ESBC_ADDR
-       hex "PFE Firmware HDR Addr"
-       default 0x401f8000
-
-endif
-
-source "board/freescale/common/Kconfig"
diff --git a/board/freescale/ls1012afrdm/MAINTAINERS 
b/board/freescale/ls1012afrdm/MAINTAINERS
index f3fcdb8..b618d78 100644
--- a/board/freescale/ls1012afrdm/MAINTAINERS
+++ b/board/freescale/ls1012afrdm/MAINTAINERS
@@ -1,17 +1,7 @@
 LS1012AFRDM BOARD
 M:     Prabhakar Kushwaha <prabhakar.kushw...@nxp.com>
 S:     Maintained
+F:     board/freescale/ls1012afrx/
 F:     board/freescale/ls1012afrdm/
 F:     include/configs/ls1012afrdm.h
 F:     configs/ls1012afrdm_qspi_defconfig
-
-LS1012AFRWY BOARD
-M:      Bhaskar Upadhaya <bhaskar.upadh...@nxp.com>
-S:      Maintained
-F:      board/freescale/ls1012afrwy/
-F:      include/configs/ls1012afrwy.h
-F:      configs/ls1012afrwy_qspi_defconfig
-
-M:     Vinitha V Pillai <vinitha.pil...@nxp.com>
-S:     Maintained
-F:     configs/ls1012afrwy_qspi_SECURE_BOOT_defconfig
diff --git a/board/freescale/ls1012afrdm/Makefile 
b/board/freescale/ls1012afrdm/Makefile
index 1e53c96..a318506 100644
--- a/board/freescale/ls1012afrdm/Makefile
+++ b/board/freescale/ls1012afrdm/Makefile
@@ -4,5 +4,5 @@
 # SPDX-License-Identifier:      GPL-2.0+
 #
 
-obj-y += ls1012afrdm.o
-obj-$(CONFIG_FSL_PFE) += eth.o
+obj-y += ../ls1012afrx/ls1012afrx.o
+obj-$(CONFIG_FSL_PFE) += ../ls1012afrx/eth.o
diff --git a/board/freescale/ls1012afrx/Kconfig 
b/board/freescale/ls1012afrx/Kconfig
new file mode 100644
index 0000000..a2884e5
--- /dev/null
+++ b/board/freescale/ls1012afrx/Kconfig
@@ -0,0 +1,27 @@
+if FSL_PFE
+
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select PHYLIB
+       imply PHY_REALTEK
+       imply PHY_ATHEROS
+
+config DDR_PFE_PHYS_BASEADDR
+       hex "PFE DDR physical base address"
+       default 0x03800000
+
+config DDR_PFE_BASEADDR
+       hex "PFE DDR base address"
+       default 0x83800000
+
+config PFE_EMAC1_PHY_ADDR
+       hex "PFE DDR base address"
+       default 0x2
+
+config PFE_EMAC2_PHY_ADDR
+       hex "PFE DDR base address"
+       default 0x1
+
+endif
+
+source "board/freescale/common/Kconfig"
diff --git a/board/freescale/ls1012afrdm/eth.c 
b/board/freescale/ls1012afrx/eth.c
similarity index 100%
rename from board/freescale/ls1012afrdm/eth.c
rename to board/freescale/ls1012afrx/eth.c
diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c 
b/board/freescale/ls1012afrx/ls1012afrx.c
similarity index 100%
rename from board/freescale/ls1012afrdm/ls1012afrdm.c
rename to board/freescale/ls1012afrx/ls1012afrx.c
-- 
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to