Skip to contentSkip to conversation

ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

PATCH New Fabio Estevam 8 participants 15 messages Jan 25, 2011 – Feb 5, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

Commit 816ad74 (ARM: i.MX53: Add full iomux support for mx53) renamed some of the pad names.

Make the changes accordingly so that mx53_loco and mx53_cmd can build without errors.

---
 arch/arm/mach-mx5/board-mx53_loco.c |   25 +++++++++++++------------
 arch/arm/mach-mx5/board-mx53_smd.c  |   24 ++++++++++++------------
 2 files changed, 25 insertions(+), 24 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +15 -14
index d1348e0..dadc856 100644
@@ -39,20 +39,21 @@
 #define LOCO_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_loco_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
+
 };
 
 static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
arch/arm/mach-mx5/board-mx53_smd.c +14 -14
index 7970f7a..06070c5 100644
@@ -39,20 +39,20 @@
 #define SMD_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_smd_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
 };
 
 static const struct imxuart_platform_data mx53_smd_uart_data __initconst = {
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 2/3 ARM: mach-mx5/board-mx53_loco: Make UART1 functional

Fix IOMUX settings for UART1 and make UART1 functional.

---
 arch/arm/mach-mx5/board-mx53_loco.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +1 -3
index dadc856..cba4cd5 100644
@@ -41,8 +41,6 @@
 static iomux_v3_cfg_t mx53_loco_pads[] = {
 	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
 	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
-	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
-	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
 
 	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
 	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
@@ -62,7 +60,7 @@ static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
 
 static inline void mx53_loco_init_uart(void)
 {
-	imx53_add_imx_uart(0, &mx53_loco_uart_data);
+	imx53_add_imx_uart(0, NULL);
 	imx53_add_imx_uart(1, &mx53_loco_uart_data);
 	imx53_add_imx_uart(2, &mx53_loco_uart_data);
 }
Signature · 1 line
1.6.0.4
#2 lore raw

PATCH 3/3 ARM: mach-mx5/board-mx53_loco: Remove unused UARTs

On mx53_loco only UART1 is used and its signals go to connector J16.

Remove UART2 and UART3 as they are not used on this board.

---
 arch/arm/mach-mx5/board-mx53_loco.c |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +1 -23
index cba4cd5..3aefd6d 100644
@@ -41,30 +41,8 @@
 static iomux_v3_cfg_t mx53_loco_pads[] = {
 	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
 	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
-
-	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
-	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
-	MX53_PAD_PATA_DIOR__UART2_RTS,
-	MX53_PAD_PATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
-	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
-	MX53_PAD_PATA_DA_1__UART3_CTS,
-	MX53_PAD_PATA_DA_2__UART3_RTS,
-
-};
-
-static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
-	.flags = IMXUART_HAVE_RTSCTS,
 };
 
-static inline void mx53_loco_init_uart(void)
-{
-	imx53_add_imx_uart(0, NULL);
-	imx53_add_imx_uart(1, &mx53_loco_uart_data);
-	imx53_add_imx_uart(2, &mx53_loco_uart_data);
-}
-
 static inline void mx53_loco_fec_reset(void)
 {
 	int ret;
@@ -88,7 +66,7 @@ static void __init mx53_loco_board_init(void)
 {
 	mxc_iomux_v3_setup_multiple_pads(mx53_loco_pads,
 					ARRAY_SIZE(mx53_loco_pads));
-	mx53_loco_init_uart();
+	imx53_add_imx_uart(0, NULL);
 	mx53_loco_fec_reset();
 	imx53_add_fec(&mx53_loco_fec_data);
 }
Signature · 1 line
1.6.0.4
#3 lore raw

PATCH 3/3 ARM: mach-mx5/board-mx53_loco: Remove unused UARTs

Quoted 5 lines · Fabio Estevam

On mx53_loco only UART1 is used and its signals go to connector J16.

Remove UART2 and UART3 as they are not used on this board.

Quoted 57 lines
---
 arch/arm/mach-mx5/board-mx53_loco.c |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +1 -23
index cba4cd5..3aefd6d 100644
@@ -41,30 +41,8 @@
 static iomux_v3_cfg_t mx53_loco_pads[] = {
 	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
 	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
-
-	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
-	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
-	MX53_PAD_PATA_DIOR__UART2_RTS,
-	MX53_PAD_PATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
-	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
-	MX53_PAD_PATA_DA_1__UART3_CTS,
-	MX53_PAD_PATA_DA_2__UART3_RTS,
-
-};
-
-static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
-	.flags = IMXUART_HAVE_RTSCTS,
 };
 
-static inline void mx53_loco_init_uart(void)
-{
-	imx53_add_imx_uart(0, NULL);
-	imx53_add_imx_uart(1, &mx53_loco_uart_data);
-	imx53_add_imx_uart(2, &mx53_loco_uart_data);
-}
-
 static inline void mx53_loco_fec_reset(void)
 {
 	int ret;
@@ -88,7 +66,7 @@ static void __init mx53_loco_board_init(void)
 {
 	mxc_iomux_v3_setup_multiple_pads(mx53_loco_pads,
 					ARRAY_SIZE(mx53_loco_pads));
-	mx53_loco_init_uart();
+	imx53_add_imx_uart(0, NULL);
 	mx53_loco_fec_reset();
 	imx53_add_fec(&mx53_loco_fec_data);
 }
Signature · 8 lines
1.6.0.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw

PATCH 2/3 ARM: mach-mx5/board-mx53_loco: Make UART1 functional

In reply to Fabio Estevam
Quoted 3 lines · Fabio Estevam

Fix IOMUX settings for UART1 and make UART1 functional.

Quoted 35 lines
---
 arch/arm/mach-mx5/board-mx53_loco.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +1 -3
index dadc856..cba4cd5 100644
@@ -41,8 +41,6 @@
 static iomux_v3_cfg_t mx53_loco_pads[] = {
 	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
 	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
-	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
-	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
 
 	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
 	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
@@ -62,7 +60,7 @@ static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
 
 static inline void mx53_loco_init_uart(void)
 {
-	imx53_add_imx_uart(0, &mx53_loco_uart_data);
+	imx53_add_imx_uart(0, NULL);
 	imx53_add_imx_uart(1, &mx53_loco_uart_data);
 	imx53_add_imx_uart(2, &mx53_loco_uart_data);
 }
Signature · 8 lines
1.6.0.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

In reply to Fabio Estevam

Yong,

Can you ack these?

Sascha

Quoted 94 lines · Fabio Estevam

Commit 816ad74 (ARM: i.MX53: Add full iomux support for mx53) renamed some of the pad names.

Make the changes accordingly so that mx53_loco and mx53_cmd can build without errors.

---
 arch/arm/mach-mx5/board-mx53_loco.c |   25 +++++++++++++------------
 arch/arm/mach-mx5/board-mx53_smd.c  |   24 ++++++++++++------------
 2 files changed, 25 insertions(+), 24 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +15 -14
index d1348e0..dadc856 100644
@@ -39,20 +39,21 @@
 #define LOCO_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_loco_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
+
 };
 
 static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
arch/arm/mach-mx5/board-mx53_smd.c +14 -14
index 7970f7a..06070c5 100644
@@ -39,20 +39,20 @@
 #define SMD_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_smd_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
 };
 
 static const struct imxuart_platform_data mx53_smd_uart_data __initconst = {
Signature · 1 line
1.6.0.4
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#6 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

Hi Fabio,

Sorry I didn't see your patch. I just sent out a patch to include all pad configure for imx53_loco.

I have some comments below.

Quoted 35 lines · Sascha Hauer

Yong,

Can you ack these?

Sascha

Quoted 28 lines · Fabio Estevam

Commit 816ad74 (ARM: i.MX53: Add full iomux support for mx53) renamed some of the pad names.

Make the changes accordingly so that mx53_loco and mx53_cmd can build without errors.

---
 arch/arm/mach-mx5/board-mx53_loco.c |   25 +++++++++++++------------
 arch/arm/mach-mx5/board-mx53_smd.c  |   24 ++++++++++++------------
 2 files changed, 25 insertions(+), 24 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +0 -10
index d1348e0..dadc856 100644
@@ -39,20 +39,21 @@
 #define LOCO_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_loco_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
Quoted 8 lines

arch/arm/mach-mx5/board-mx53_loco.c line 45

Quoted 8 lines
arch/arm/mach-mx5/board-mx53_loco.c +4 -4
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,

So many Pad configured to uart1?

Quoted 10 lines

arch/arm/mach-mx5/board-mx53_loco.c line 55

Quoted 10 lines
arch/arm/mach-mx5/board-mx53_loco.c +10 -0
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,

LoCo don't have uart2 and uart3.

Quoted 22 lines
Quoted 22 lines
arch/arm/mach-mx5/board-mx53_loco.c +1 -0
+
 };
 
 static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
arch/arm/mach-mx5/board-mx53_smd.c +0 -10
index 7970f7a..06070c5 100644
@@ -39,20 +39,20 @@
 #define SMD_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_smd_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
Quoted 8 lines

arch/arm/mach-mx5/board-mx53_smd.c line 45

Quoted 8 lines
arch/arm/mach-mx5/board-mx53_smd.c +4 -4
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,

same as above.

Thanks
Richard

Quoted 30 lines
Quoted 18 lines
arch/arm/mach-mx5/board-mx53_smd.c +10 -0
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
 };
 
 static const struct imxuart_platform_data mx53_smd_uart_data __initconst = {
Signature · 1 line
1.6.0.4
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

Hi Richard,

On 1/27/2011 7:30 AM, Richard Zhao wrote:
....

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

static iomux_v3_cfg_t mx53_loco_pads[] = {

arch/arm/mach-mx5/board-mx53_loco.c +0 -11
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
Quoted 8 lines
Quoted 7 lines

arch/arm/mach-mx5/board-mx53_loco.c line 45

Quoted 7 lines
arch/arm/mach-mx5/board-mx53_loco.c +4 -3
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,

So many Pad configured to uart1?

As per the subject the intention of this patch is to fix the build for mx53_loco and mx53_smd.

In this patch I just changed the pad names to fix the build issue.

Quoted 11 lines
Quoted 10 lines

arch/arm/mach-mx5/board-mx53_loco.c line 55

Quoted 10 lines
arch/arm/mach-mx5/board-mx53_loco.c +10 -0
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,

LoCo don't have uart2 and uart3.

Right, these are removed later in my patch series.

After my patch series is applied we have a working UART1 console.

Can we apply them?

Regards,

Fabio Estevam

Quoted 64 lines
Quoted 22 lines
Quoted 22 lines
arch/arm/mach-mx5/board-mx53_loco.c +1 -0
+
 };
 
 static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
arch/arm/mach-mx5/board-mx53_smd.c +0 -10
index 7970f7a..06070c5 100644
@@ -39,20 +39,20 @@
 #define SMD_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_smd_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
Quoted 8 lines

arch/arm/mach-mx5/board-mx53_smd.c line 45

Quoted 8 lines
arch/arm/mach-mx5/board-mx53_smd.c +4 -4
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,

same as above.

Thanks
Richard

Quoted 30 lines
Quoted 18 lines
arch/arm/mach-mx5/board-mx53_smd.c +10 -0
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
 };
 
 static const struct imxuart_platform_data mx53_smd_uart_data __initconst = {
Signature · 1 line
1.6.0.4
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#8 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

Quoted 42 lines · Fabio Estevam

Hi Richard,

On 1/27/2011 7:30 AM, Richard Zhao wrote:
....

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

static iomux_v3_cfg_t mx53_loco_pads[] = {

arch/arm/mach-mx5/board-mx53_loco.c +0 -11
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
Quoted 8 lines
Quoted 7 lines

arch/arm/mach-mx5/board-mx53_loco.c line 45

Quoted 7 lines
arch/arm/mach-mx5/board-mx53_loco.c +4 -3
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,

So many Pad configured to uart1?

As per the subject the intention of this patch is to fix the build for mx53_loco and mx53_smd.

In this patch I just changed the pad names to fix the build issue.

Quoted 11 lines
Quoted 10 lines

arch/arm/mach-mx5/board-mx53_loco.c line 55

Quoted 10 lines
arch/arm/mach-mx5/board-mx53_loco.c +10 -0
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,

LoCo don't have uart2 and uart3.

Quoted 1 line

Right, these are removed later in my patch series.

I didn't see your patch series in my freescale mailbox, until Sascha replied.

Quoted 4 lines

After my patch series is applied we have a working UART1 console.

Can we apply them?

Sure. My two coins, why don't you squash patch 2 and 3. They're both small and modifying the same thing. It don't matter much. If you choose to send it again, you can merge my second patch.

Quoted 35 lines

Regards,

Fabio Estevam

Quoted 31 lines
Quoted 22 lines
Quoted 22 lines
arch/arm/mach-mx5/board-mx53_loco.c +1 -0
+
 };
 
 static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
arch/arm/mach-mx5/board-mx53_smd.c +0 -10
index 7970f7a..06070c5 100644
@@ -39,20 +39,20 @@
 #define SMD_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_smd_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
Quoted 8 lines

arch/arm/mach-mx5/board-mx53_smd.c line 45

Quoted 8 lines
arch/arm/mach-mx5/board-mx53_smd.c +4 -4
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,

same as above.

will you fix iomux issue here? I didn't see any other fix in your patch series.

Thanks
Richard

Quoted 41 lines
Quoted 33 lines

Thanks
Richard

Quoted 30 lines
Quoted 18 lines
arch/arm/mach-mx5/board-mx53_smd.c +10 -0
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
 };
 
 static const struct imxuart_platform_data mx53_smd_uart_data __initconst = {
Signature · 1 line
1.6.0.4
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#9 lore raw

"Porting the Linux Kernel to a New ARM Platform", updated...?

Hi everyone,

I've been looking for a good source of information on getting Linux working on a new ARM target, including a checklist of things to cover such as putc(), arch_decomp_setup(), etc. So far, pretty much the best source of information I've found is Wookey & Tak-Shing's "Porting the Linux Kernel to a New ARM Platform"...
http://www.glomationinc.com/PortingLinuxKernel.pdf
...but I can't help but notice that this is from 2002.

Is there an updated version of this document (or perhaps a book chapter covering this) you would recommend?

Cheers, ....Nick Pelling....

#10 lore raw

"Porting the Linux Kernel to a New ARM Platform", updated...?

Quoted 10 lines · Nick Pelling

Hi everyone,

I've been looking for a good source of information on getting Linux working on a new ARM target, including a checklist of things to cover such as putc(), arch_decomp_setup(), etc. So far, pretty much the best source of information I've found is Wookey & Tak-Shing's "Porting the Linux Kernel to a New ARM Platform"...
? ? ? ?http://www.glomationinc.com/PortingLinuxKernel.pdf ...but I can't help but notice that this is from 2002.

Quoted 4 lines

Is there an updated version of this document (or perhaps a book chapter covering this) you would recommend?

Cheers, ....Nick Pelling....

Hello,

I took a quick look at the document. Much of the information still applies to the latest kernel. The biggest change that I can see is that the directories were moved and files renames. For example

arch/arm/deconfigs/ is now arch/arm/configs config.in is now Kconfig
include/asm-arm/arch-xxx is moved to arch/arm/mach-xxx/include

By the way, include/asm is a symlink points to include/asm-arm/arch-xxxx in the older kernels. The link is created by the make. If I were to get Linux to boot on a new board, I would start by looking at code for a similar target with the same SoC.

I hope that helps.

Steve

#11 lore raw

"Porting the Linux Kernel to a New ARM Platform", updated...?

Quoted 2 lines · Steve Chen

By the way, include/asm is a symlink points to
include/asm-arm/arch-xxxx in the older kernels.

In old kernels, include/asm was pointed at include/asm-arm. We had a second symlink for include/asm-arm/arch which pointed at include/asm-arm/arch-xxx. Even older kernels had another symlink for include/asm-arm/proc pointing at either include/asm-arm/proc-armv or .../proc-armo depending on whether we were building for 32-bit or 26-bit ARMs.

A message that is not in the archive (sent off-list or not yet received): [email protected] om

#13 lore raw

"Porting the Linux Kernel to a New ARM Platform", updated...?

Hi everyone,

Quoted 4 lines · Steve Chen

I took a quick look at the document. Much of the information still applies to the latest kernel. The biggest change that I can see is that the directories were moved and files renames. For example

Quoted 8 lines

arch/arm/deconfigs/ is now arch/arm/configs config.in is now Kconfig
include/asm-arm/arch-xxx is moved to arch/arm/mach-xxx/include

By the way, include/asm is a symlink points to include/asm-arm/arch-xxxx in the older kernels. The link is created by the make. If I were to get Linux to boot on a new board, I would start by looking at code for a similar target with the same SoC.

Thanks, Steve, very helpful. I also got an off-list message from Wookey, who said of his document that...

"more recent docs have been written superseding much of what is in there (e.g Vince Sanders' booting the kernel doc:
http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html#
but which is about to be finally outdated by devicetree possibilities)"

He also suggested http://free-electrons.com/doc/kernel-porting.pdf as likely to be useful.

Cheers, ....Nick Pelling....

#14 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

In reply to Richard Zhao

Hi Richard,

On Thu, Jan 27, 2011 at 10:19 AM, Richard Zhao <[email protected]> wrote:
....

Quoted 9 lines
Quoted 1 line

Right, these are removed later in my patch series.

I didn't see your patch series in my freescale mailbox, until Sascha replied.

Quoted 4 lines

After my patch series is applied we have a working UART1 console.

Can we apply them?

Sure. My two coins, why don't you squash patch 2 and 3. They're both small and modifying the same thing. It don't matter much. If you choose to send it again, you can merge my second patch.

I preferred to split the patch as I did originally:

1/3: Fix the build issue on MX53_LOCO and MX53_SMD 2/3: Make UART1 functional on MX53_LOCO
3/3: Remove UART2 and UART3.
(http://www.spinics.net/lists/arm-kernel/msg112234.html )

You can then send a patch for adding the additional peripherals of MX53_LOCO board after these patch series are merged.

Does it sound good for you?
....

Quoted 1 line

will you fix iomux issue here? I didn't see any other fix in your patch series.

UART1 IOMUX is fixed in patch 2/3.

Regards,

Fabio Estevam

#15 lore raw

PATCH 1/3 ARM: mach-mx5: Fix build for mx53_loco and mx53_smd

In reply to Fabio Estevam
Quoted 5 lines · Fabio Estevam

Commit 816ad74 (ARM: i.MX53: Add full iomux support for mx53) renamed some of the pad names.

Make the changes accordingly so that mx53_loco and mx53_cmd can build without errors.

Quoted 93 lines
---
 arch/arm/mach-mx5/board-mx53_loco.c |   25 +++++++++++++------------
 arch/arm/mach-mx5/board-mx53_smd.c  |   24 ++++++++++++------------
 2 files changed, 25 insertions(+), 24 deletions(-)
arch/arm/mach-mx5/board-mx53_loco.c +15 -14
index d1348e0..dadc856 100644
@@ -39,20 +39,21 @@
 #define LOCO_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_loco_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
+
 };
 
 static const struct imxuart_platform_data mx53_loco_uart_data __initconst = {
arch/arm/mach-mx5/board-mx53_smd.c +14 -14
index 7970f7a..06070c5 100644
@@ -39,20 +39,20 @@
 #define SMD_FEC_PHY_RST		IMX_GPIO_NR(7, 6)
 
 static iomux_v3_cfg_t mx53_smd_pads[] = {
-	MX53_PAD_CSI0_D10__UART1_TXD,
-	MX53_PAD_CSI0_D11__UART1_RXD,
-	MX53_PAD_ATA_DIOW__UART1_TXD,
-	MX53_PAD_ATA_DMACK__UART1_RXD,
-
-	MX53_PAD_ATA_BUFFER_EN__UART2_RXD,
-	MX53_PAD_ATA_DMARQ__UART2_TXD,
-	MX53_PAD_ATA_DIOR__UART2_RTS,
-	MX53_PAD_ATA_INTRQ__UART2_CTS,
-
-	MX53_PAD_ATA_CS_0__UART3_TXD,
-	MX53_PAD_ATA_CS_1__UART3_RXD,
-	MX53_PAD_ATA_DA_1__UART3_CTS,
-	MX53_PAD_ATA_DA_2__UART3_RTS,
+	MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,
+	MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,
+	MX53_PAD_PATA_DIOW__UART1_TXD_MUX,
+	MX53_PAD_PATA_DMACK__UART1_RXD_MUX,
+
+	MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,
+	MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,
+	MX53_PAD_PATA_DIOR__UART2_RTS,
+	MX53_PAD_PATA_INTRQ__UART2_CTS,
+
+	MX53_PAD_PATA_CS_0__UART3_TXD_MUX,
+	MX53_PAD_PATA_CS_1__UART3_RXD_MUX,
+	MX53_PAD_PATA_DA_1__UART3_CTS,
+	MX53_PAD_PATA_DA_2__UART3_RTS,
 };
 
 static const struct imxuart_platform_data mx53_smd_uart_data __initconst = {
Signature · 8 lines
1.6.0.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel