I would say that it probably could run at 1ghz after you fixed the kernel.

On Fri, May 3, 2013 at 8:50 AM, cnyk <michak...@gmail.com> wrote:

> Hi,
> I'm asking about Samsung GT-I8160 phone. It has NovaThor U8500 chipset and
> should run at 1GHz CPU speed but it's limited by Samsung to 800MHz.
> I've compared kernels source code with GT-I9070 and GT-I8190 (they have
> same chipset but 1GHz) and that's what I found:
>
> All three devices have the same frequency table declared in
> /arch/arm/mach-ux500/devices-db8500.c file and for all three devices max
> frequency there is 800MHz.
>
> 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,
>         },};
>
>
> The frequency table is modified by PRCMU driver
>
> /* /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;}
>
> So, does it mean that it's hardware limit or software? Is there any chance
> to set CPU frequency to 1GHz?
> Greetings, Michal.
>
>
>  --
> --
> unsubscribe: android-kernel+unsubscr...@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-kernel+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
unsubscribe: android-kernel+unsubscr...@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-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to