On Sat, Mar 24, 2018 at 11:31:36PM +0900, SASANO Takayoshi wrote:
> Hello,
> 
> On Sat, 24 Mar 2018 22:38:42 +0900,
> Mark Kettenis wrote:
> > I believe the sunxi EMAC uses SRAM and that the current sxie(4) driver
> > expects that SRAM to be properly initialized and set up by U-Boot.
> > 
> > In sunxi_emac_board_setup() U-Boot does:
> > 
> >         /* Map SRAM to EMAC */
> >         setbits_le32(&sram->ctrl1, 0x5 << 2);
> > 
> > Not sure if that is all that is needed.  Doing that from inside the
> > sxie(4) driver code is a bit hard; this would probably require adding
> > a driver for the sram-controller ("allwinner,sun4i-a10-sram-controller").
> 
> I checked the compiled object of U-boot (from
> /usr/ports/pobj/u-boot-arm-2017.09-arm/u-boot-2017.09/build), there is no
> EMAC driver for not only Linksprite_pcDuino but also many A10 based board.
> 

fixed in 2017.11:
http://git.denx.de/?p=u-boot.git;a=commit;h=e286fada9d434cd211b56fa7a4b5ef8965577e7f

you should really update.

> It is the best that initializing SRAM controller in OpenBSD, but
> it is curious why EMAC controller is disabled in U-boot...

Commit msg from above url does explain, just a 'bug' due err in maintenance
within U-Boot.
i agree with Mark, this should be handled in a driver for the sram-controller.

-Artturi

> 
> Regards,
> -- 
> SASANO Takayoshi (JG1UAA) <u...@mx5.nisiq.net>

Reply via email to