* [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board
@ 2015-01-04 7:30 Alison Wang
2015-01-04 7:30 ` [U-Boot] [PATCH 2/2] arm: ls102xa: Add LPUART support for LS1021ATWR board Alison Wang
2015-01-24 15:15 ` [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board York Sun
0 siblings, 2 replies; 4+ messages in thread
From: Alison Wang @ 2015-01-04 7:30 UTC (permalink / raw)
To: u-boot
This patch adds LPUART support for LS1021AQDS board.
For ls1021aqds_nor_lpuart_defconfig, LPUART is used as the console.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
---
board/freescale/ls1021aqds/MAINTAINERS | 1 +
configs/ls1021aqds_nor_lpuart_defconfig | 3 +++
include/configs/ls1021aqds.h | 13 +++++++++++++
3 files changed, 17 insertions(+)
create mode 100644 configs/ls1021aqds_nor_lpuart_defconfig
diff --git a/board/freescale/ls1021aqds/MAINTAINERS b/board/freescale/ls1021aqds/MAINTAINERS
index 638833d..661526b 100644
--- a/board/freescale/ls1021aqds/MAINTAINERS
+++ b/board/freescale/ls1021aqds/MAINTAINERS
@@ -6,6 +6,7 @@ F: include/configs/ls1021aqds.h
F: configs/ls1021aqds_nor_defconfig
F: configs/ls1021aqds_ddr4_nor_defconfig
F: configs/ls1021aqds_nor_SECURE_BOOT_defconfig
+F: configs/ls1021aqds_nor_lpuart_defconfig
F: configs/ls1021aqds_sdcard_defconfig
F: configs/ls1021aqds_qspi_defconfig
F: configs/ls1021aqds_nand_defconfig
diff --git a/configs/ls1021aqds_nor_lpuart_defconfig b/configs/ls1021aqds_nor_lpuart_defconfig
new file mode 100644
index 0000000..29335ee
--- /dev/null
+++ b/configs/ls1021aqds_nor_lpuart_defconfig
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="LPUART"
++S:CONFIG_ARM=y
++S:CONFIG_TARGET_LS1021AQDS=y
diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h
index 8dc04f2..6ad6391 100644
--- a/include/configs/ls1021aqds.h
+++ b/include/configs/ls1021aqds.h
@@ -365,11 +365,16 @@ unsigned long get_board_ddr_clk(void);
/*
* Serial Port
*/
+#ifdef CONFIG_LPUART
+#define CONFIG_FSL_LPUART
+#define CONFIG_LPUART_32B_REG
+#else
#define CONFIG_CONS_INDEX 1
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE 1
#define CONFIG_SYS_NS16550_CLK get_serial_clock()
+#endif
#define CONFIG_BAUDRATE 115200
@@ -508,11 +513,19 @@ unsigned long get_board_ddr_clk(void);
#define CONFIG_SYS_QE_FW_ADDR 0x67f40000
+#ifdef CONFIG_LPUART
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0" \
+ "fdt_high=0xcfffffff\0" \
+ "initrd_high=0xcfffffff\0" \
+ "hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=null\0"
+#else
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \
"fdt_high=0xcfffffff\0" \
"initrd_high=0xcfffffff\0" \
"hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=null\0"
+#endif
/*
* Miscellaneous configurable options
--
2.1.0.27.g96db324
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 2/2] arm: ls102xa: Add LPUART support for LS1021ATWR board
2015-01-04 7:30 [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board Alison Wang
@ 2015-01-04 7:30 ` Alison Wang
2015-01-24 15:16 ` York Sun
2015-01-24 15:15 ` [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board York Sun
1 sibling, 1 reply; 4+ messages in thread
From: Alison Wang @ 2015-01-04 7:30 UTC (permalink / raw)
To: u-boot
This patch adds LPUART support for LS1021ATWR board.
For ls1021atwr_nor_lpuart_defconfig, LPUART is used as the console.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
---
board/freescale/ls1021atwr/MAINTAINERS | 1 +
configs/ls1021atwr_nor_lpuart_defconfig | 3 +++
include/configs/ls1021atwr.h | 12 ++++++++++++
3 files changed, 16 insertions(+)
create mode 100644 configs/ls1021atwr_nor_lpuart_defconfig
diff --git a/board/freescale/ls1021atwr/MAINTAINERS b/board/freescale/ls1021atwr/MAINTAINERS
index 9176706..e9f6f0a 100644
--- a/board/freescale/ls1021atwr/MAINTAINERS
+++ b/board/freescale/ls1021atwr/MAINTAINERS
@@ -5,5 +5,6 @@ F: board/freescale/ls1021atwr/
F: include/configs/ls1021atwr.h
F: configs/ls1021atwr_nor_defconfig
F: configs/ls1021atwr_nor_SECURE_BOOT_defconfig
+F: configs/ls1021atwr_nor_lpuart_defconfig
F: configs/ls1021atwr_sdcard_defconfig
F: configs/ls1021atwr_qspi_defconfig
diff --git a/configs/ls1021atwr_nor_lpuart_defconfig b/configs/ls1021atwr_nor_lpuart_defconfig
new file mode 100644
index 0000000..bdab6d9
--- /dev/null
+++ b/configs/ls1021atwr_nor_lpuart_defconfig
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="LPUART"
++S:CONFIG_ARM=y
++S:CONFIG_TARGET_LS1021ATWR=y
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index 66954d0..0a0bb5f 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -186,11 +186,16 @@
/*
* Serial Port
*/
+#ifdef CONFIG_LPUART
+#define CONFIG_FSL_LPUART
+#define CONFIG_LPUART_32B_REG
+#else
#define CONFIG_CONS_INDEX 1
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE 1
#define CONFIG_SYS_NS16550_CLK get_serial_clock()
+#endif
#define CONFIG_BAUDRATE 115200
@@ -325,10 +330,17 @@
#define CONFIG_BOOTDELAY 3
+#ifdef CONFIG_LPUART
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0" \
+ "initrd_high=0xcfffffff\0" \
+ "fdt_high=0xcfffffff\0"
+#else
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \
"initrd_high=0xcfffffff\0" \
"fdt_high=0xcfffffff\0"
+#endif
/*
* Miscellaneous configurable options
--
2.1.0.27.g96db324
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board
2015-01-04 7:30 [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board Alison Wang
2015-01-04 7:30 ` [U-Boot] [PATCH 2/2] arm: ls102xa: Add LPUART support for LS1021ATWR board Alison Wang
@ 2015-01-24 15:15 ` York Sun
1 sibling, 0 replies; 4+ messages in thread
From: York Sun @ 2015-01-24 15:15 UTC (permalink / raw)
To: u-boot
On 01/04/2015 01:30 AM, Alison Wang wrote:
> This patch adds LPUART support for LS1021AQDS board.
> For ls1021aqds_nor_lpuart_defconfig, LPUART is used as the console.
>
> Signed-off-by: Alison Wang <alison.wang@freescale.com>
> ---
Applied to u-boot-fsl-qoriq master branch, awaiting upstream.
York
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 2/2] arm: ls102xa: Add LPUART support for LS1021ATWR board
2015-01-04 7:30 ` [U-Boot] [PATCH 2/2] arm: ls102xa: Add LPUART support for LS1021ATWR board Alison Wang
@ 2015-01-24 15:16 ` York Sun
0 siblings, 0 replies; 4+ messages in thread
From: York Sun @ 2015-01-24 15:16 UTC (permalink / raw)
To: u-boot
On 01/04/2015 01:30 AM, Alison Wang wrote:
> This patch adds LPUART support for LS1021ATWR board.
> For ls1021atwr_nor_lpuart_defconfig, LPUART is used as the console.
>
> Signed-off-by: Alison Wang <alison.wang@freescale.com>
> ---
Applied to u-boot-fsl-qoriq master branch, awaiting upstream.
York
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-24 15:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-04 7:30 [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board Alison Wang
2015-01-04 7:30 ` [U-Boot] [PATCH 2/2] arm: ls102xa: Add LPUART support for LS1021ATWR board Alison Wang
2015-01-24 15:16 ` York Sun
2015-01-24 15:15 ` [U-Boot] [PATCH 1/2] arm: ls102xa: Add LPUART support for LS1021AQDS board York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox