diff options
author | Daniel Willerud <daniel.willerud@stericsson.com> | 2012-01-13 10:20:03 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-06 12:46:31 -0500 |
commit | c72fe851df21603cd149320df49064eb2f903707 (patch) | |
tree | 5b9ad3e93799c1d0973d91918887f4ff56885fd1 /drivers | |
parent | e536b62095301271d974983044a011c29fcb2ea2 (diff) |
mfd: Remove db8500-prcmu U8400 legacy
This removes the U8400 legacy from PRCMU and cpufreq drivers.
This platform has no current in-kernel users.
Signed-off-by: Daniel Willerud <daniel.willerud@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cpufreq/db8500-cpufreq.c | 13 | ||||
-rw-r--r-- | drivers/mfd/db8500-prcmu.c | 26 |
2 files changed, 7 insertions, 32 deletions
diff --git a/drivers/cpufreq/db8500-cpufreq.c b/drivers/cpufreq/db8500-cpufreq.c index f5002015d82e..a22ffa5bff9f 100644 --- a/drivers/cpufreq/db8500-cpufreq.c +++ b/drivers/cpufreq/db8500-cpufreq.c | |||
@@ -22,11 +22,11 @@ static struct cpufreq_frequency_table freq_table[] = { | |||
22 | }, | 22 | }, |
23 | [1] = { | 23 | [1] = { |
24 | .index = 1, | 24 | .index = 1, |
25 | .frequency = 300000, | 25 | .frequency = 400000, |
26 | }, | 26 | }, |
27 | [2] = { | 27 | [2] = { |
28 | .index = 2, | 28 | .index = 2, |
29 | .frequency = 600000, | 29 | .frequency = 800000, |
30 | }, | 30 | }, |
31 | [3] = { | 31 | [3] = { |
32 | /* Used for MAX_OPP, if available */ | 32 | /* Used for MAX_OPP, if available */ |
@@ -113,12 +113,9 @@ static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) | |||
113 | 113 | ||
114 | BUILD_BUG_ON(ARRAY_SIZE(idx2opp) + 1 != ARRAY_SIZE(freq_table)); | 114 | BUILD_BUG_ON(ARRAY_SIZE(idx2opp) + 1 != ARRAY_SIZE(freq_table)); |
115 | 115 | ||
116 | if (!prcmu_is_u8400()) { | 116 | if (prcmu_has_arm_maxopp()) |
117 | freq_table[1].frequency = 400000; | 117 | freq_table[3].frequency = 1000000; |
118 | freq_table[2].frequency = 800000; | 118 | |
119 | if (prcmu_has_arm_maxopp()) | ||
120 | freq_table[3].frequency = 1000000; | ||
121 | } | ||
122 | pr_info("db8500-cpufreq : Available frequencies:\n"); | 119 | pr_info("db8500-cpufreq : Available frequencies:\n"); |
123 | for (i = 0; freq_table[i].frequency != CPUFREQ_TABLE_END; i++) | 120 | for (i = 0; freq_table[i].frequency != CPUFREQ_TABLE_END; i++) |
124 | pr_info(" %d Mhz\n", freq_table[i].frequency/1000); | 121 | pr_info(" %d Mhz\n", freq_table[i].frequency/1000); |
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index af8e0efedbe4..b91196368501 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c | |||
@@ -503,9 +503,6 @@ static const char *hwacc_ret_regulator_name[NUM_HW_ACC] = { | |||
503 | /* PLLDIV=12, PLLSW=4 (PLLDDR) */ | 503 | /* PLLDIV=12, PLLSW=4 (PLLDDR) */ |
504 | #define PRCMU_DSI_CLOCK_SETTING 0x0000008C | 504 | #define PRCMU_DSI_CLOCK_SETTING 0x0000008C |
505 | 505 | ||
506 | /* PLLDIV=8, PLLSW=4 (PLLDDR) */ | ||
507 | #define PRCMU_DSI_CLOCK_SETTING_U8400 0x00000088 | ||
508 | |||
509 | /* DPI 50000000 Hz */ | 506 | /* DPI 50000000 Hz */ |
510 | #define PRCMU_DPI_CLOCK_SETTING ((1 << PRCMU_CLK_PLL_SW_SHIFT) | \ | 507 | #define PRCMU_DPI_CLOCK_SETTING ((1 << PRCMU_CLK_PLL_SW_SHIFT) | \ |
511 | (16 << PRCMU_CLK_PLL_DIV_SHIFT)) | 508 | (16 << PRCMU_CLK_PLL_DIV_SHIFT)) |
@@ -514,9 +511,6 @@ static const char *hwacc_ret_regulator_name[NUM_HW_ACC] = { | |||
514 | /* D=101, N=1, R=4, SELDIV2=0 */ | 511 | /* D=101, N=1, R=4, SELDIV2=0 */ |
515 | #define PRCMU_PLLDSI_FREQ_SETTING 0x00040165 | 512 | #define PRCMU_PLLDSI_FREQ_SETTING 0x00040165 |
516 | 513 | ||
517 | /* D=70, N=1, R=3, SELDIV2=0 */ | ||
518 | #define PRCMU_PLLDSI_FREQ_SETTING_U8400 0x00030146 | ||
519 | |||
520 | #define PRCMU_ENABLE_PLLDSI 0x00000001 | 514 | #define PRCMU_ENABLE_PLLDSI 0x00000001 |
521 | #define PRCMU_DISABLE_PLLDSI 0x00000000 | 515 | #define PRCMU_DISABLE_PLLDSI 0x00000000 |
522 | #define PRCMU_RELEASE_RESET_DSS 0x0000400C | 516 | #define PRCMU_RELEASE_RESET_DSS 0x0000400C |
@@ -539,19 +533,14 @@ static struct { | |||
539 | int db8500_prcmu_enable_dsipll(void) | 533 | int db8500_prcmu_enable_dsipll(void) |
540 | { | 534 | { |
541 | int i; | 535 | int i; |
542 | unsigned int plldsifreq; | ||
543 | 536 | ||
544 | /* Clear DSIPLL_RESETN */ | 537 | /* Clear DSIPLL_RESETN */ |
545 | writel(PRCMU_RESET_DSIPLL, PRCM_APE_RESETN_CLR); | 538 | writel(PRCMU_RESET_DSIPLL, PRCM_APE_RESETN_CLR); |
546 | /* Unclamp DSIPLL in/out */ | 539 | /* Unclamp DSIPLL in/out */ |
547 | writel(PRCMU_UNCLAMP_DSIPLL, PRCM_MMIP_LS_CLAMP_CLR); | 540 | writel(PRCMU_UNCLAMP_DSIPLL, PRCM_MMIP_LS_CLAMP_CLR); |
548 | 541 | ||
549 | if (prcmu_is_u8400()) | ||
550 | plldsifreq = PRCMU_PLLDSI_FREQ_SETTING_U8400; | ||
551 | else | ||
552 | plldsifreq = PRCMU_PLLDSI_FREQ_SETTING; | ||
553 | /* Set DSI PLL FREQ */ | 542 | /* Set DSI PLL FREQ */ |
554 | writel(plldsifreq, PRCM_PLLDSI_FREQ); | 543 | writel(PRCMU_PLLDSI_FREQ_SETTING, PRCM_PLLDSI_FREQ); |
555 | writel(PRCMU_DSI_PLLOUT_SEL_SETTING, PRCM_DSI_PLLOUT_SEL); | 544 | writel(PRCMU_DSI_PLLOUT_SEL_SETTING, PRCM_DSI_PLLOUT_SEL); |
556 | /* Enable Escape clocks */ | 545 | /* Enable Escape clocks */ |
557 | writel(PRCMU_ENABLE_ESCAPE_CLOCK_DIV, PRCM_DSITVCLK_DIV); | 546 | writel(PRCMU_ENABLE_ESCAPE_CLOCK_DIV, PRCM_DSITVCLK_DIV); |
@@ -583,12 +572,6 @@ int db8500_prcmu_disable_dsipll(void) | |||
583 | int db8500_prcmu_set_display_clocks(void) | 572 | int db8500_prcmu_set_display_clocks(void) |
584 | { | 573 | { |
585 | unsigned long flags; | 574 | unsigned long flags; |
586 | unsigned int dsiclk; | ||
587 | |||
588 | if (prcmu_is_u8400()) | ||
589 | dsiclk = PRCMU_DSI_CLOCK_SETTING_U8400; | ||
590 | else | ||
591 | dsiclk = PRCMU_DSI_CLOCK_SETTING; | ||
592 | 575 | ||
593 | spin_lock_irqsave(&clk_mgt_lock, flags); | 576 | spin_lock_irqsave(&clk_mgt_lock, flags); |
594 | 577 | ||
@@ -596,7 +579,7 @@ int db8500_prcmu_set_display_clocks(void) | |||
596 | while ((readl(PRCM_SEM) & PRCM_SEM_PRCM_SEM) != 0) | 579 | while ((readl(PRCM_SEM) & PRCM_SEM_PRCM_SEM) != 0) |
597 | cpu_relax(); | 580 | cpu_relax(); |
598 | 581 | ||
599 | writel(dsiclk, PRCM_HDMICLK_MGT); | 582 | writel(PRCMU_DSI_CLOCK_SETTING, PRCM_HDMICLK_MGT); |
600 | writel(PRCMU_DSI_LP_CLOCK_SETTING, PRCM_TVCLK_MGT); | 583 | writel(PRCMU_DSI_LP_CLOCK_SETTING, PRCM_TVCLK_MGT); |
601 | writel(PRCMU_DPI_CLOCK_SETTING, PRCM_LCDCLK_MGT); | 584 | writel(PRCMU_DPI_CLOCK_SETTING, PRCM_LCDCLK_MGT); |
602 | 585 | ||
@@ -642,11 +625,6 @@ bool prcmu_has_arm_maxopp(void) | |||
642 | PRCM_AVS_ISMODEENABLE_MASK) == PRCM_AVS_ISMODEENABLE_MASK; | 625 | PRCM_AVS_ISMODEENABLE_MASK) == PRCM_AVS_ISMODEENABLE_MASK; |
643 | } | 626 | } |
644 | 627 | ||
645 | bool prcmu_is_u8400(void) | ||
646 | { | ||
647 | return prcmu_version.project_number == PRCMU_PROJECT_ID_8400V2_0; | ||
648 | } | ||
649 | |||
650 | /** | 628 | /** |
651 | * prcmu_get_boot_status - PRCMU boot status checking | 629 | * prcmu_get_boot_status - PRCMU boot status checking |
652 | * Returns: the current PRCMU boot status | 630 | * Returns: the current PRCMU boot status |