31 May, 2017

23 commits


29 May, 2017

6 commits

  • Adding documentation on the new config properties:
    'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET
    'u-boot,mmc-env-offset-redundant'
    - overrides CONFIG_ENV_OFFSET_REDUND

    Signed-off-by: Philipp Tomsich
    Reviewed-by: Jaehoon Chung

    Philipp Tomsich
     
  • This introduces the ability to override the environment offets from the
    device tree by setting the following nodes in '/config':
    'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET
    'u-boot,mmc-env-offset-redundant'
    - overrides CONFIG_ENV_OFFSET_REDUND

    To keep with the previous logic, the CONFIG_* defines still need to
    be available and the statically defined values become the defaults,
    when the corresponding properties are not set in the device-tree.

    Signed-off-by: Philipp Tomsich
    Acked-by: Simon Glass

    Philipp Tomsich
     
  • Currently while setting the vsel value for dcdc1 and dcdc2
    the driver is wrongly masking the entire 8 bits in the process
    clearing PFM (bit7) field as well. Hence describe an appropriate
    mask for vsel field and modify only those bits in the vsel
    mask.

    Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf

    Signed-off-by: Keerthy
    Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
    Reviewed-by: Jaehoon Chung

    Keerthy
     
  • Number of blocks is a 9 bit field where 0 stands for a unlimited
    number of blocks. Therefore the max number of blocks which can
    be set is 511.

    Signed-off-by: Heiner Kallweit

    Heiner Kallweit
     
  • Inside of
    max77686_buck_volt2hex/max77686_buck_hex2volt/max77686_ldo_volt2hex we
    check that the value we calculate is >= 0 however we declare 'hex' as
    unsigned int making these always true. Mark these as 'int' instead. We
    also move hex_max to int as they are constants that are 0x3f/0xff.
    Given that the above functions are marked as returning an int, make the
    variables we assign their return value to also be int to be able to
    catch the error condition now. Reported by clang-3.8.

    Cc: Jaehoon Chung
    Signed-off-by: Tom Rini

    Tom Rini
     
  • In some places we check if part_config is set to MMCPART_NOAVAILABLE
    (0xff). With part_config being a char this is always false. We should
    be using a u8 to store this value instead, after a quick consultation
    with the Linux Kernel. Reported by clang-3.8.

    Cc: Jaehoon Chung
    Signed-off-by: Tom Rini

    Tom Rini
     

26 May, 2017

2 commits


24 May, 2017

9 commits