]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: SmartReflex driver integration
authorKalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Tue, 17 Jun 2008 07:23:06 +0000 (10:23 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 23 Jun 2008 11:06:23 +0000 (14:06 +0300)
commit046bde9ea5d7f934e27686e0cb68c36fff19cb26
treec8de653b4fa4de184b102deab8305b553c6162c6
parent3f42fa9cb48a25a52a62a3fe1ff3aee7bd564d7b
ARM: OMAP: SmartReflex driver integration

This patch integrates TI's SmartReflex driver into linux-omap. SmartReflex is
a module that adjusts OMAP3 VDD1 and VDD2 operating voltages around the
nominal values of current operating point depending on silicon
characteristics and operating conditions.

The patch adds Kconfig options "SmartReflex support" and a sub-option
"SmartReflex testing support" under "System type"->"TI OMAP implementations"
menu. The testing support can be used to test SmartReflex functionality, if
the E-fuse values have not been set for the device. It however uses software
hard coded sensor parameters, which may not work on all devices. Beware.

The driver creates two sysfs entries into /sys/power/ named
"sr_vdd1_autocomp" and "sr_vdd2_autocomp" which can be used to activate
voltage autocompensation feature of SmartReflex modules 1 and 2.

Use the following commands to enable autocompensation:

echo -n 1 > /sys/power/sr_vdd1_autocomp
echo -n 1 > /sys/power/sr_vdd2_autocomp

To disable:

echo -n 0 > /sys/power/sr_vdd1_autocomp
echo -n 0 > /sys/power/sr_vdd2_autocomp

Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/smartreflex.c [new file with mode: 0644]
arch/arm/mach-omap2/smartreflex.h
arch/arm/plat-omap/Kconfig