mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
92a190aaab
With this change driver will benefit from existing phylib and thus custom phy functionality implemented in the driver will go away: * Instantiation of the driver is now much shorter - 2 parameters instead of 4. * Simplified phy management/functoinality in driver is replaced with rich functionality of phylib. * Support of custom phy initialization is now done with existing "board_phy_config". Note that after this change some previously used config options (driver-specific PHY configuration) will be obsolete and they are simply substituted with similar options of phylib. For example: * CONFIG_DW_AUTONEG - no need in this one. Autonegotiation is enabled by default. * CONFIG_DW_SEARCH_PHY - if one wants to specify attached phy explicitly CONFIG_PHY_ADDR board config option has to be used, otherwise automatically the first discovered on MDIO bus phy will be used I believe there's no need now in "doc/README.designware_eth" because user only needs to instantiate the driver with "designware_initialize" whose prototype exists in "include/netdev.h". Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Vipin Kumar <vipin.kumar@st.com> Cc: Stefan Roese <sr@denx.de> Cc: Mischa Jonker <mjonker@synopsys.com> Cc: Shiraz Hashim <shiraz.hashim@st.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Amit Virdi <amit.virdi@st.com> Cc: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
46 lines
989 B
C
46 lines
989 B
C
/*
|
|
* (C) Copyright 2009
|
|
* Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
/*
|
|
* High Level Configuration Options
|
|
* (easy to change)
|
|
*/
|
|
#define CONFIG_SPEAR600
|
|
|
|
#if defined(CONFIG_usbtty)
|
|
#define CONFIG_SPEAR_USBTTY
|
|
#endif
|
|
|
|
#if defined(CONFIG_nand)
|
|
#define CONFIG_ENV_IS_IN_NAND
|
|
#else
|
|
#define CONFIG_ENV_IS_IN_FLASH
|
|
#endif
|
|
|
|
#include <configs/spear-common.h>
|
|
|
|
/* Serial Configuration (PL011) */
|
|
#define CONFIG_SYS_SERIAL0 0xD0000000
|
|
#define CONFIG_SYS_SERIAL1 0xD0080000
|
|
#define CONFIG_PL01x_PORTS { (void *)CONFIG_SYS_SERIAL0, \
|
|
(void *)CONFIG_SYS_SERIAL1 }
|
|
|
|
/* NAND flash configuration */
|
|
#define CONFIG_SYS_FSMC_NAND_SP
|
|
#define CONFIG_SYS_FSMC_NAND_8BIT
|
|
#define CONFIG_SYS_NAND_BASE 0xD2000000
|
|
|
|
/* Ethernet PHY configuration */
|
|
#define CONFIG_PHY_NATSEMI
|
|
|
|
/* Environment Settings */
|
|
#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_USBTTY
|
|
|
|
#endif /* __CONFIG_H */
|