public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] [U-BOOT] Zoom2: Ethernet: Enabling LAN9221 chip and CMD_NET.
Date: Thu, 6 Sep 2012 05:30:37 +0200	[thread overview]
Message-ID: <201209060530.37904.marek.vasut@gmail.com> (raw)
In-Reply-To: <CA+M6bX=ts59WYoMzhSjFoqvQuu+0tXpHWeOeEqZUaTrCgAa53w@mail.gmail.com>

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

      reply	other threads:[~2012-09-06  3:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201209060530.37904.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox