From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dr. Philipp Tomsich Date: Wed, 22 Feb 2017 22:03:15 +0100 Subject: [U-Boot] [PATCH v1 2/2] sun8i: enable support for the Micrel KSZ9031 with SUN8I_EMAC In-Reply-To: <20170222190014.duimcjxl7e6jym3d@lukather> References: <9251edd665595cc1c0909c9f5fad4d8052238642.1487340736.git.philipp.tomsich@theobroma-systems.com> <20170221195633.iho2qadbo5a6nlqk@lukather> <9E24DCD7-E97D-4D5D-907A-3107C5CC03A0@theobroma-systems.com> <20170222190014.duimcjxl7e6jym3d@lukather> Message-ID: <4FD7E47F-03F8-4340-81D1-7137BCCE6AA2@theobroma-systems.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Maxime, > On 22 Feb 2017, at 20:00, Maxime Ripard wrote: > > On Wed, Feb 22, 2017 at 03:45:41PM +0100, Dr. Philipp Tomsich wrote: >> Maxime, >> >>> On 21 Feb 2017, at 21:35, Dr. Philipp Tomsich wrote: >>> >>> Maxime, >>> >>>> On 21 Feb 2017, at 20:56, Maxime Ripard wrote: >>>> >>>> On Fri, Feb 17, 2017 at 06:47:55PM +0100, Philipp Tomsich wrote: >>>>> #ifdef CONFIG_SUN8I_EMAC >>>>> #define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY */ >>>>> +#define CONFIG_PHY_MICREL >>>>> +#define CONFIG_PHY_MICREL_KSZ9031 /* used on A64-uQ7 */ >>>>> #endif >>>> >>>> Same thing here, and that way you could enable it only on the board >>>> defconfig. >> >> I?d really like to keep this for all SUN8I_EMAC configurations, as we >> need the PHY support to initialise the pad timing parameters from the >> DTS. If these are not initialised, then RGMII (i.e. Gigabit) will not work. > > I'm not really discussing whether it is needed or not. The discussion is moot anyway, as I had this change already committed for v2 this afternoon. >> As we are moving towards a ?universal? U-Boot binary for sun50i and >> try to put all board specific info into the DTS, I?d like to keep this in >> sunxi-common.h to ensure that nobody rebuild without it and then >> has issues on our boards. > > I'm not buying the whole universal U-Boot binary thing, but that's > really not related to the discussion. sunxi-common.h should be > reduced, not expanded to cover new stuff, in favor of Kconfig. I?ve just put v2 onto the list and only touch the SUN8I_EMAC in v2. The same should be done for SUNXI_GMAC and we?ll cycle back to it, once the DM stuff is done (so we can update our A31 support to it and release any pending changes left over from the A31-uQ7). Regards, Philipp.