24 Feb, 2014

1 commit


03 Feb, 2014

1 commit


14 Jan, 2014

1 commit

  • Issues:
    - reading i2c data by passing u16 pointer causes errors in read data.
    - max17042 status register fields have not only Power On Reset meaning
    so using proper mask is required.

    Changes:
    - read i2c data to type u32 instead of u16 - avoids buffer overflow
    - compare FG status register using mask not just one bit value
    - add checking return value to functions fg read/write
    - add model lock and model check count
    - add debug msg

    Signed-off-by: Przemyslaw Marczak
    Cc: Lukasz Majewski
    Cc: Minkyu Kang

    Przemyslaw Marczak
     

06 Jan, 2014

1 commit


04 Dec, 2013

2 commits

  • Added chip type detection and twl6032
    support in the battery control
    and charge functions.

    Based on Balaji T K patches for TI u-boot.

    Signed-off-by: Oleg Kosheliev

    Oleg Kosheliev
     
  • The data struct is used to support different
    PMIC chip types. It contains the chip type and
    the data (e.g. registers addresses, adc multiplier)
    which is different for twl6030 and twl6032.
    Replaced some hardcoded values with the
    structure vars.

    Based on Balaji T K patches for TI u-boot.

    Signed-off-by: Oleg Kosheliev

    Oleg Kosheliev
     

27 Nov, 2013

1 commit


01 Nov, 2013

1 commit


21 Oct, 2013

1 commit


14 Oct, 2013

1 commit


11 Oct, 2013

1 commit


07 Oct, 2013

1 commit


25 Sep, 2013

2 commits


20 Sep, 2013

2 commits


11 Sep, 2013

1 commit


30 Aug, 2013

1 commit


20 Aug, 2013

1 commit


24 Jul, 2013

1 commit


05 Jul, 2013

1 commit


19 Jun, 2013

1 commit


13 Jun, 2013

2 commits


10 Jun, 2013

1 commit


10 May, 2013

8 commits

  • commit 21144298 (power: twl6035: add palmas PMIC support)
    introduced twl6035_i2c_[read|write]_u8
    Then, commit dd23e59d (omap5: pbias ldo9 turn on)
    introduced palmas_[read|write]_u8 for precisely the same access
    function. TWL6035 belongs to the palmas family, so instead of having
    an twl6035 API, we could use an generic palmas API instead.

    To stay consistent with the function naming of twl4030,6030 accessors,
    we use palmas_i2c_[read|write]_u8

    Cc: Balaji T K
    Cc: Sricharan R
    Reported-by: Ruchika Kharwar
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • Since TPS659038/TWL6035/TWL6037 all belong to palmas family of TI PMICs,
    rename twl6035_mmc1_poweron_ldo by a more generic palmas_mmc1_poweron_ldo
    function.

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • Since TPS659038/TWL6035/TWL6037 all belong to palmas family of TI PMICs,
    rename twl6035_init_settings with an more generic palmas_init_settings

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • TPS659038/TWL6035/TWL6037 all belong to palmas family of TI PMICs
    Rename twl6035 to palmas to allow reuse across multiple current and
    future platforms

    As part of this change, change the CONFIG_TWL6035_POWER to
    CONFIG_PALMAS_POWER and update usage of header file accordingly.

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • twl6030_i2c_[read|write]_u8 can be used else where to access
    multi-function device such as twl6030, so move the register access
    functions to the common twl6030.h header file.

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • u-boot standard i2c register access prototype is
    i2c_read(addr, reg, 1, &buf, 1)
    i2c_reg_write(u8 addr, u8 reg, u8 val)

    twl6030_i2c_read_u8(u8 addr, u8 *val, u8 reg)
    twl6030_i2c_write_u8(u8 addr, u8 val, u8 reg)
    does not provide consistency, so switch the prototype to be
    consistent with rest of u-boot i2c operations:
    twl6030_i2c_read_u8(u8 addr, u8 reg, u8 *val)
    twl6030_i2c_write_u8(u8 addr, u8 reg, u8 val)

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • u-boot standard i2c read prototype is
    i2c_read(addr, reg, 1, &buf, 1)

    twl4030_i2c_read_u8(u8 addr, u8 *val, u8 reg)
    does not provide consistency, so switch the prototype to be
    consistent with rest of u-boot i2c operations:
    twl4030_i2c_read_u8(u8 addr, u8 reg, u8 *val)

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • u-boot standard i2c register write prototype is
    i2c_reg_write(u8 addr, u8 reg, u8 val)

    twl4030_i2c_write_u8(u8 addr, u8 val, u8 reg)
    does not provide consistency, so switch the prototype to be
    consistent with rest of u-boot i2c operations:
    twl4030_i2c_write_u8(u8 addr, u8 reg, u8 val)

    Signed-off-by: Nishanth Menon

    Nishanth Menon
     

12 Mar, 2013

2 commits


15 Jan, 2013

2 commits


14 Jan, 2013

1 commit


10 Jan, 2013

1 commit


08 Jan, 2013

1 commit