[U-Boot] [PATCH 2/3] mxs: Only build internal Ethernet controller for i.MX28
Marek Vasut
marek.vasut at gmail.com
Sun Aug 19 17:06:58 CEST 2012
Dear Otavio Salvador,
> The internal Ethernet controller is only available on i.MX28
> processors so it needs to use CONFIG_MX28 guardian to avoid having
> this code called in others.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
> arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c
> b/arch/arm/cpu/arm926ejs/mxs/mxs.c index c028e5e..a1769fd 100644
> --- a/arch/arm/cpu/arm926ejs/mxs/mxs.c
> +++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c
> @@ -246,7 +246,7 @@ int do_mx28_showclocks(cmd_tbl_t *cmdtp, int flag, int
> argc, char *const argv[]) /*
> * Initializes on-chip ethernet controllers.
> */
> -#ifdef CONFIG_CMD_NET
> +#if defined(CONFIG_MX28) && defined(CONFIG_CMD_NET)
> int cpu_eth_init(bd_t *bis)
> {
> struct mxs_clkctrl_regs *clkctrl_regs =
Acked-by: Marek Vasut <marex at denx.de>
Best regards,
Marek Vasut
More information about the U-Boot
mailing list