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.
It is the best that initializing SRAM controller in OpenBSD, but
it is curious why EMAC controller is disabled in U-boot...
Regards,
--
SASANO Takayoshi (JG1UAA) <[email protected]>