22 Nov, 2015

6 commits

  • These files are based on the current latest upstream kernel work. The
    bus_gates bindings may still change, but for u-boot that does not matter
    as we do not (yet) use any clock info from devicetree for sunxi u-boot.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • The 3.4 kernel from the Allwinner SDK is clocking AHB1 at 200MHz
    on Allwinner H3 and using PLL6 as the clock source (PLL6/3).
    This can be verified by reading the value of the AHB1_APB1_CFG_REG
    register via /dev/mem. It always reads as 0x3180 regardless of
    the current cpufreq operating point. So this configuration should
    be safe for use in U-Boot too.

    PLL6 also needs to be configured before it is used as the clock
    source, according to the "CCU / Programming Guidelines" section
    of the Allwinner manual.

    The current low AHB1 clock speed is limiting the USB transfer
    speed when booting via FEL. This patch can increase the FEL USB
    transfer speed from ~510 KB/s to ~950 KB/s.

    Signed-off-by: Siarhei Siamashka
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     
  • Based on existing A23/A33 code and the original H3 boot0.

    Signed-off-by: Jens Kuske
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Jens Kuske
     
  • Add initial sun8i H3 support, only uart + mmc are supported for now.

    Signed-off-by: Jens Kuske
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Jens Kuske
     
  • This is necessary to distinguish between the "dfu-util --detach" and
    the "dfu-util --reset" requests.

    The default weak implementation of dfu_usb_get_reset() unconditionally
    reboots the device, but we want to be able to continue the boot.scr
    execution after writing the kernel, fdt and ramdisk to RAM via DFU.

    Signed-off-by: Siarhei Siamashka
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     
  • The DFU protocol implementation in U-Boot is much faster than the
    FEL protocol implementation in the boot ROM on Allwinner devices.
    Using DFU instead of FEL improves the USB transfer speed from
    500-900 KB/s to 3.2-3.7 MB/s. This is particularly useful for
    reducing the time needed for booting systems with large initrd
    images.

    FEL is still useful for loading the U-Boot bootloader and a boot
    script, which may then activate DFU in the following way:

    setenv dfu_alt_info ${dfu_alt_info_ram}
    dfu 0 ram 0
    bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

    The rest of the files can be transferred to the device using the
    "dfu-util" tool.

    Signed-off-by: Siarhei Siamashka
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     

21 Nov, 2015

1 commit


20 Nov, 2015

33 commits