24 Nov, 2011

1 commit

  • With device tree support for regulators, its needed that the
    regulator_dev->dev device has the right of_node attached.
    To be able to do this add an additional parameter to the
    regulator_register() api, wherein the dt-adapted driver can
    then pass this additional info onto the regulator core.

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Mark Brown

    Rajendra Nayak
     

07 Nov, 2011

1 commit

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     

01 Nov, 2011

1 commit


09 Aug, 2011

1 commit


27 May, 2011

3 commits


23 Mar, 2011

1 commit


12 Jan, 2011

1 commit

  • Change the interface used by set_voltage() to report the selected value
    to the regulator core in terms of a selector used by list_voltage().
    This allows the regulator core to know the voltage that was chosen
    without having to do an explict get_voltage(), which would be much more
    expensive as it will generally access hardware.

    Signed-off-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Mark Brown
     

05 Sep, 2010

1 commit

  • In choose_voltage(), we use i as array index of info->vol_table.
    The valid value range for i should be 0 .. ARRAY_SIZE(info->vol_table) - 1.

    Take LDO1 as example, ARRAY_SIZE(LDO1_table) is 4, vol_nbits of LDO1 is 2.
    for (i = 0; i < (2 << info->vol_nbits); i++) is equivalent to
    for (i = 0; i < 8; i++)
    which is wrong.

    The same value range checking also applies for index in pm8607_list_voltage().

    Signed-off-by: Axel Lin
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Axel Lin
     

25 May, 2010

2 commits


08 Mar, 2010

2 commits

  • Remove the support 88PM8607 A0/A1 stepping. There's some register
    definition changes in B0 stepping. It can make software more efficient.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     
  • 88PM8606 and 88PM8607 are two discrete chips used for power management.
    Hardware designer can use them together or only one of them according to
    requirement.

    There's some logic tightly linked between these two chips. For example, USB
    charger driver needs to access both chips by I2C interface.

    Now share one driver to these two devices. Only one I2C client is identified
    in platform init data. If another chip is also used, user should mark it in
    companion_addr field of platform init data. Then driver could create another
    I2C client for the companion chip.

    All I2C operations are accessed by 860x-i2c driver. In order to support both
    I2C client address, the read/write API is changed in below.

    reg_read(client, offset)
    reg_write(client, offset, data)

    The benefit is that client drivers only need one kind of read/write API. I2C
    and MFD driver can be shared in both 8606 and 8607.

    Since API is changed, update API in 8607 regulator driver.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     

17 Dec, 2009

2 commits

  • If we fall through it means that we hit an unknown regulator/chip
    combination so set -ENOENT as an explicit flag (the return code
    is only used internally).

    Signed-off-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Mark Brown
     
  • Hi Liam,

    Since Samuel merged a new version of mfd 88pm8607 driver, I format a
    new patch on regulator 88pm8607. I paste the new patch in mail. Please
    help to review again. And I also attach the mfd driver in mail.

    From: Haojian Zhuang
    Date: Thu, 8 Oct 2009 09:36:53 -0400
    Subject: [PATCH] regulator: Add 88PM8607 PMIC driver

    This patch adds regulator drivers for Marvell 88PM8607 PMIC.
    This controller contains 3 DVC and 14 LDO regulators. This controller
    uses I2C interface.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Liam Girdwood

    Haojian Zhuang