public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2] socfpga: initialize designware ethernet
Date: Sun, 13 Jul 2014 15:30:56 +0200	[thread overview]
Message-ID: <201407131530.56496.marex@denx.de> (raw)
In-Reply-To: <20140713080650.GA19607@amd.pavel.ucw.cz>

On Sunday, July 13, 2014 at 10:06:50 AM, Pavel Machek wrote:
[...]
> @@ -14,3 +16,19 @@ int dram_init(void)
>  	gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
>  	return 0;
>  }
> +
> +
> +/*
> + * DesignWare Ethernet initialization
> + */
> +/* We know all the init functions have been run now */
> +int board_eth_init(bd_t *bis)

This would be cpu_eth_init()

> +{
> +#if !defined(CONFIG_SOCFPGA_VIRTUAL_TARGET) && !defined(CONFIG_SPL_BUILD)
> +       /* initialize and register the emac */
> +	return designware_initialize(CONFIG_EMAC_BASE,
> +				     CONFIG_PHY_INTERFACE_MODE);
> +#else
> +	return 0;
> +#endif
> +}
[...]
Best regards,
Marek Vasut

  reply	other threads:[~2014-07-13 13:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11  9:45 [U-Boot] [PATCH] socfpga: initialize designware ethernet Pavel Machek
2014-07-11  9:49 ` Marek Vasut
2014-07-11 10:40   ` Pavel Machek
2014-07-11 10:44     ` Marek Vasut
2014-07-13  8:06 ` [U-Boot] [PATCHv2] " Pavel Machek
2014-07-13 13:30   ` Marek Vasut [this message]
2014-07-14 12:14   ` [U-Boot] [PATCHv3] " Pavel Machek
2014-07-14 12:28     ` Marek Vasut
2014-07-14 12:38       ` Pavel Machek
2014-08-30 15:13     ` [U-Boot] [U-Boot, PATCHv3] " Tom Rini

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=201407131530.56496.marex@denx.de \
    --to=marex@denx.de \
    --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