All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET.
@ 2010-08-16 18:19 Aldo Brett Cedillo Martinez
  2012-03-31 19:45 ` Marek Vasut
  0 siblings, 1 reply; 4+ messages in thread
From: Aldo Brett Cedillo Martinez @ 2010-08-16 18:19 UTC (permalink / raw)
  To: u-boot

Configures GPMC, adds macros to enable net commands, and adds proper
initialization to board_eth_init function.

I have a similar patch to enable ethernet in zoom3 after initial support
patch.

Signed-off-by: Aldo Brett Cedillo Martinez <aldo.cedillo@ti.com>
---
 board/logicpd/zoom2/zoom2.c   |   21 +++++++++++++++++++++
 include/configs/omap3_zoom2.h |   10 +++++++++-
 2 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/board/logicpd/zoom2/zoom2.c b/board/logicpd/zoom2/zoom2.c
index e9f6625..54d3e9f 100644
--- a/board/logicpd/zoom2/zoom2.c
+++ b/board/logicpd/zoom2/zoom2.c
@@ -60,6 +60,16 @@ static u32 gpmc_serial_TL16CP754C[GPMC_MAX_REG] = {
 	0x1D0904C4, 0
 };
 
+/* Ethernet GPMC configuration */
+static u32 gpmc_eth[GPMC_MAX_REG] = {
+	NET_GPMC_CONFIG1,
+	NET_GPMC_CONFIG2,
+	NET_GPMC_CONFIG3,
+	NET_GPMC_CONFIG4,
+	NET_GPMC_CONFIG5,
+	NET_GPMC_CONFIG6, 0
+};
+
 /* Used to track the revision of the board */
 static zoom2_revision revision = ZOOM2_REVISION_UNKNOWN;
 
@@ -130,6 +140,12 @@ int board_init (void)
 	enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[3],
 			SERIAL_TL16CP754C_BASE, GPMC_SIZE_16M);
 
+#ifdef CONFIG_CMD_NET
+	gpmc_config = gpmc_eth;
+	enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[7],
+			CONFIG_SMC911X_BASE, GPMC_SIZE_16M);
+#endif	/* (CONFIG_CMD_NET) */
+
 	/* board id for Linux */
 	gd->bd->bi_arch_number = MACH_TYPE_OMAP_ZOOM2;
 	/* boot param addr */
@@ -186,6 +202,11 @@ int board_eth_init(bd_t *bis)
 #ifdef CONFIG_LAN91C96
 	rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
 #endif
+
+#ifdef CONFIG_SMC911X
+	rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
+#endif
+
 	return rc;
 }
 #endif
diff --git a/include/configs/omap3_zoom2.h b/include/configs/omap3_zoom2.h
index eef95fe..c66d571 100644
--- a/include/configs/omap3_zoom2.h
+++ b/include/configs/omap3_zoom2.h
@@ -154,7 +154,7 @@
 #undef CONFIG_CMD_FPGA			/* FPGA configuration Support	*/
 #undef CONFIG_CMD_IMI			/* iminfo			*/
 #undef CONFIG_CMD_IMLS			/* List all found images	*/
-#undef CONFIG_CMD_NET			/* bootp, tftpboot, rarpboot	*/
+#define CONFIG_CMD_NET			/* bootp, tftpboot, rarpboot	*/
 #undef CONFIG_CMD_NFS			/* NFS support			*/
 
 #define CONFIG_SYS_NO_FLASH
@@ -165,6 +165,14 @@
 #define CONFIG_SYS_I2C_BUS_SELECT	1
 #define CONFIG_DRIVER_OMAP34XX_I2C	1
 
+/* Ethernet */
+#ifdef CONFIG_CMD_NET
+#define CONFIG_NET_MULTI
+#define CONFIG_SMC911X
+#define CONFIG_SMC911X_32_BIT
+#define CONFIG_SMC911X_BASE		0x2C000000
+#endif /* (CONFIG_CMD_NET) */
+
 /*
  * TWL4030
  */
-- 
1.6.3.3

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

* [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET.
  2010-08-16 18:19 [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET Aldo Brett Cedillo Martinez
@ 2012-03-31 19:45 ` Marek Vasut
  2012-04-02 20:44   ` Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2012-03-31 19:45 UTC (permalink / raw)
  To: u-boot

Dear Aldo Brett Cedillo Martinez,

> Configures GPMC, adds macros to enable net commands, and adds proper
> initialization to board_eth_init function.

Tom, are you OK with applying this patch ?

> I have a similar patch to enable ethernet in zoom3 after initial support
> patch.
> 
> Signed-off-by: Aldo Brett Cedillo Martinez <aldo.cedillo@ti.com>
> ---
>  board/logicpd/zoom2/zoom2.c   |   21 +++++++++++++++++++++
>  include/configs/omap3_zoom2.h |   10 +++++++++-
>  2 files changed, 30 insertions(+), 1 deletions(-)
> 
> diff --git a/board/logicpd/zoom2/zoom2.c b/board/logicpd/zoom2/zoom2.c
> index e9f6625..54d3e9f 100644
> --- a/board/logicpd/zoom2/zoom2.c
> +++ b/board/logicpd/zoom2/zoom2.c
> @@ -60,6 +60,16 @@ static u32 gpmc_serial_TL16CP754C[GPMC_MAX_REG] = {
>  	0x1D0904C4, 0
>  };
> 
> +/* Ethernet GPMC configuration */
> +static u32 gpmc_eth[GPMC_MAX_REG] = {
> +	NET_GPMC_CONFIG1,
> +	NET_GPMC_CONFIG2,
> +	NET_GPMC_CONFIG3,
> +	NET_GPMC_CONFIG4,
> +	NET_GPMC_CONFIG5,
> +	NET_GPMC_CONFIG6, 0
> +};
> +
>  /* Used to track the revision of the board */
>  static zoom2_revision revision = ZOOM2_REVISION_UNKNOWN;
> 
> @@ -130,6 +140,12 @@ int board_init (void)
>  	enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[3],
>  			SERIAL_TL16CP754C_BASE, GPMC_SIZE_16M);
> 
> +#ifdef CONFIG_CMD_NET
> +	gpmc_config = gpmc_eth;
> +	enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[7],
> +			CONFIG_SMC911X_BASE, GPMC_SIZE_16M);
> +#endif	/* (CONFIG_CMD_NET) */
> +
>  	/* board id for Linux */
>  	gd->bd->bi_arch_number = MACH_TYPE_OMAP_ZOOM2;
>  	/* boot param addr */
> @@ -186,6 +202,11 @@ int board_eth_init(bd_t *bis)
>  #ifdef CONFIG_LAN91C96
>  	rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
>  #endif
> +
> +#ifdef CONFIG_SMC911X
> +	rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
> +#endif
> +
>  	return rc;
>  }
>  #endif
> diff --git a/include/configs/omap3_zoom2.h b/include/configs/omap3_zoom2.h
> index eef95fe..c66d571 100644
> --- a/include/configs/omap3_zoom2.h
> +++ b/include/configs/omap3_zoom2.h
> @@ -154,7 +154,7 @@
>  #undef CONFIG_CMD_FPGA			/* FPGA configuration Support	
*/
>  #undef CONFIG_CMD_IMI			/* iminfo			
*/
>  #undef CONFIG_CMD_IMLS			/* List all found images	
*/
> -#undef CONFIG_CMD_NET			/* bootp, tftpboot, rarpboot	
*/
> +#define CONFIG_CMD_NET			/* bootp, tftpboot, rarpboot	
*/
>  #undef CONFIG_CMD_NFS			/* NFS support			
*/
> 
>  #define CONFIG_SYS_NO_FLASH
> @@ -165,6 +165,14 @@
>  #define CONFIG_SYS_I2C_BUS_SELECT	1
>  #define CONFIG_DRIVER_OMAP34XX_I2C	1
> 
> +/* Ethernet */
> +#ifdef CONFIG_CMD_NET
> +#define CONFIG_NET_MULTI
> +#define CONFIG_SMC911X
> +#define CONFIG_SMC911X_32_BIT
> +#define CONFIG_SMC911X_BASE		0x2C000000
> +#endif /* (CONFIG_CMD_NET) */
> +
>  /*
>   * TWL4030
>   */

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET.
  2012-03-31 19:45 ` Marek Vasut
@ 2012-04-02 20:44   ` Tom Rini
  2012-09-06  3:30     ` Marek Vasut
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2012-04-02 20:44 UTC (permalink / raw)
  To: u-boot

On Sat, Mar 31, 2012 at 12:45 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> Dear Aldo Brett Cedillo Martinez,
>
>> Configures GPMC, adds macros to enable net commands, and adds proper
>> initialization to board_eth_init function.
>
> Tom, are you OK with applying this patch ?

To be clear, lets ask Tom Rix, currently listed maintainer (this is
http://patchwork.ozlabs.org/patch/71816/)

>> I have a similar patch to enable ethernet in zoom3 after initial support
>> patch.
>>
>> Signed-off-by: Aldo Brett Cedillo Martinez <aldo.cedillo@ti.com>
>> ---
>> ?board/logicpd/zoom2/zoom2.c ? | ? 21 +++++++++++++++++++++
>> ?include/configs/omap3_zoom2.h | ? 10 +++++++++-
>> ?2 files changed, 30 insertions(+), 1 deletions(-)
>>
>> diff --git a/board/logicpd/zoom2/zoom2.c b/board/logicpd/zoom2/zoom2.c
>> index e9f6625..54d3e9f 100644
>> --- a/board/logicpd/zoom2/zoom2.c
>> +++ b/board/logicpd/zoom2/zoom2.c
>> @@ -60,6 +60,16 @@ static u32 gpmc_serial_TL16CP754C[GPMC_MAX_REG] = {
>> ? ? ? 0x1D0904C4, 0
>> ?};
>>
>> +/* Ethernet GPMC configuration */
>> +static u32 gpmc_eth[GPMC_MAX_REG] = {
>> + ? ? NET_GPMC_CONFIG1,
>> + ? ? NET_GPMC_CONFIG2,
>> + ? ? NET_GPMC_CONFIG3,
>> + ? ? NET_GPMC_CONFIG4,
>> + ? ? NET_GPMC_CONFIG5,
>> + ? ? NET_GPMC_CONFIG6, 0
>> +};
>> +
>> ?/* Used to track the revision of the board */
>> ?static zoom2_revision revision = ZOOM2_REVISION_UNKNOWN;
>>
>> @@ -130,6 +140,12 @@ int board_init (void)
>> ? ? ? enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[3],
>> ? ? ? ? ? ? ? ? ? ? ? SERIAL_TL16CP754C_BASE, GPMC_SIZE_16M);
>>
>> +#ifdef CONFIG_CMD_NET
>> + ? ? gpmc_config = gpmc_eth;
>> + ? ? enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[7],
>> + ? ? ? ? ? ? ? ? ? ? CONFIG_SMC911X_BASE, GPMC_SIZE_16M);
>> +#endif ? ? ? /* (CONFIG_CMD_NET) */
>> +
>> ? ? ? /* board id for Linux */
>> ? ? ? gd->bd->bi_arch_number = MACH_TYPE_OMAP_ZOOM2;
>> ? ? ? /* boot param addr */
>> @@ -186,6 +202,11 @@ int board_eth_init(bd_t *bis)
>> ?#ifdef CONFIG_LAN91C96
>> ? ? ? rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
>> ?#endif
>> +
>> +#ifdef CONFIG_SMC911X
>> + ? ? rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
>> +#endif
>> +
>> ? ? ? return rc;
>> ?}
>> ?#endif
>> diff --git a/include/configs/omap3_zoom2.h b/include/configs/omap3_zoom2.h
>> index eef95fe..c66d571 100644
>> --- a/include/configs/omap3_zoom2.h
>> +++ b/include/configs/omap3_zoom2.h
>> @@ -154,7 +154,7 @@
>> ?#undef CONFIG_CMD_FPGA ? ? ? ? ? ? ? ? ? ? ? /* FPGA configuration Support
> */
>> ?#undef CONFIG_CMD_IMI ? ? ? ? ? ? ? ? ? ? ? ?/* iminfo
> */
>> ?#undef CONFIG_CMD_IMLS ? ? ? ? ? ? ? ? ? ? ? /* List all found images
> */
>> -#undef CONFIG_CMD_NET ? ? ? ? ? ? ? ? ? ? ? ?/* bootp, tftpboot, rarpboot
> */
>> +#define CONFIG_CMD_NET ? ? ? ? ? ? ? ? ? ? ? /* bootp, tftpboot, rarpboot
> */
>> ?#undef CONFIG_CMD_NFS ? ? ? ? ? ? ? ? ? ? ? ?/* NFS support
> */
>>
>> ?#define CONFIG_SYS_NO_FLASH
>> @@ -165,6 +165,14 @@
>> ?#define CONFIG_SYS_I2C_BUS_SELECT ? ?1
>> ?#define CONFIG_DRIVER_OMAP34XX_I2C ? 1
>>
>> +/* Ethernet */
>> +#ifdef CONFIG_CMD_NET
>> +#define CONFIG_NET_MULTI
>> +#define CONFIG_SMC911X
>> +#define CONFIG_SMC911X_32_BIT
>> +#define CONFIG_SMC911X_BASE ? ? ? ? ?0x2C000000
>> +#endif /* (CONFIG_CMD_NET) */
>> +
>> ?/*
>> ? * TWL4030
>> ? */
>
> Best regards,
> Marek Vasut
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
Tom

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

* [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET.
  2012-04-02 20:44   ` Tom Rini
@ 2012-09-06  3:30     ` Marek Vasut
  0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2012-09-06  3:30 UTC (permalink / raw)
  To: u-boot

Dear Tom Rini,

> On Sat, Mar 31, 2012 at 12:45 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> > Dear Aldo Brett Cedillo Martinez,
> > 
> >> Configures GPMC, adds macros to enable net commands, and adds proper
> >> initialization to board_eth_init function.
> > 
> > Tom, are you OK with applying this patch ?
> 
> To be clear, lets ask Tom Rix, currently listed maintainer (this is
> http://patchwork.ozlabs.org/patch/71816/)

I'll pick it and push via staging if it's ok with you. I want to have this out 
of my mane ;-)

> >> I have a similar patch to enable ethernet in zoom3 after initial support
> >> patch.
> >> 
> >> Signed-off-by: Aldo Brett Cedillo Martinez <aldo.cedillo@ti.com>
> >> ---
> >>  board/logicpd/zoom2/zoom2.c   |   21 +++++++++++++++++++++
> >>  include/configs/omap3_zoom2.h |   10 +++++++++-
> >>  2 files changed, 30 insertions(+), 1 deletions(-)
> >> 
> >> diff --git a/board/logicpd/zoom2/zoom2.c b/board/logicpd/zoom2/zoom2.c
> >> index e9f6625..54d3e9f 100644
> >> --- a/board/logicpd/zoom2/zoom2.c
> >> +++ b/board/logicpd/zoom2/zoom2.c
> >> @@ -60,6 +60,16 @@ static u32 gpmc_serial_TL16CP754C[GPMC_MAX_REG] = {
> >>       0x1D0904C4, 0
> >>  };
> >> 
> >> +/* Ethernet GPMC configuration */
> >> +static u32 gpmc_eth[GPMC_MAX_REG] = {
> >> +     NET_GPMC_CONFIG1,
> >> +     NET_GPMC_CONFIG2,
> >> +     NET_GPMC_CONFIG3,
> >> +     NET_GPMC_CONFIG4,
> >> +     NET_GPMC_CONFIG5,
> >> +     NET_GPMC_CONFIG6, 0
> >> +};
> >> +
> >>  /* Used to track the revision of the board */
> >>  static zoom2_revision revision = ZOOM2_REVISION_UNKNOWN;
> >> 
> >> @@ -130,6 +140,12 @@ int board_init (void)
> >>       enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[3],
> >>                       SERIAL_TL16CP754C_BASE, GPMC_SIZE_16M);
> >> 
> >> +#ifdef CONFIG_CMD_NET
> >> +     gpmc_config = gpmc_eth;
> >> +     enable_gpmc_cs_config(gpmc_config, &gpmc_cfg->cs[7],
> >> +                     CONFIG_SMC911X_BASE, GPMC_SIZE_16M);
> >> +#endif       /* (CONFIG_CMD_NET) */
> >> +
> >>       /* board id for Linux */
> >>       gd->bd->bi_arch_number = MACH_TYPE_OMAP_ZOOM2;
> >>       /* boot param addr */
> >> @@ -186,6 +202,11 @@ int board_eth_init(bd_t *bis)
> >>  #ifdef CONFIG_LAN91C96
> >>       rc = lan91c96_initialize(0, CONFIG_LAN91C96_BASE);
> >>  #endif
> >> +
> >> +#ifdef CONFIG_SMC911X
> >> +     rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
> >> +#endif
> >> +
> >>       return rc;
> >>  }
> >>  #endif
> >> diff --git a/include/configs/omap3_zoom2.h
> >> b/include/configs/omap3_zoom2.h index eef95fe..c66d571 100644
> >> --- a/include/configs/omap3_zoom2.h
> >> +++ b/include/configs/omap3_zoom2.h
> >> @@ -154,7 +154,7 @@
> >>  #undef CONFIG_CMD_FPGA                       /* FPGA configuration
> >> Support
> > 
> > */
> > 
> >>  #undef CONFIG_CMD_IMI                        /* iminfo
> > 
> > */
> > 
> >>  #undef CONFIG_CMD_IMLS                       /* List all found images
> > 
> > */
> > 
> >> -#undef CONFIG_CMD_NET                        /* bootp, tftpboot,
> >> rarpboot
> > 
> > */
> > 
> >> +#define CONFIG_CMD_NET                       /* bootp, tftpboot,
> >> rarpboot
> > 
> > */
> > 
> >>  #undef CONFIG_CMD_NFS                        /* NFS support
> > 
> > */
> > 
> >>  #define CONFIG_SYS_NO_FLASH
> >> @@ -165,6 +165,14 @@
> >>  #define CONFIG_SYS_I2C_BUS_SELECT    1
> >>  #define CONFIG_DRIVER_OMAP34XX_I2C   1
> >> 
> >> +/* Ethernet */
> >> +#ifdef CONFIG_CMD_NET
> >> +#define CONFIG_NET_MULTI
> >> +#define CONFIG_SMC911X
> >> +#define CONFIG_SMC911X_32_BIT
> >> +#define CONFIG_SMC911X_BASE          0x2C000000
> >> +#endif /* (CONFIG_CMD_NET) */
> >> +
> >>  /*
> >>   * TWL4030
> >>   */
> > 
> > Best regards,
> > Marek Vasut
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot

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

end of thread, other threads:[~2012-09-06  3:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-16 18:19 [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET Aldo Brett Cedillo Martinez
2012-03-31 19:45 ` Marek Vasut
2012-04-02 20:44   ` Tom Rini
2012-09-06  3:30     ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.