17 Feb, 2015

2 commits

  • On Keystone2 devices serdes must be initialized before accessing MDIO bus.
    This commit moves the keystone2_net_serdes_setup() from keystone2_eth_open
    to keystone2_emac_initialize to meet that requirement.

    This also eliminates unnecessary serdes initializatin every time when the
    keystone2_eth_open is being called.

    Signed-off-by: Vitaly Andrianov
    Acked-by: Joe Hershberger
    Tested-by: Nishanth Menon

    Vitaly Andrianov
     
  • The patch c316f577b4b72d1a1aeb559e9b3fad20808f1ffd breaks
    siemens boards because prefetch mode is not enabled.
    I assume it breaks other boards as well that don't use
    prefetch.

    This patch sets read_buf to nand_read_buf if
    NAND_OMAP_GPMC_PREFETCH is not defined.

    Signed-off-by: Samuel Egli
    CC: Daniel Mack
    CC: Guido Martínez
    CC: Tom Rini
    CC: Heiko Schocher

    Egli, Samuel
     

13 Feb, 2015

14 commits


10 Feb, 2015

9 commits

  • Tom Rini
     
  • Tom Rini
     
  • Conflicts:
    include/splash.h

    Signed-off-by: Tom Rini

    Tom Rini
     
  • Reduce the lcd_display_bitmap #ifdef complexity by extracting Atmel-specific
    code for setting cmap for bitmap images into a new function lcd_set_cmap().
    A default version is implemented with the remainder of the code.

    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Simon Glass
    Tested-by: Bo Shen
    Tested-by: Josh Wu
    Cc: Bo Shen
    Cc: Simon Glass
    Cc: Anatolij Gustschin

    Nikita Kiryanov
     
  • Reduce the bitmap_plot #ifdef complexity by extracting MPC823-specific code for
    setting cmap into its own implementation of lcd_logo_set_cmap(), implemented in
    mpc8xx_lcd.c. In the MPC823 implementation, ARRAY_SIZE(bmp_logo_palette) is
    switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
    would cause a compilation error because the logo data and palette arrays would
    be defined twice.

    This is a step towards cleaning bitmap_plot() of platform-specific code.

    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Simon Glass
    Tested-by: Bo Shen
    Tested-by: Josh Wu
    Cc: Simon Glass
    Cc: Anatolij Gustschin

    Nikita Kiryanov
     
  • Reduce the bitmap_plot #ifdef complexity by extracting Atmel-specific code for
    setting cmap into a new function lcd_logo_set_cmap(), which is implemented in
    atmel_lcdfb driver and defined as part of common/lcd.c api with a weak dummy
    version. In the Atmel implementation, ARRAY_SIZE(bmp_logo_palette) is
    switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
    would cause a compilation error because the logo data and palette arrays would
    be defined twice.

    This is a step towards cleaning bitmap_plot() of platform-specific code.

    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Simon Glass
    Tested-by: Bo Shen
    Tested-by: Josh Wu
    Cc: Bo Shen
    Cc: Simon Glass
    Cc: Anatolij Gustschin

    Nikita Kiryanov
     
  • Reduce the amount of platform-specific code in common/lcd.c by moving MPC823
    implementation of fb_put_byte() to mpc8xx_lcd.c. Since we must also have a
    default implementation for everybody else, make the remainder of the code
    into a weak function.

    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Simon Glass
    Tested-by: Bo Shen
    Tested-by: Josh Wu
    Cc: Simon Glass
    Cc: Anatolij Gustschin

    Nikita Kiryanov
     
  • Reduce the amount of platform-specific code in common/lcd.c by moving Atmel
    implementation of fb_put_word() to atmel_lcdfb.c. Since we must also have a
    default implementation for everybody else, make the remainder of the code
    into a weak function.

    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Simon Glass
    Acked-by: Bo Shen
    Tested-by: Bo Shen
    Tested-by: Josh Wu
    Cc: Bo Shen
    Cc: Simon Glass
    Cc: Anatolij Gustschin

    Nikita Kiryanov
     
  • configuration_get_cmap() is multiple platform-specific functions stuffed into
    one function. Split it into multiple versions, and move each version to the
    appropriate driver to reduce the #ifdef complexity.

    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Simon Glass
    Tested-by: Bo Shen
    Tested-by: Josh Wu
    Cc: Bo Shen
    Cc: Simon Glass
    Cc: Anatolij Gustschin

    Nikita Kiryanov
     

08 Feb, 2015

3 commits


07 Feb, 2015

4 commits

  • The Quark SoC contains a legacy SPI controller in the legacy bridge
    which is ICH7 compatible. Like Tunnel Creek and BayTrail, the BIOS
    control register offset in the ICH SPI driver is wrong for the Quark
    SoC too, unprotect_spi_flash() is added to enable the flash write.

    Signed-off-by: Bin Meng
    Acked-by: Simon Glass

    Bin Meng
     
  • The base address is found in a different way and the protection bit is also
    in a different place. Otherwise it is very similar.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • Since these board functions seem to be the same for all boards which use
    FSP, move them into a common file. We can adjust this later if future FSPs
    need more flexibility.

    This creates a generic PCI MMC device.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Bin Meng

    Simon Glass
     
  • This patch adds the DDR3 setup and training code taken from the Marvell
    U-Boot repository. This code used to be included as a binary (bin_hdr)
    into the AXP boot image. Not linked with the main U-Boot. With this code
    addition and the following serdes/PHY setup code, the Armada-XP support
    in mainline U-Boot is finally self-contained. So the complete image
    for booting can be built from mainline U-Boot. Without any additional
    external inclusion. Hopefully other MVEBU SoC's will follow here.

    Support for some SoC's has been removed in this version. This is:

    MV_MSYS:
    The code referred to by the MV_MSYS define is currently unused. And its
    not really planned to support this in mainline. So lets remove it to
    make the code clearer and increase the readability.

    MV88F68XX (A38x):
    The code referred to by the MV88F68XX define (A38x) is currently unused.
    And its partial and not sufficient for this device in this stage.
    So lets remove it to make the code clearer and increase the readability.

    MV88F66XX (ALP):
    The code referred to by the MV88F66XX define is currently unused. And its
    not really planned to support this in mainline. So lets remove it to
    make the code clearer and increase the readability.

    MV88F78X60_Z1:
    The code referred to by the MV88F78X60_Z1 define is currently unused. As the
    Z1 revision of the AXP is not supported in mainline anymore.
    So lets remove it to make the code clearer and increase the readability.

    Remove support for Z1 & A0 AXP revisions (steppings). The current stepping
    is B0 and this is the only one that is actively supported in this code
    version.

    Tested on AXP using a SPD DIMM setup on the Marvell DB-MV784MP-GP board and
    on a custom fixed DDR configuration board (maxbcm).

    Note:
    This code has undergone many hours of coding-style cleanup and refactoring.
    It still is not checkpatch clean though, I'm afraid. As the factoring of the
    code has so many levels of indentation that many lines are longer than 80
    chars. This might be some task to tackly later on.

    Signed-off-by: Stefan Roese
    Reviewed-by: Luka Perkov

    Stefan Roese
     

06 Feb, 2015

6 commits


05 Feb, 2015

1 commit


03 Feb, 2015

1 commit