13 Mar, 2015

1 commit


05 Mar, 2015

1 commit

  • Currently in some cases SDRAM init requires global_data to be available
    and soon this will not be available prior to board_init_f(). Adjust the
    code paths in these cases to be correct. In some cases we had the SPL
    stack be in DDR as we might have large stacks (due to Falcon Mode +
    Environment). In these cases switch to CONFIG_SPL_STACK_R. In other
    cases we had simply been setting CONFIG_SPL_STACK into SRAM. In these
    cases we no longer need to (CONFIG_SYS_INIT_SP_ADDR is used and is also
    in SRAM) so drop those lines.

    Signed-off-by: Simon Glass
    Tested on Beagleboard, Beagleboard xM
    Tested-by: Matt Porter
    Tested on Beaglebone Black, AM43xx GP EVM, OMAP5 uEVM, OMAP4 Pandaboard
    Tested-by: Tom Rini
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass

    Simon Glass
     

05 Dec, 2014

1 commit


21 Nov, 2014

1 commit


27 Oct, 2014

1 commit


31 Aug, 2014

1 commit


31 Jul, 2014

1 commit


30 Jul, 2014

1 commit

  • We are about to switch to Kconfig in the next commit.
    But there are something to get done beforehand.

    In Kconfig, include/generated/autoconf.h defines boolean
    CONFIG macros as 1.

    CONFIG_SPL and CONFIG_TPL, if defined, must be set to 1.
    Otherwise, when switching to Kconfig, the build log
    would be sprinkled with warning messages like this:
    warning: "CONFIG_SPL" redefined [enabled by default]

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

26 Jul, 2014

2 commits

  • PISMO_xx macros were used to define 'Platform Independent Storage MOdule'
    related GPMC configurations. This patch
    - Replaces these OMAP3 specific macros with generic CONFIG_xx macros as provided
    by current u-boot infrastructure.
    - Removes unused redundant macros, which are no longer required after
    merging of common platform code in following commit
    commit a0a37183bd75e74608bc78c8d0e2a34454f95a91
    ARM: omap: merge GPMC initialization code for all platform

    +-----------------+-----------------------------------------------------------+
    | Macro | Reason for removal |
    +-----------------+-----------------------------------------------------------+
    | PISMO1_NOR_BASE | duplicate of CONFIG_SYS_FLASH_BASE |
    +-----------------+-----------------------------------------------------------+
    | PISMO1_NAND_BASE| duplicate of CONFIG_SYS_NAND_BASE |
    +-----------------+-----------------------------------------------------------+
    | PISMO1_ONEN_BASE| duplicate of CONFIG_SYS_ONENAND_BASE |
    +-----------------+-----------------------------------------------------------+
    | PISMO1_NAND_SIZE| GPMC accesses NAND device via I/O mapped registers so |
    | | configuring GPMC chip-select for smallest allowable |
    | | segment (GPMC_SIZE_16M) is enough. |
    +-----------------+-----------------------------------------------------------+
    | PISMO1_ONEN_SIZE| OneNAND uses a fixed GPMC chip-select address-space of |
    | | 128MB (GPMC_SIZE_128M) |
    +-----------------+-----------------------------------------------------------+
    +-----------------+-----------------------------------------------------------+
    | PISMO1_NOR | Unused Macros |
    | PISMO1_NAND | |
    | PISMO2_CS0 | |
    | PISMO2_CS1 | |
    | PISMO1_ONENAND | |
    | PISMO2_NAND_CS0 | |
    | PISMO2_NAND_CS1 | |
    | PISMO1_NOR_BASE | |
    | PISMO1_NAND_BASE| |
    | PISMO2_CS0_BASE | |
    +-----------------+-----------------------------------------------------------+

    Signed-off-by: Pekon Gupta

    pekon gupta
     
  • Use generic board setup functions by defining
    CONFIG_SYS_GENERIC_BOARD.

    Signed-off-by: Stefan Roese
    Cc: Tom Rini

    Stefan Roese
     

07 Jun, 2014

2 commits

  • OMAP3 used GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT macros
    to configure GPMC controller for x7 or x8 bit device connected to its interface.
    Now this information is encoded in CONFIG_SYS_NAND_DEVICE_WIDTH macro, so above
    macros can be completely removed.

    Signed-off-by: Pekon Gupta

    pekon gupta
     
  • GPMC controller needs to be configured based on bus-width of the NAND device
    connected to it. Also, dynamic detection of NAND bus-width from on-chip ONFI
    parameters is not possible in following situations:
    SPL: SPL NAND drivers does not support ONFI parameter reading.
    U-boot: GPMC controller iniitalization is done in omap_gpmc.c:board_nand_init()
    which is called before probing for devices, hence any ONFI parameter
    information is not available during GPMC initialization.

    Thus, OMAP NAND driver expected board developers to explicitely write GPMC
    configurations specific to NAND device attached on board in board files itself.
    But this was troublesome for board manufacturers as they need to dive into
    lengthy platform & SoC documents to find details of GPMC registers and
    appropriate configurations to get NAND device working.

    This patch instead adds existing CONFIG_SYS_NAND_BUSWIDTH_16BIT to board config
    hich indicates that connected NAND device has x16 bus-width. And then based on
    this config GPMC driver itself initializes itself based on NAND bus-width. This
    keeps board developers free from knowing GPMC controller specific internals.

    Signed-off-by: Pekon Gupta

    pekon gupta
     

22 Feb, 2014

1 commit

  • Patch f33b9bd3
    [arm: omap3: Enable clocks for peripherals only if they are used]
    breaks SPL booting on tao3530. Since some gpio input's are
    read to detect the board revision. But with this patch above, the
    clocks to the GPIO subsystems are not enabled per default any more.
    The GPIO banks need to be configured specifically now.

    Signed-off-by: Stefan Roese
    Cc: Tom Rini
    Cc: Michael Trimarchi
    Reviewed-by: Stefano Babic

    Stefan Roese
     

13 Dec, 2013

3 commits

  • The memory size is autodetected and is passed to the Linux kernel
    either via ATAGs or device-tree (dtb). So there is no need to
    pass it via the bootargs.

    Signed-off-by: Stefan Roese
    Cc: Tapani Utriainen
    Cc: Thorsten Eisbein
    Cc: Tom Rini

    Stefan Roese
     
  • Add SPL support for the Technexion TAO3530 SOM to replace
    x-loader. Tested with the Thunder baseboard. Currently this is
    only tested with the TAO3530 SOM revision (Ax/Bx).

    Tested by booting via MMC and NAND.

    Signed-off-by: Stefan Roese
    Cc: Tapani Utriainen
    Cc: Thorsten Eisbein
    Cc: Tom Rini

    Stefan Roese
     
  • Add support for TechNexion TAO3530 SoM

    This patch has been posted quite a long time ago. I ported it to
    the latest mainline U-Boot version. With some additional cleanup
    and enhancements.

    Signed-off-by: Tapani Utriainen
    CC: Sandeep Paulraj
    Signed-off-by: Stefan Roese
    Cc: Thorsten Eisbein
    Cc: Tom Rini

    Tapani Utriainen