[U-Boot] [PATCH 21/26] [eNET] Add support for onboard RTL8100B (RTL8139) chips

Ben Warren biggerbadderben at gmail.com
Sun Apr 11 18:39:35 CEST 2010


Hi Graeme,

Thanks for making this change.

On Sun, Apr 11, 2010 at 5:43 AM, Graeme Russ <graeme.russ at gmail.com> wrote:

>
> Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
>
Acked-by: Ben Warren <biggerbadderben at gmail.com>

> ---
>  board/eNET/eNET.c      |    7 +++++++
>  include/configs/eNET.h |    9 ++++++++-
>  2 files changed, 15 insertions(+), 1 deletions(-)
>
> diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c
> index 52ea140..62f99ce 100644
> --- a/board/eNET/eNET.c
> +++ b/board/eNET/eNET.c
> @@ -24,6 +24,8 @@
>  #include <common.h>
>  #include <asm/io.h>
>  #include <asm/ic/sc520.h>
> +#include <net.h>
> +#include <netdev.h>
>
>  #ifdef CONFIG_HW_WATCHDOG
>  #include <watchdog.h>
> @@ -173,3 +175,8 @@ ulong board_flash_get_legacy (ulong base, int banknum,
> flash_info_t * info)
>        } else
>                return 0;
>  }
> +
> +int board_eth_init(bd_t *bis)
> +{
> +       return pci_eth_init(bis);
> +}
> diff --git a/include/configs/eNET.h b/include/configs/eNET.h
> index 19a81b8..4380bb1 100644
> --- a/include/configs/eNET.h
> +++ b/include/configs/eNET.h
> @@ -104,9 +104,10 @@
>  #define CONFIG_CMD_LOADS       /* loads                        */
>  #define CONFIG_CMD_MEMORY      /* md mm nm mw cp cmp crc base loop mtest
> */
>  #define CONFIG_CMD_MISC                /* Misc functions like sleep etc*/
> -#undef CONFIG_CMD_NET          /* bootp, tftpboot, rarpboot    */
> +#define CONFIG_CMD_NET         /* bootp, tftpboot, rarpboot    */
>  #undef CONFIG_CMD_NFS          /* NFS support                  */
>  #define CONFIG_CMD_PCI         /* PCI support                  */
> +#define CONFIG_CMD_PING                /* ICMP echo support            */
>  #define CONFIG_CMD_RUN         /* run command in env variable  */
>  #define CONFIG_CMD_SAVEENV     /* saveenv                      */
>  #define CONFIG_CMD_SETGETDCR   /* DCR support on 4xx           */
> @@ -225,6 +226,12 @@
>  #define CONFIG_SYS_THIRD_PCI_IRQ   11
>  #define CONFIG_SYS_FORTH_PCI_IRQ   15
>
> + /*
> + * Network device (TRL8100B) support
> + */
> +#define CONFIG_NET_MULTI
> +#define CONFIG_RTL8139
> +
>  /*-----------------------------------------------------------------------
>  * Hardware watchdog configuration
>  */
> --
> 1.7.0.2.182.ge007
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>


More information about the U-Boot mailing list