06 Oct, 2014

6 commits


03 Oct, 2014

2 commits

  • sub-command 'bootpart-resize' check for argc == 4,
    it will retrun CMD_RET_FAILURE when argc value not matched.

    but bootpart-resize's maxarg is 3, which means you never execute
    this sub-command successfully.

    fix it by change bootpart-resize maxarg to 4.

    Signed-off-by: wally.yeh
    Cc: Wolfgang Denk
    Cc: Pierre Aubert
    Acked-by: Pantelis Antoniou

    Wally Yeh
     
  • The code to set the MMC partition uses an weak function to obtain the
    correct partition number. Use that instead of the compile-time default
    when deciding whether it needs to switch back.

    Fixes: 6e7b7df4df43574 ("env_mmc: support env partition setup in runtime")
    Signed-off-by: Peter A. Bigot
    Acked-by: Dmitry Lifshitz
    Acked-by: Pantelis Antoniou

    Peter Bigot
     

27 Sep, 2014

2 commits


26 Sep, 2014

1 commit


25 Sep, 2014

14 commits


24 Sep, 2014

1 commit

  • Currently, CONFIG_SPL_SPI_* #defines are used for controlling SPI boot in
    SPL. These #defines do not allow the user to select SPI mode for the SPI flash
    (there's no CONFIG_SPL_SPI_MODE, so the SPI mode is hardcoded in
    spi_spl_load.c), and duplicate information already provided by
    CONFIG_SF_DEFAULT_* #defines.

    Kill CONFIG_SPL_SPI_*, and use CONFIG_SF_DEFAULT_* instead.

    Cc: Tom Rini
    Cc: Marek Vasut
    Cc: Sudhakar Rajashekhara
    Cc: Lokesh Vutla
    Cc: Vitaly Andrianov
    Cc: Lars Poeschel
    Cc: Bo Shen
    Cc: Hannes Petermaier
    Cc: Michal Simek
    Acked-by: Marek Vasut
    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Jagannadha Sutradharudu Teki

    Nikita Kiryanov
     

17 Sep, 2014

8 commits


16 Sep, 2014

1 commit


14 Sep, 2014

1 commit


11 Sep, 2014

3 commits

  • For some boards board_init() will change GPIOs, so we need to have driver
    model available before then. Adjust the board init to arrange this, but
    enable it for driver model only, just to be safe.

    This does create additional #ifdef logic, but it is safer than trying to
    make a pervasive change which may cause some boards to break.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Since driver model registers itself with the stdio subsystem, and we
    want to avoid delayed registration and other complexity associated with
    the current serial console, move the stdio subsystem init earlier when
    driver model is used for serial.

    This simplifies the implementation. Should there be any problems with
    this approach they can be dealt with as boards are converted over to
    use driver model for serial.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • In order to support GPIO access in board_early_init_f() we must set up
    driver model before this function is called. In any case, earlier is
    better since driver model is (or will become) a key function for most
    init.

    Signed-off-by: Simon Glass

    Simon Glass
     

09 Sep, 2014

1 commit