[U-Boot] [PATCHv6 04/28] net: sunxi simplify defconfig

Maxime Ripard maxime.ripard at free-electrons.com
Mon May 15 08:14:59 UTC 2017


On Mon, May 15, 2017 at 10:02:20AM +0200, Olliver Schinagl wrote:
> We currently have a few dependencies explicitly set in the sunxi
> defconfigs. Things such as, RGMII, DESIGNWARE_ETH in combination with
> SUN7I_GMAC. When selecting SUN7I_GMAC we already imply DESIGNWARE_ETH
> for example.
> 
> This patch puts this logic into the Kconfig thus simplifying the
> defconfigs. For a user it is also no more logical when enabling one of
> the drivers in Kconfig to have the proper dependencies automatically
> selected.
> 
> One thing to note, the sun7i driver can be connected in two modes,
> RGMII and MII mode and we use both throughout the boards. To make this
> easy we split up the CONFIG_SUNXI_GMAC symbol into the SUN7I_GMAC and
> the SUN7I_EMAC symbol, where the SUN7I_EMAC indicates a MII connected
> designware IP.

This doesn't make any sense. You have two *separate* blocks on the
A20, the EMAC and the GMAC, and yet, you want SUN7I_EMAC to not
represent the EMAC found, but the GMAC with an MII phy?

The current configuration we have is fine as it is, there's no need to
change it, especially for something that is so confusing.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170515/484dc9d4/attachment.sig>


More information about the U-Boot mailing list