Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a849c744 authored by Matt Wagantall's avatar Matt Wagantall Committed by Stephen Boyd
Browse files

msm: acpuclock-krait: Make ACPU levels reference L2 levels by index



By referencing L2 frequency table rows by indexes rather than pointers,
we allow for future enhancements which will allocate the L2 frequency
table at runtime.

Change-Id: Icc62962d5d7b27dbf39008bc6eff83c4ee8951c4
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent 5766230c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -108,7 +108,6 @@ static struct msm_bus_scale_pdata bus_scale_data = {
	.name = "acpuclk-8064",
};

#define L2(x) (&l2_freq_tbl[(x)])
static struct l2_level l2_freq_tbl[] = {
	[0]  = { {STBY_KHZ, QSB,   0, 0, 0x00 }, 1050000, 1050000, 0 },
	[1]  = { {  384000, PLL_8, 0, 2, 0x00 }, 1050000, 1050000, 1 },
+0 −1
Original line number Diff line number Diff line
@@ -92,7 +92,6 @@ static struct msm_bus_scale_pdata bus_scale_data = {
};

/* TODO: Update vdd_dig, vdd_mem and bw when data is available. */
#define L2(x) (&l2_freq_tbl[(x)])
static struct l2_level l2_freq_tbl[] = {
	[0]  = { {STBY_KHZ, QSB,   0, 0, 0x00 },  LVL_NOM, 1050000, 0 },
	[1]  = { {  384000, PLL_8, 0, 2, 0x00 },  LVL_NOM, 1050000, 1 },
+0 −1
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@ static struct msm_bus_scale_pdata bus_scale_data = {
};

/* TODO: Update vdd_dig, vdd_mem and bw when data is available. */
#define L2(x) (&l2_freq_tbl[(x)])
static struct l2_level l2_freq_tbl[] = {
	[0]  = { {STBY_KHZ, QSB,   0, 0, 0x00 },  LVL_NOM, 1050000, 0 },
	[1]  = { {  384000, PLL_8, 0, 2, 0x00 },  LVL_NOM, 1050000, 1 },
+0 −1
Original line number Diff line number Diff line
@@ -90,7 +90,6 @@ static struct msm_bus_scale_pdata bus_scale_data = {
	.name = "acpuclk-8960",
};

#define L2(x) (&l2_freq_tbl[(x)])
static struct l2_level l2_freq_tbl[] = {
	[0]  = { {STBY_KHZ, QSB,   0, 0, 0x00 }, 1050000, 1050000, 0 },
	[1]  = { {  384000, PLL_8, 0, 2, 0x00 }, 1050000, 1050000, 1 },
+0 −1
Original line number Diff line number Diff line
@@ -121,7 +121,6 @@ static struct msm_bus_scale_pdata bus_scale_data = {
	.name = "acpuclk-8974",
};

#define L2(x) (&l2_freq_tbl[(x)])
static struct l2_level l2_freq_tbl[] = {
	[0]  = { {STBY_KHZ, QSB,   0, 0,   0 }, LVL_LOW, 1050000, 0 },
	[1]  = { {  300000, PLL_0, 0, 2,   0 }, LVL_LOW, 1050000, 2 },
Loading