mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
d2a44ceddc
The Pogoplug E02 board has the network chip Marvell 88E1116R. Convert to Driver Model and use uclass mvgbe and the compatible driver M88E1118R to bring up Ethernet. - Add board_eth_init(), CONFIG_DM_ETH, and CONFIG_PHY_MARVELL to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h for all Kirkwood boards with mv8831116 PHY, with each board defines the function reset_phy(). Undefine it for this board. - As the result of the migration to Driver Model, this u-boot image has grown substantially (about 100K, give or take). The old envs location at 0x60000 (384k) is no longer possible. Move it to 0xC0000 (768K). - Miscellaneous changes: Move constants to .c file and remove header file board/cloudengines/pogo_e02/pogo_e02.h, use CONFIG_SYS_THUMB_BUILD to keep u-boot image under 512K, use BIT macro, and cleanup comments. Signed-off-by: Tony Dinh <mibodhi@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
38 lines
941 B
C
38 lines
941 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2012
|
|
* David Purdy <david.c.purdy@gmail.com>
|
|
*
|
|
* Based on Kirkwood support:
|
|
* (C) Copyright 2009
|
|
* Marvell Semiconductor <www.marvell.com>
|
|
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
|
|
*/
|
|
|
|
#ifndef _CONFIG_POGO_E02_H
|
|
#define _CONFIG_POGO_E02_H
|
|
|
|
#include "mv-common.h"
|
|
|
|
/*
|
|
* Default environment variables
|
|
*/
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
|
|
"32M(rootfs),-(data)\0"\
|
|
"mtdids=nand0=orion_nand\0"\
|
|
"bootargs_console=console=ttyS0,115200\0" \
|
|
"bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
|
|
"ext2load usb 0:1 0x01100000 /uInitrd\0"
|
|
|
|
/*
|
|
* Ethernet Driver configuration
|
|
*/
|
|
#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
|
|
#define CONFIG_PHY_BASE_ADR 0
|
|
#ifdef CONFIG_RESET_PHY_R
|
|
#undef CONFIG_RESET_PHY_R /* remove legacy reset_phy() */
|
|
#endif
|
|
|
|
#endif /* _CONFIG_POGO_E02_H */
|