Skip to contentSkip to conversation

board: freescale: ls1012afrx:Common files to support

PATCH Superseded Pramod Kumar 1 participant 1 message Jun 5, 2018 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 board: freescale: ls1012afrx:Common files to support

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.

---
 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%)
arch/arm/Kconfig +2 -0
index 350653b..c7493e4 100644
@@ -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"
board/freescale/ls1012afrdm/Kconfig +0 -60

63 lines not on this page · raw message

board/freescale/ls1012afrdm/MAINTAINERS +1 -11
index f3fcdb8..b618d78 100644
@@ -1,17 +1,7 @@
 LS1012AFRDM BOARD
 M:	Prabhakar Kushwaha <[email protected]>
 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 <[email protected]>
-S:      Maintained
-F:      board/freescale/ls1012afrwy/
-F:      include/configs/ls1012afrwy.h
-F:      configs/ls1012afrwy_qspi_defconfig
-
-M:	Vinitha V Pillai <[email protected]>
-S:	Maintained
-F:	configs/ls1012afrwy_qspi_SECURE_BOOT_defconfig
board/freescale/ls1012afrdm/Makefile +2 -2
index 1e53c96..a318506 100644
@@ -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
board/freescale/ls1012afrx/Kconfig new file +27 -0
new file mode 100644
index 0000000..a2884e5
@@ -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"
board/freescale/ls1012afrx/eth.c renamed from board/freescale/ls1012afrdm/eth.c +0 -0
similarity index 100%
rename from board/freescale/ls1012afrdm/eth.c
rename to board/freescale/ls1012afrx/eth.c
board/freescale/ls1012afrx/ls1012afrx.c renamed from board/freescale/ls1012afrdm/ls1012afrdm.c +0 -0
similarity index 100%
rename from board/freescale/ls1012afrdm/ls1012afrdm.c
rename to board/freescale/ls1012afrx/ls1012afrx.c
Signature · 1 line
2.7.4