Skip to content
Snippets Groups Projects
Commit a78274b2 authored by Nishanth Menon's avatar Nishanth Menon Committed by Albert ARIBAUD
Browse files

OMAP3+: Introduce generic logic for OMAP voltage controller


OMAP Voltage controller is used to generically talk to
PMICs on OMAP3,4,5 over I2C_SR. Instead of replicating code
in multiple SoC code, introduce a common voltage controller
logic which can be re-used from elsewhere.

With this change, we replace setup_sri2c with omap_vc_init which
has the same functionality, and replace the voltage scale
replication in do_scale_vcore and do_scale_tps62361 with
omap_vc_bypass_send_value. omap_vc_bypass_send_value can also
now be used with any configuration of PMIC.

NOTE: Voltage controller controlling I2C_SR is a write-only data
path, so no register read operation can be implemented.

Reported-by: default avatarIsabelle Gros <i-gros@ti.com>
Reported-by: default avatarJerome Angeloni <j-angeloni@ti.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent bbbc1ae9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment