Skip to content

Commit f418109

Browse files
Linus WalleijLee Jones
authored andcommitted
mfd: dbx500-prcmu: Drop set_display_clocks()
The display clocks are handled by the generic clock framework since ages, this code is completely unused and misleading. Delete it. Cc: Stephan Gerhold <stephan@gerhold.net> Cc: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent cb7a374 commit f418109

3 files changed

Lines changed: 0 additions & 46 deletions

File tree

‎drivers/mfd/db8500-prcmu.c‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -555,14 +555,6 @@ static struct dsiescclk dsiescclk[3] = {
555555
#define PRCMU_CLK_38_SRC (1 << 10)
556556
#define PRCMU_CLK_38_DIV (1 << 11)
557557

558-
/* PLLDIV=12, PLLSW=4 (PLLDDR) */
559-
#define PRCMU_DSI_CLOCK_SETTING 0x0000008C
560-
561-
/* DPI 50000000 Hz */
562-
#define PRCMU_DPI_CLOCK_SETTING ((1 << PRCMU_CLK_PLL_SW_SHIFT) | \
563-
(16 << PRCMU_CLK_PLL_DIV_SHIFT))
564-
#define PRCMU_DSI_LP_CLOCK_SETTING 0x00000E00
565-
566558
/* D=101, N=1, R=4, SELDIV2=0 */
567559
#define PRCMU_PLLDSI_FREQ_SETTING 0x00040165
568560

@@ -616,28 +608,6 @@ int db8500_prcmu_disable_dsipll(void)
616608
return 0;
617609
}
618610

619-
int db8500_prcmu_set_display_clocks(void)
620-
{
621-
unsigned long flags;
622-
623-
spin_lock_irqsave(&clk_mgt_lock, flags);
624-
625-
/* Grab the HW semaphore. */
626-
while ((readl(PRCM_SEM) & PRCM_SEM_PRCM_SEM) != 0)
627-
cpu_relax();
628-
629-
writel(PRCMU_DSI_CLOCK_SETTING, prcmu_base + PRCM_HDMICLK_MGT);
630-
writel(PRCMU_DSI_LP_CLOCK_SETTING, prcmu_base + PRCM_TVCLK_MGT);
631-
writel(PRCMU_DPI_CLOCK_SETTING, prcmu_base + PRCM_LCDCLK_MGT);
632-
633-
/* Release the HW semaphore. */
634-
writel(0, PRCM_SEM);
635-
636-
spin_unlock_irqrestore(&clk_mgt_lock, flags);
637-
638-
return 0;
639-
}
640-
641611
u32 db8500_prcmu_read(unsigned int reg)
642612
{
643613
return readl(prcmu_base + reg);

‎include/linux/mfd/db8500-prcmu.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ u8 db8500_prcmu_get_power_state_result(void);
525525
void db8500_prcmu_enable_wakeups(u32 wakeups);
526526
int db8500_prcmu_set_epod(u16 epod_id, u8 epod_state);
527527
int db8500_prcmu_request_clock(u8 clock, bool enable);
528-
int db8500_prcmu_set_display_clocks(void);
529528
int db8500_prcmu_disable_dsipll(void);
530529
int db8500_prcmu_enable_dsipll(void);
531530
void db8500_prcmu_config_abb_event_readout(u32 abb_events);
@@ -682,11 +681,6 @@ static inline int db8500_prcmu_request_clock(u8 clock, bool enable)
682681
return 0;
683682
}
684683

685-
static inline int db8500_prcmu_set_display_clocks(void)
686-
{
687-
return 0;
688-
}
689-
690684
static inline int db8500_prcmu_disable_dsipll(void)
691685
{
692686
return 0;

‎include/linux/mfd/dbx500-prcmu.h‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,6 @@ static inline bool prcmu_is_ac_wake_requested(void)
321321
return db8500_prcmu_is_ac_wake_requested();
322322
}
323323

324-
static inline int prcmu_set_display_clocks(void)
325-
{
326-
return db8500_prcmu_set_display_clocks();
327-
}
328-
329324
static inline int prcmu_disable_dsipll(void)
330325
{
331326
return db8500_prcmu_disable_dsipll();
@@ -511,11 +506,6 @@ static inline bool prcmu_is_ac_wake_requested(void)
511506
return false;
512507
}
513508

514-
static inline int prcmu_set_display_clocks(void)
515-
{
516-
return 0;
517-
}
518-
519509
static inline int prcmu_disable_dsipll(void)
520510
{
521511
return 0;

0 commit comments

Comments
 (0)