Commit 53da4ce2 authored by Kevin Hilman's avatar Kevin Hilman

OMAP3: remove OPP interfaces from OMAP PM layer

With new OPP layer, OPP users will access OPP API directly instead of
using OMAP PM layer, so remove all notions of OPPs from the OMAP PM
layer.
Acked-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent f5a6422d
...@@ -347,8 +347,7 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, ...@@ -347,8 +347,7 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0,
else if (cpu_is_omap44xx()) else if (cpu_is_omap44xx())
omap44xx_hwmod_init(); omap44xx_hwmod_init();
/* The OPP tables have to be registered before a clk init */ omap_pm_if_early_init();
omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps);
if (cpu_is_omap2420()) if (cpu_is_omap2420())
omap2420_clk_init(); omap2420_clk_init();
......
...@@ -17,27 +17,10 @@ ...@@ -17,27 +17,10 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/cpufreq.h> #include <linux/cpufreq.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/opp.h>
#include "powerdomain.h" #include "powerdomain.h"
/**
* struct omap_opp - clock frequency-to-OPP ID table for DSP, MPU
* @rate: target clock rate
* @opp_id: OPP ID
* @min_vdd: minimum VDD1 voltage (in millivolts) for this OPP
*
* Operating performance point data. Can vary by OMAP chip and board.
*/
struct omap_opp {
unsigned long rate;
u8 opp_id;
u16 min_vdd;
};
extern struct omap_opp *mpu_opps;
extern struct omap_opp *dsp_opps;
extern struct omap_opp *l3_opps;
/* /*
* agent_id values for use with omap_pm_set_min_bus_tput(): * agent_id values for use with omap_pm_set_min_bus_tput():
* *
...@@ -59,9 +42,11 @@ extern struct omap_opp *l3_opps; ...@@ -59,9 +42,11 @@ extern struct omap_opp *l3_opps;
* framework starts. The "_if_" is to avoid name collisions with the * framework starts. The "_if_" is to avoid name collisions with the
* PM idle-loop code. * PM idle-loop code.
*/ */
int __init omap_pm_if_early_init(struct omap_opp *mpu_opp_table, #ifdef CONFIG_OMAP_PM_NONE
struct omap_opp *dsp_opp_table, #define omap_pm_if_early_init() 0
struct omap_opp *l3_opp_table); #else
int __init omap_pm_if_early_init(void);
#endif
/** /**
* omap_pm_if_init - OMAP PM init code called after clock fw init * omap_pm_if_init - OMAP PM init code called after clock fw init
...@@ -69,7 +54,11 @@ int __init omap_pm_if_early_init(struct omap_opp *mpu_opp_table, ...@@ -69,7 +54,11 @@ int __init omap_pm_if_early_init(struct omap_opp *mpu_opp_table,
* The main initialization code. OPP tables are passed in here. The * The main initialization code. OPP tables are passed in here. The
* "_if_" is to avoid name collisions with the PM idle-loop code. * "_if_" is to avoid name collisions with the PM idle-loop code.
*/ */
#ifdef CONFIG_OMAP_PM_NONE
#define omap_pm_if_init() 0
#else
int __init omap_pm_if_init(void); int __init omap_pm_if_init(void);
#endif
/** /**
* omap_pm_if_exit - OMAP PM exit code * omap_pm_if_exit - OMAP PM exit code
......
...@@ -26,10 +26,6 @@ ...@@ -26,10 +26,6 @@
#include <plat/powerdomain.h> #include <plat/powerdomain.h>
struct omap_opp *dsp_opps;
struct omap_opp *mpu_opps;
struct omap_opp *l3_opps;
/* /*
* Device-driver-originated constraints (via board-*.c files) * Device-driver-originated constraints (via board-*.c files)
*/ */
...@@ -308,13 +304,8 @@ int omap_pm_get_dev_context_loss_count(struct device *dev) ...@@ -308,13 +304,8 @@ int omap_pm_get_dev_context_loss_count(struct device *dev)
/* Should be called before clk framework init */ /* Should be called before clk framework init */
int __init omap_pm_if_early_init(struct omap_opp *mpu_opp_table, int __init omap_pm_if_early_init(void)
struct omap_opp *dsp_opp_table,
struct omap_opp *l3_opp_table)
{ {
mpu_opps = mpu_opp_table;
dsp_opps = dsp_opp_table;
l3_opps = l3_opp_table;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment