08 May, 2017

7 commits

  • Add CONFIG_USB_STORAGE to the defconfig file.

    Signed-off-by: Uri Mashiach
    Reviewed-by: Tom Rini

    Uri Mashiach
     
  • USB bus scan attempt:
    ----------------------------------cut----------------------------------
    => usb start
    starting USB...
    USB0: Register 2000140 NbrPorts 2
    Starting the controller
    USB XHCI 1.00
    scanning bus 0 for devices... data abort
    pc : [] lr : []
    reloc pc : [] lr : []
    sp : fdf42930 ip : fdf42960 fp : 00000000
    r10: 00000001 r9 : fdf42ef0 r8 : 48890020
    r7 : 00000002 r6 : fffa5840 r5 : fff8b140 r4 : fdf429c0
    r3 : 00000000 r2 : 00000004 r1 : 00000000 r0 : 00000000
    Flags: nZcv IRQs off FIQs off Mode SVC_32
    Resetting CPU ...

    resetting ...
    ----------------------------------cut----------------------------------

    Fix by enabling USB configuration in the SPL.

    Signed-off-by: Uri Mashiach
    Reviewed-by: Tom Rini
    Reviewed-by: Igor Grinberg

    Uri Mashiach
     
  • Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
    during board_usb_exit to enable and disable clocks respectively.

    Modifications:
    * Enable USB clocks in the OMAP version of the function
    board_usb_init.
    * Disable USB clocks in the OMAP version of the function
    board_usb_cleanup.

    Cc: Marek Vasut
    Signed-off-by: Uri Mashiach
    Reviewed-by: Marek Vasut
    Reviewed-by: Tom Rini

    Uri Mashiach
     
  • A weak version of the function board_usb_init is implemented in:
    common/usb.c
    drivers/usb/host/xhci-omap.c

    To fix the double implementations:
    * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c
    normal (not weak).
    * The function board_usb_init in drivers/usb/host/xhci-omap.c calls to
    the weak function omap_xhci_board_usb_init.
    * Rename board version of the function board_usb_init to
    omap_xhci_board_usb_init.
    Done only for boards that defines CONFIG_USB_XHCI_OMAP.

    To achieve the same flexibility with the function board_usb_cleanup:
    * Add a normal (not weak) implementation of the function
    board_usb_cleanup in drivers/usb/host/xhci-omap.c
    * The function board_usb_cleanup in drivers/usb/host/xhci-omap.c calls
    to the weak function omap_xhci_board_usb_cleanup.
    * Rename board version of the function board_usb_cleanup to
    omap_xhci_board_usb_cleanup.
    Done only for boards that defines CONFIG_USB_XHCI_OMAP.

    Cc: Lokesh Vutla
    Signed-off-by: Uri Mashiach
    Acked-by: Marek Vasut
    Reviewed-by: Tom Rini
    Reviewed-by: Roger Quadros

    Uri Mashiach
     
  • Modify the determination of the base address of xHCI registers of DRA7XX
    targets.
    Before the commit: by the target.
    After the commit: by the USB port index.

    Cc: Lokesh Vutla
    Cc: Marek Vasut
    Cc: Roger Quadros
    Signed-off-by: Uri Mashiach
    Reviewed-by: Marek Vasut
    Reviewed-by: Tom Rini
    Reviewed-by: Roger Quadros
    Acked-by: Marek Vasut
    Acked-by: Marek Vasut

    Uri Mashiach
     
  • The symbol CONFIG_DRA7XX is needed for Kconfig conditions.

    Cc: Lokesh Vutla
    Signed-off-by: Uri Mashiach
    Reviewed-by: Tom Rini

    Uri Mashiach
     
  • Signed-off-by: Tom Rini

    Tom Rini
     

06 May, 2017

7 commits


03 May, 2017

3 commits


02 May, 2017

3 commits

  • Signed-off-by: Tom Rini

    Tom Rini
     
  • Mention eMMC and microSD as supported devices.

    They have been enabled with patch
    d0c5c8d529f16fa88ab52a3b5dd2d4fc03664f19
    odroid-c2: enable new Meson GX MMC driver in board defconfig
    which was accepted for u-boot-mmc.git.

    Signed-off-by: Heinrich Schuchardt

    xypron.glpk@gmx.de
     
  • 0x10000000 is the start of a 2 MiB area used by the
    ARM Trusted Firmware (BL31).

    See
    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/arch/arm64/boot/dts/amlogic/meson-gx.dtsi?id=refs/tags/v4.10.10

    So we should not load the ramdisk here.

    The legacy Ubuntu image for the Odroid C2 comes with the
    following line in boot.ini:
    setenv initrd_loadaddr "0x13000000"

    See
    http://odroid.in/ubuntu_16.04lts/ubuntu64-16.04-minimal-odroid-c2-20160815.img.xz
    http://deb.odroid.in/c2/pool/main/u/u-boot/u-boot_20170226-752a100-8_arm64.deb

    So let's use the same address.

    With the patch booting Linux with booti succeeds on an Odroid C2,
    without the patch Linux hangs.

    Cc: Andreas Färber
    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Simon Glass
    Tested-by: Vagrant Cascadian

    xypron.glpk@gmx.de
     

01 May, 2017

20 commits