mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups
@ 2013-05-03 13:11 Alexander Shiyan
  2013-05-03 13:11 ` [PATCH 2/3] ARM: pcm038: Add definition for SPI chipselect 0 Alexander Shiyan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Shiyan @ 2013-05-03 13:11 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/pcm038.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
index df8b1f9..1b0c54b 100644
--- a/arch/arm/boards/pcm038/pcm038.c
+++ b/arch/arm/boards/pcm038/pcm038.c
@@ -191,6 +191,7 @@ static int pcm038_devices_init(void)
 	long sram_size;
 
 	unsigned int mode[] = {
+		/* FEC */
 		PD0_AIN_FEC_TXD0,
 		PD1_AIN_FEC_TXD1,
 		PD2_AIN_FEC_TXD2,
@@ -209,16 +210,18 @@ static int pcm038_devices_init(void)
 		PD15_AOUT_FEC_COL,
 		PD16_AIN_FEC_TX_ER,
 		PF23_AIN_FEC_TX_EN,
+		/* UART1 */
 		PE12_PF_UART1_TXD,
 		PE13_PF_UART1_RXD,
 		PE14_PF_UART1_CTS,
 		PE15_PF_UART1_RTS,
+		/* CSPI1 */
 		PD25_PF_CSPI1_RDY,
 		GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT,
 		PD29_PF_CSPI1_SCLK,
 		PD30_PF_CSPI1_MISO,
 		PD31_PF_CSPI1_MOSI,
-		/* display */
+		/* Display */
 		PA5_PF_LSCLK,
 		PA6_PF_LD0,
 		PA7_PF_LD1,
-- 
1.8.1.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/3] ARM: pcm038: Add definition for SPI chipselect 0
  2013-05-03 13:11 [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Alexander Shiyan
@ 2013-05-03 13:11 ` Alexander Shiyan
  2013-05-03 13:11 ` [PATCH 3/3] ARM: pcm038: Add definition for FEC reset Alexander Shiyan
  2013-05-04  9:08 ` [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander Shiyan @ 2013-05-03 13:11 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/pcm038.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
index 1b0c54b..4337f3e 100644
--- a/arch/arm/boards/pcm038/pcm038.c
+++ b/arch/arm/boards/pcm038/pcm038.c
@@ -46,12 +46,14 @@
 
 #include "pll.h"
 
+#define PCM038_GPIO_SPI_CS0	(GPIO_PORTD + 28)
+
 static struct fec_platform_data fec_info = {
 	.xcv_type = PHY_INTERFACE_MODE_MII,
 	.phy_addr = 1,
 };
 
-static int pcm038_spi_cs[] = {GPIO_PORTD + 28};
+static int pcm038_spi_cs[] = { PCM038_GPIO_SPI_CS0 };
 
 static struct spi_imx_master pcm038_spi_0_data = {
 	.chipselect = pcm038_spi_cs,
@@ -217,7 +219,7 @@ static int pcm038_devices_init(void)
 		PE15_PF_UART1_RTS,
 		/* CSPI1 */
 		PD25_PF_CSPI1_RDY,
-		GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT,
+		PCM038_GPIO_SPI_CS0 | GPIO_GPIO | GPIO_OUT,
 		PD29_PF_CSPI1_SCLK,
 		PD30_PF_CSPI1_MISO,
 		PD31_PF_CSPI1_MOSI,
-- 
1.8.1.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 3/3] ARM: pcm038: Add definition for FEC reset
  2013-05-03 13:11 [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Alexander Shiyan
  2013-05-03 13:11 ` [PATCH 2/3] ARM: pcm038: Add definition for SPI chipselect 0 Alexander Shiyan
@ 2013-05-03 13:11 ` Alexander Shiyan
  2013-05-04  9:08 ` [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander Shiyan @ 2013-05-03 13:11 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/pcm038.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
index 4337f3e..4b2fa6c 100644
--- a/arch/arm/boards/pcm038/pcm038.c
+++ b/arch/arm/boards/pcm038/pcm038.c
@@ -46,6 +46,7 @@
 
 #include "pll.h"
 
+#define PCM038_GPIO_FEC_RST	(GPIO_PORTC + 30)
 #define PCM038_GPIO_SPI_CS0	(GPIO_PORTD + 28)
 
 static struct fec_platform_data fec_info = {
@@ -212,6 +213,7 @@ static int pcm038_devices_init(void)
 		PD15_AOUT_FEC_COL,
 		PD16_AIN_FEC_TX_ER,
 		PF23_AIN_FEC_TX_EN,
+		PCM038_GPIO_FEC_RST | GPIO_GPIO | GPIO_OUT,
 		/* UART1 */
 		PE12_PF_UART1_TXD,
 		PE13_PF_UART1_RXD,
@@ -303,6 +305,7 @@ static int pcm038_devices_init(void)
 	/* Register the fec device after the PLL re-initialisation
 	 * as the fec depends on the (now higher) ipg clock
 	 */
+	gpio_set_value(PCM038_GPIO_FEC_RST, 1);
 	imx27_add_fec(&fec_info);
 
 	switch (bootsource_get()) {
-- 
1.8.1.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups
  2013-05-03 13:11 [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Alexander Shiyan
  2013-05-03 13:11 ` [PATCH 2/3] ARM: pcm038: Add definition for SPI chipselect 0 Alexander Shiyan
  2013-05-03 13:11 ` [PATCH 3/3] ARM: pcm038: Add definition for FEC reset Alexander Shiyan
@ 2013-05-04  9:08 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-05-04  9:08 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: barebox

On Fri, May 03, 2013 at 05:11:47PM +0400, Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Applied this series.

Thanks
 Sascha

> ---
>  arch/arm/boards/pcm038/pcm038.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
> index df8b1f9..1b0c54b 100644
> --- a/arch/arm/boards/pcm038/pcm038.c
> +++ b/arch/arm/boards/pcm038/pcm038.c
> @@ -191,6 +191,7 @@ static int pcm038_devices_init(void)
>  	long sram_size;
>  
>  	unsigned int mode[] = {
> +		/* FEC */
>  		PD0_AIN_FEC_TXD0,
>  		PD1_AIN_FEC_TXD1,
>  		PD2_AIN_FEC_TXD2,
> @@ -209,16 +210,18 @@ static int pcm038_devices_init(void)
>  		PD15_AOUT_FEC_COL,
>  		PD16_AIN_FEC_TX_ER,
>  		PF23_AIN_FEC_TX_EN,
> +		/* UART1 */
>  		PE12_PF_UART1_TXD,
>  		PE13_PF_UART1_RXD,
>  		PE14_PF_UART1_CTS,
>  		PE15_PF_UART1_RTS,
> +		/* CSPI1 */
>  		PD25_PF_CSPI1_RDY,
>  		GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT,
>  		PD29_PF_CSPI1_SCLK,
>  		PD30_PF_CSPI1_MISO,
>  		PD31_PF_CSPI1_MOSI,
> -		/* display */
> +		/* Display */
>  		PA5_PF_LSCLK,
>  		PA6_PF_LD0,
>  		PA7_PF_LD1,
> -- 
> 1.8.1.5
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-04  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-03 13:11 [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Alexander Shiyan
2013-05-03 13:11 ` [PATCH 2/3] ARM: pcm038: Add definition for SPI chipselect 0 Alexander Shiyan
2013-05-03 13:11 ` [PATCH 3/3] ARM: pcm038: Add definition for FEC reset Alexander Shiyan
2013-05-04  9:08 ` [PATCH 1/3] ARM: pcm038: Add descriptions for pin-groups Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox