static struct cpufreq_frequency_table db8500_freq_table[] = { [0] = { .index = 0, .frequency = 200000, }, [1] = { .index = 1, .frequency = 400000, }, [2] = { .index = 2, .frequency = 800000, }, #if defined(CONFIG_MACH_GAVINI) [3] = { /* Used for MAX_OPP, if available */ .index = 3, .frequency = 1000000, }, #else [3] = { .index = 3, .frequency = CPUFREQ_TABLE_END, }, #endif [4] = { .index = 4, .frequency = CPUFREQ_TABLE_END, }, }; struct platform_device db8500_prcmu_device = { .name = "db8500-prcmu", .dev = { .platform_data = db8500_freq_table, }, };
/* /drivers/mfd/db8500-prcmu.c */ static void db8500_prcmu_update_freq(void *pdata) { freq_table = (struct cpufreq_frequency_table *)pdata; if (!db8500_prcmu_has_arm_maxopp()) return; switch (fw_info.version.project) { case PRCMU_FW_PROJECT_U8500: case PRCMU_FW_PROJECT_U9500: case PRCMU_FW_PROJECT_U8420: case PRCMU_FW_PROJECT_U8420_SYSCLK: case PRCMU_FW_PROJECT_A9420: case PRCMU_FW_PROJECT_U8500_MBL: freq_table[3].frequency = 1000000; break; case PRCMU_FW_PROJECT_U8500_C2: case PRCMU_FW_PROJECT_U8520: freq_table[3].frequency = 1150000; break; default: break; } }
Unfortunately, db8500_prcmu_has_arm_maxopp function on my device returns false.
/* Index of different voltages to be used when accessing AVSData */ #define PRCM_AVS_BASE 0x2FC #define PRCM_AVS_VARM_MAX_OPP (PRCM_AVS_BASE + 0x4) static bool db8500_prcmu_has_arm_maxopp(void) { return (readb(tcdm_base + PRCM_AVS_VARM_MAX_OPP) & PRCM_AVS_ISMODEENABLE_MASK) == PRCM_AVS_ISMODEENABLE_MASK; }
--
--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-kerne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "Android Linux Kernel Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-kernel/p4TTRop0OQA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to android-kerne...@googlegroups.com.
| static struct clk_pll_freq_table tegra_pll_x_freq_table[] = { | ||
| + /* 1.7 GHz */ | ||
| + { 12000000, 1700000000, 800, 6, 1, 12}, | ||
| + { 13000000, 1700000000, 985, 8, 1, 12}, | ||
| + { 19200000, 1700000000, 1000, 12, 1, 8}, | ||
| + { 26000000, 1700000000, 800, 13, 1, 12}, | ||
| + | ||
| + /* 1.6 GHz */ | ||
| + { 12000000, 1600000000, 800, 6, 1, 12}, | ||
| + { 13000000, 1600000000, 985, 8, 1, 12}, | ||
| + { 19200000, 1600000000, 1000, 12, 1, 8}, | ||
| + { 26000000, 1600000000, 800, 13, 1, 12}, | ||
| + | ||
| + /* 1.504 GHz */ | ||
| + { 12000000, 1504000000, 752, 6, 1, 12}, | ||
| + { 13000000, 1504000000, 926, 8, 1, 12}, | ||
| + { 19200000, 1504000000, 940, 12, 1, 8}, | ||
| + { 26000000, 1504000000, 752, 13, 1, 12}, | ||
| + | ||
| + /* 1.4 GHz */ | ||
| + { 12000000, 1400000000, 700, 6, 1, 12}, | ||
| + { 13000000, 1400000000, 969, 9, 1, 12}, | ||
| + { 19200000, 1400000000, 875, 12, 1, 8}, | ||
| + { 26000000, 1400000000, 700, 13, 1, 12}, | ||
| + | ||
| /* 1.2 GHz */ | ||
| { 12000000, 1200000000, 600, 6, 1, 12}, | ||
| { 13000000, 1200000000, 923, 10, 1, 12}, |