20 Aug, 2017

1 commit

  • ATF can leave the MMC IP in a state where U-Boot mmc driver
    can't enumerate the eMMC.

    This patch provides a mmc0_reset_clk() function like we
    already so do sd card controller which resets the IP
    when entering U-Boot.

    With this patch applied eMMC partitions are successfully
    enumerated again.

    => mmc dev 0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    => mmc part

    Partition Map for MMC device 0 -- Partition Type: EFI

    Part Start LBA End LBA Name
    Attributes
    Type GUID
    Partition GUID
    1 0x00000800 0x00000fff "vrl"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    guid: 496847ab-56a1-4cd5-a1ad-47f4acf055c9
    2 0x00001000 0x000017ff "vrl_backup"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    guid: 61a36fc1-8efb-4899-84d8-b61642efa723
    3 0x00001800 0x00001fff "mcuimage"

    Signed-off-by: Peter Griffin

    Peter Griffin
     

14 Aug, 2017

1 commit


11 Jul, 2017

1 commit

  • This port adds support for:
    1) Serial
    2) eMMC
    3) USB

    It has been tested with ARM TRUSTED FIRMWARE running u-boot as the
    BL33 executable [see board's README]

    eMMC has been tested for reading and booting the loader and linux
    kernels as well as saving the u-boot environment.

    USB has been tested with ASIX networking adapter and SanDisk 7.4GB
    drive.

    PSCI has been tested via the reset call (PSCI executes from DDR)

    The firwmare upgrade process has been tested via TFTP and USB FAT
    filesystem containing the fastboot.bin image in one of the partitions.

    Signed-off-by: Jorge Ramirez-Ortiz

    Jorge Ramirez-Ortiz
     

06 Jun, 2017

1 commit


15 May, 2017

1 commit


06 Apr, 2017

1 commit


11 Jan, 2017

1 commit

  • This commit was created as follows:

    [1] Rename the option with the following command:
    find . -name .git -prune -o ! -path ./scripts/config_whitelist.txt \
    -type f -print | xargs sed -i -e 's/CONFIG_DWMMC/CONFIG_MMC_DW/g'

    [2] create the entry for MMC_DW in drivers/mmc/Kconfig
    (the prompt and help were copied from Linux)

    [3] run "tools/moveconfig.py -y MMC_DW"

    [4] add "depends on MMC_DW" to the MMC_DW_ROCKCHIP entry

    [5] Clean-up doc/README.socfpga by hand

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Marek Vasut

    Masahiro Yamada
     

16 Jul, 2016

1 commit


26 Apr, 2016

5 commits

  • This patch updates and simplifies the hikey README. The old
    instructions were hard to follow, and convoluted.

    This patch also updates the link to the mcuimage.bin which was outdated.

    Using an outdated mcuimage.bin results in the additional a53 cores
    not coming online when the kernel issues PSCI requests to
    arm trusted firmware (ATF).

    Signed-off-by: Peter Griffin
    Reviewed-by: Tom Rini

    Peter Griffin
     
  • The memory node gets automatically generated by U-Boot
    in arch_fixup_fdt(), before passing control to the kernel
    using U-Boots representation of the dram banks.

    However the upstream kernel uses the memory node to carve-out
    regions of RAM for various purposes. To make this work without
    changing arch_fixup_fdt() which will effect many platforms
    we replicate the upstream memory node layout using the dram
    banks.

    Signed-off-by: Peter Griffin
    Reviewed-by: Tom Rini

    Peter Griffin
     
  • This allows the reset command to reset the board from
    u-boot.

    => reset
    resetting ...
    INFO: BL1: 0xf9810000 - 0xf9818000 [size = 32768]
    NOTICE: Booting Trusted Firmware
    NOTICE: BL1: v1.1(debug):7fb9b0e
    NOTICE: BL1: Built : 17:06:41, Apr 19 2016

    Signed-off-by: Peter Griffin
    Reviewed-by: Tom Rini

    Peter Griffin
     
  • Currently only the serial pl01x driver is using DT,
    and the other drivers still use platform data but
    as more DT lands in the upstream kernel the aim is
    to migrate the other drivers over to DT as well to
    have a fully DT configured hikey u-boot.

    Signed-off-by: Peter Griffin
    Reviewed-by: Tom Rini

    Peter Griffin
     
  • This patch adds myself as maintainer for the hikey
    U-Boot port.

    Signed-off-by: Peter Griffin
    Reviewed-by: Tom Rini

    Peter Griffin
     

23 Mar, 2016

1 commit


16 Mar, 2016

1 commit

  • The hikey runs with dcache disabled today. There really should be no reason
    not to use caches on AArch64, so let's add MMU definitions and enable the
    dcache.

    Signed-off-by: Alexander Graf

    Alexander Graf
     

28 Sep, 2015

4 commits

  • Use DM for the pl01x serial driver on hikey. Also allow UART0 or
    UART3 to be chosen via Kconfig.

    By default we now output to UART3 as the latest version of ATF outputs
    to this UART. Also UART3 comes out on the LS connector, as opposed to
    UART0 which goes to a unpopulated header.

    As part of this change we also enable CONFIG_BOARD_EARLY_INIT_F and
    call the pinmux configuration code for the UART. Before we were
    relying on ATF having already configured the pin configuration.

    NB: Upstream Linux kernel doesn't yet support UART3, so serial console
    will still be output on UART0 when booting a upstream kernel.

    Signed-off-by: Peter Griffin
    Reviewed-by: Simon Glass

    Peter Griffin
     
  • This causes exceptions and other strange behaviour
    when enabling CONFIG_SYS_MALLOC_F_LEN which is required to
    migrate the serial driver over to DM_SERIAL.

    As GD_FLG_FULL_MALLOC_INIT flag gets reset, after relocation
    we don't end up using the full malloc which ultimately ends up
    causing a synchronus abort.

    Signed-off-by: Peter Griffin
    Reviewed-by: Simon Glass

    Peter Griffin
     
  • Rather than relying on an external URL in the README
    include the Makefile in the hikey directory.

    Signed-off-by: Peter Griffin

    Peter Griffin
     
  • The README had a few mistakes, and one of the URL's
    had changed. Also update the boot log with the latest
    boot trace from ATF, which now includes the mcuimage.bin.

    Signed-off-by: Peter Griffin

    Peter Griffin
     

13 Aug, 2015

2 commits

  • To help others with compiling and flashing ATF and u-boot add
    a README for this board.

    Signed-off-by: Peter Griffin

    Peter Griffin
     
  • HiKey is the first 96boards consumer edition compliant board. It features a hi6220
    SoC which has eight ARM A53 cpu's.

    This initial port adds support for: -
    1) Serial
    2) eMMC / SD card
    3) USB
    4) GPIO

    It has been tested with Arm Trusted Firmware running u-boot as the BL33 executable.

    Notes:

    eMMC has been tested with basic reading of eMMC partition into DDR. I have not
    tested writing / erasing. Due to lack of clock control it won't be
    running in the most performant high speed mode.

    SD card slot has been tested for reading and booting kernels into DDR.
    It is also currently configured to save the u-boot environment to the
    SD card.

    USB has been tested with ASIX networking adapter to tftpboot kernels
    into DDR. On v2015.07-rc2 dhcp now works, and also USB mass storage
    are correctly enumerated.

    GPIO has been tested using gpio toggle GPIO4_1-3 to flash the LEDs.

    Basic SoC datasheet can be found here: -
    https://github.com/96boards/documentation/blob/master/hikey/
    Hi6220V100_Multi-Mode_Application_Processor_Function_Description.pdf

    Board schematic can be found here: -
    https://github.com/96boards/documentation/blob/master/hikey/
    96Boards-Hikey-Rev-A1.pdf

    Signed-off-by: Peter Griffin

    Peter Griffin