[OMAPCONF] add user options to dynamically trace omapconf memory R/W access

Add "--trace_read" and "--trace_write" options to trace all omapconf R/W memory access.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[TEMP] introduce generic temperature sensor abstraction layer

In order to better address multi-platform support, create a
generic temperature sensor abstraction layer, that uses string to
identify sensors instead of cpu-dependent enumerated types.
This layer then internally converts strings into corresponding
cpu-dependent ID and calls subsequent cpu-dependent functions.
Starting from now, all generic / non cpu-dependent code shall use
this layer.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][TEMP] use new generic temperature sensor abstracted layer

Use new generic temperature sensor abstracted layer for OMAP4 architecture.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[LIB] add functions to convert clock rates and voltages

Add functions to convert clock rates and voltages.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[PMIC] add function to round voltage

Add function to convert RAW voltage (e.g from Data Manual) into stepped SMPS voltage.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[VOLTDM][OMAP4][OMAP5] introduce voltage domain generic abstraction layer

Introduce voltage domain generic abstraction layer.
Define an abstraction layer that addresses voltage domains using strings (generic names),
in order to get rid of platform specific enumerated types.
All high-level functions (generic / cross platform) shall use this layer instead of
calling into architecture-specific functions.

Add some minor new functions in architecture-specific libraries to fully handle it.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][CLOCK] fix 2 bugs in debug code

Fix 2 bugs in debug code causing compilation error.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][MODULE] fix double rounding side effect with GPU DSP And IVA PoR rates

Fix double rounding side effect with GPU DSP And IVA PoR rates.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][HELP][TEMP] fix supported memory sensor names in help

Fix supported memory sensor names in help.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OPP][OMAP4][OMAP5] introduce OPP generic abstraction layer

Introduce OPP generic abstraction layer.
Define an abstraction layer that addresses OPP (OPerating Points) using strings (generic names),
in order to get rid of platform specific enumerated types.
All high-level functions (generic / cross platform) shall use this layer instead of
calling into architecture-specific functions.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][CLKSPEED][AUDIT] fix missing BANDGAPTS expected clock rate

Fix missing BANDGAPTS expected clock rate.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[REGRESSIONTESTSUITE][OMAP4470] fix OPP50 MPU clock rate

fix OPP50 MPU clock rate

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[REGRESSIONTESTSUITE][TEMP][OMAP5] update script to support new temp options

update script to support new temp options.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4460][OMAP4470][OPP] fix VDD_IVA OPP NITROSB expected clock rate

Fix VDD_IVA OPP NITROSB expected clock rate.
Based on patch for OMAP4470 from Naoko Houra who found the bug.
Completed with OMAP4460 + omap4/opp44xx.c fixes.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][UC_AUDIT] fix Jelly Bean support

Reworked code to better handle Jelly Bean and next pastries.
Was causing lost of "undef" warning in uc_audits due to unknown pastries.
By default use the last known pastry golden settings.

Also fix MP3 use-case expected OPP and DPLL IVA state.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][CLKSPEED][AUDIT] do not skip TIMERs, MCBSP, MCASP modules

Do not skip TIMERs, MCBSP, MCASP modules (as PoR rates available).

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[REGRESSIONTESTSUITE][OMAP4][UC_AUDIT] add output files to audit

Add output files to audit to refine audit.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4470][OPP] OMAP4470 VDD_CORE OPP100_HIGH support

Detect new OMAP4470 VDD_CORE OPP100_HIGH support.
DSS clock rate is only difference between OPP50_HIGH and OPP100_HIGH.
Use it for the detection.
Update data tables accordingly.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP4][TEMP] fix hotspot sensor file read

hotspot sensor file content changed, aligned other generic sensor file.
Update code to handle this change.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>
[OMAP5][TEMP] MPU and GPU sensors support

Add MPU and GPU sensors support.

Signed-off-by: Patrick Titiano <p-titiano@ti.com>