24 Nov, 2014

1 commit

  • gw_ventana can boot from SPI or NAND and both of these interfaces boot from
    the same 0x400 offset.

    This means that we could simplify the code and replace the custom gw_ventana.cfg
    with the generic spl_sd.cfg, as it provides the same boot offset of 0x400.

    Cc: Tim Harvey
    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

20 Nov, 2014

1 commit


17 Nov, 2014

7 commits


15 Nov, 2014

1 commit


14 Nov, 2014

1 commit


13 Nov, 2014

10 commits


12 Nov, 2014

1 commit


11 Nov, 2014

2 commits


10 Nov, 2014

2 commits


08 Nov, 2014

1 commit


07 Nov, 2014

2 commits

  • This patch includes the latest DT sources for socfpga from the current
    Linux kernel. And enables CONFIG_OF_CONTROL for the new build target
    "socfpga_socrates" (the EBV SoCrates board) to make use of this new DT
    support.

    Until this patch, the only SoCFPGA U-Boot target in mainline is
    "socfpga_cyclone5". This build target is not (yet) changed to support
    DT. So nothing changes for this target. Even though the long-term
    goal should be to move all SoCFPGA targets over to DT.

    One of the reasons to enable DT support in SoCFPGA is, that I need to
    support multiple different SPI controllers for this platform. This is
    the QSPI Cadence controller and the Designware SPI master controller.
    Both are implemented in the SoCFPGA. And enabling both controllers is
    only possible by using the new driver model (DM). The DM SPI code
    only supports DT based probing. So it was easier to move SoCFPGA to
    DT than to add the (deprecated) platform-data based probing to the
    DM SPI suport.

    Note that the image with the dtb embedded is u-boot-dtb.img. This needs
    to be used now for those DT enabled boards instead of u-boot.img.

    Signed-off-by: Stefan Roese
    Cc: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Vince Bridgers
    Cc: Albert Aribaud
    Cc: Pavel Machek
    Cc: Simon Glass

    Stefan Roese
     
  • CompuLab cm-t3517 is Computer on Module (CoM) based on AM3517 SoC.
    Features: up to 256MB DDR2, up to 512MB NAND, USB hub, mUSB, WiFi, BT,
    Analog audio codec, touch screen controller, LED.

    Add basic support including:
    LED, Serial console, NAND, MMC, GPIO, I2C, 256MB DRAM.

    Signed-off-by: Igor Grinberg

    Igor Grinberg
     

06 Nov, 2014

3 commits


05 Nov, 2014

8 commits

  • For now we won't want to mess with the existing configurations. Create a
    new one which will enable device tree and driver model. Note that this
    brings the device tree binary into u-boot-sunxi-with-spl.bin.

    Signed-off-by: Simon Glass
    Signed-off-by: Hans de Goede

    Simon Glass
     
  • This was done automatically with the following bits of scripting.

    The Kconfig choice content was generated with this script snippet:
    for i in $(git grep -l CONFIG_ARCH_SUNXI configs/*) ; do
    TARGET=$(sed -n -e 's/CONFIG_SYS_EXTRA_OPTIONS="\([^,"]\+\).*/\1/p' $i);
    MACH=$(sed -n -e 's/.*CONFIG_\(MACH_SUN.I\)=./\1/p' $i)
    echo "config TARGET_$TARGET"
    echo " bool \"$TARGET\""
    echo " depends on $MACH"
    echo
    done

    defconfigs were updated with a sed script (t):
    # Extract board from first entry of CONFIG_SYS_EXTRA_OPTIONS,
    /^CONFIG_SYS_EXTRA_OPTIONS/ {
    s/^\(CONFIG_SYS_EXTRA_OPTIONS="\)\([^,"]\+\),\?\(.*\)/\1\3\nCONFIG_TARGET_\2=y/;

    # Print and delete first line (CONFIG_SYS_EXTRA_OPTIONS), leaving
    # CONFIG_TARGET_ in pattern space
    P;D;
    };

    # Move CONFIG_TARGET_ to hold space
    /^CONFIG_TARGET/{h;n}

    # Print CONFIG_TARGET_ after CONFIG_MACH_ in either SPL or
    # normal mode.
    /^CONFIG_MACH/{p;g;p;n};
    /^\+S:CONFIG_MACH/{p;g;s/^CONFIG_TARGET/+S:&/;p;n};

    # Print any remaining lines normally
    p;
    Run as:
    sed -i -n -f t $(git grep -l CONFIG_ARCH_SUNXI configs/*)
    and then manually removing the one instance of CONFIG_SYS_EXTRA_OPTIONS="" from
    Colombus_defconfig

    board/sunxi/Makefile was updated with:
    sed -e 's/^\(obj-\$(CONFIG_\)\(.*\)\().*+= dram_.*\)/\1TARGET_\2\3/g' board/sunxi/Makefile
    and manually retabbing a few lines to line up again.

    The board descriptions could certainly be improved.

    Signed-off-by: Ian Campbell
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Ian Campbell
     
  • This can now be configured via Kconfig, e.g. with:

    $ make BOARD_defconfig
    $ echo CONFIG_SPL_FEL=y >> .config
    $ echo CONFIG_SPL_FEL=y >> spl/.config

    Signed-off-by: Ian Campbell
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Ian Campbell
     
  • It's unfortunate that this needs to be present in both .config and spl/.config
    since it makes it slightly hard to enable FEL mode for a regular defconfig. It
    can be done with:
    echo CONFIG_SPL_FEL=y >> .config
    echo CONFIG_SPL_FEL=y >> spl/.config

    Ideally only one of those would be needed.

    Signed-off-by: Ian Campbell
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Ian Campbell
     
  • Now we have CONFIG_ARCH_SUNXI as the toplevel, CONFIG_MACH_SUN[45678]I as the
    per-SoC option and leave CONFIG_TARGET_BLAH free for individual boards in the
    future.

    Done automatically with:
    sed -i -e 's/TARGET_\(SUN[45678]I\)/MACH_\1/g' $(git grep -l TARGET_SUN[45678]I)

    Signed-off-by: Ian Campbell
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Ian Campbell
     
  • And make TARGET_SUN[45678]I a choice variable under this.

    configs updated with:
    sed -i -e 's/^\(\+S:\)\?CONFIG_TARGET_SUN.I=y/\1CONFIG_ARCH_SUNXI=y\n&/g' configs/*

    Signed-off-by: Ian Campbell
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Ian Campbell
     
  • The defconfig for Ippo-q8h-v5 was incorrectly committed as
    "Ippo_q8h". This patch renames it correctly, as well as
    correct a typo in my name in the maintainers listing.

    Signed-off-by: Chen-Yu Tsai
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Chen-Yu Tsai
     
  • Defining CONFIG_SYS_TEXT_BASE in config.mk is very old style.

    Create CONFIG_SYS_TEXT_BASE option in Kconfig, but let it
    depend on CONFIG_SPARC because we do not want to disturb
    the other architectures that still define CONFIG_SYS_TEXT_BASE
    in their header files.

    Signed-off-by: Masahiro Yamada
    Cc: Daniel Hellstrom

    Masahiro Yamada