28 Apr, 2018

4 commits

  • As of clang-5.0, things have changed a bit. First, we cannot
    automatically guess -target values as if we do not pass one with CC then
    cc-option will fail. Second, to disable movt/movw relocations the
    argument has become -mno-movt.

    Related to the target part, we cannot use arm-none-eabi as that ends up
    being too generic of an ARM target for things like say rpi_3_32b to
    work.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • Re-sync the logic about which clang warnings to disable from v4.17-rc1.
    Note that we don't disable all of the same ones as for now we haven't
    run into any cases of warnings from clang in code from upstream Linux.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • We have a large number of places where while we historically referenced
    gd in the code we no longer do, as well as cases where the code added
    that line "just in case" during development and never dropped it.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • This converts the following to Kconfig:
    CONFIG_SPI

    This partly involves updating code that assumes that CONFIG_SPI implies
    things that are specific to the MPC8xx SPI driver. For now, just update
    the CONFIG tests. This also involves reworking the default for
    CONFIG_SYS_DEF_EEPROM_ADDR so that we don't set it when we cannot make a
    reasonable default, as it does not cause any compile failures.

    Signed-off-by: Adam Ford
    Signed-off-by: Tom Rini

    Adam Ford
     

27 Apr, 2018

4 commits


26 Apr, 2018

25 commits


25 Apr, 2018

3 commits

  • The generic ehci-driver (ehci-generic.c) will try to enable the clocks
    listed in the DTSI. If this fails (e.g. due to clk_enable not being
    implemented in a driver and -ENOSYS being returned by the clk-uclass),
    the driver will bail our and print an error message.

    This implements a minimal clk_enable for the RK3288 and supports the
    clocks mandatory for the EHCI controllers; as these are enabled by
    default we simply return success.

    Signed-off-by: Wadim Egorov
    Acked-by: Philipp Tomsich
    Reviewed-by: Philipp Tomsich

    Wadim Egorov
     
  • Tom Rini
     
  • With clang-4.0 and later we see:
    warning: logical not is only applied to the left hand side of this bitwise
    operator [-Wlogical-not-parentheses]
    if ((!gd->flags & GD_FLG_RELOC))
    ^ ~

    And while the compiler suggests adding parenthesis around gd->flags, a
    reading of the code says that we want to know when GD_FLG_RELOC is not
    set and then return.

    Cc: Simon Glass
    Cc: Anatolij Gustschin
    Signed-off-by: Tom Rini

    Tom Rini
     

24 Apr, 2018

4 commits