msm: acpuclock-krait: NULL terminate L2 table for find_cur_l2_level()

find_cur_l2_level() assumes that the L2 table is NULL terminated
when it has never been terminated. Therefore, if the rate that is
read from the hardware during boot is not found in the table we
will run off the end of the table and read potential junk values.
NULL terminate all the L2 tables so that the loop in
find_cur_l2_level() is guaranteed to terminate.

Change-Id: Ia5d0213000b44def35e388fd3cadf0293344257b
Reported-by: Laura Abbot <lauraa@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
msm: acpuclock-krait: Keep the secondary MUX input fixed

With use of the QSB clock source recently eliminated, only one
input of the secondary clock MUX is used on any target. Since
there is overhead involved reprogramming this MUX when changing
the CPU and L2 frequencies, change the code to just program the
MUX at boot.  Most noticeably, this removes a 1us delay from
every CPU and L2 frequency switch.

Change-Id: I5cd8c981f1be49be7dbba1310d84df439e8be83b
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/acpuclock-8930.c
	arch/arm/mach-msm/acpuclock-8960.c
	arch/arm/mach-msm/acpuclock-8960ab.c
	arch/arm/mach-msm/acpuclock-8974.c
msm: acpuclock-8064: Lower VDD_DIG voltage vote for L2 at 384MHz

New characterization data shows that vdd_dig voltage for L2@384MHz
can be lowered to 0.95v. Update the data in this patch.

Change-Id: Ibdb8568eca4d4ed602c5a5fee2f433a098dfbdcd
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/acpuclock-8064.c
msm: acpuclock-8064: Add support for 8064v1.1 FASTER PVS bin

Add updated PVS data.

Change-Id: I011241d3ea3943673a888cd0aeca925440500ff2
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/acpuclock-8064.c
Added new UV

All new UV values, including for faster frequency table :D

Conflicts:
	arch/arm/mach-msm/acpuclock-8064.c
ARCH/ARM: Fix warning
Remove + from kernel name display

Signed-off-by: Harsh Bhanvadia <harsh.slade@gmail.com>
Userspace Voltage Control (thanks faux123)

-Changed CONFIG name to my liking
-Fixed spelling in the Kconfig
Userspace Voltage Control: tweaked faux's original work to only get/set frequencies that are configured to be used as scaling frequencies.

Also lowered MIN_VDD to 700000 (700mV)
enable pipe

pipe to save my SSD a bit.

Signed-off-by: Harsh Bhanvadia <harsh.slade@gmail.com>
Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	Makefile
mako LCD: keep RGB custom colors alive after screen off/on

When the back-light turns back on, reset the RGB values set in
sysfs (/sys/devices/platform/kcal_ctrl.0/kcal)