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


02 Feb, 2015

4 commits


01 Feb, 2015

1 commit


31 Jan, 2015

4 commits

  • If for some reason DMA module fails to reset user oserves only this:
    --->---
    # dhcp
    Trying dwmac.e0018000
    FAIL
    --->---

    This message makes not much sense.
    With proposed change error message will be more helpful:
    --->---
    # dhcp
    Trying dwmac.e0018000
    DMA reset timeout
    FAIL
    --->---

    For example user may do power toggle to recover board functionality.

    Signed-off-by: Alexey Brodkin
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Cc: Ian Campbell
    Cc: Marek Vasut
    Reviewed-by: Tom Rini
    Acked-by: Pavel Machek
    Acked-by: Joe Hershberger
    Signed-off-by: Joe Hershberger

    Alexey Brodkin
     
  • This patch adds a phy driver for the Micrel KSZ8895 switch. As the SoC MAC
    is directly connected to the switch MAC the link to the switch is always up.

    But the KSZ8895 switch can be hardwired in three configuration modes :
    - not configurable with eventually an eeprom-stored configuration
    - configurable by the mdio/mdc connection (SMI protocol)
    - configurable by a SPI connection.

    In not configurable mode, the switch starts automatically, but in the
    other modes, it must be started programmatically, by writing 1 in
    configuration register 1.
    We only support the not configurable and mdio/mdc (aka SMI) modes here.

    Signed-off-by: Philippe De Muyter
    Cc: Christian Gmeiner
    Signed-off-by: Joe Hershberger

    Philippe De Muyter
     
  • Signed-off-by: Yoshinori Sato
    Signed-off-by: Joe Hershberger

    Yoshinori Sato
     
  • If the PHY is not recognized don't access phydev (NULL)
    and return 0 to signal failure.

    Signed-off-by: Claudiu Manoil
    Signed-off-by: Joe Hershberger

    Claudiu Manoil
     

30 Jan, 2015

7 commits