Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Linus Walleij and committed by
Lee Jones
f4181092 cb7a374a

-46
-30
drivers/mfd/db8500-prcmu.c
··· 555 555 #define PRCMU_CLK_38_SRC (1 << 10) 556 556 #define PRCMU_CLK_38_DIV (1 << 11) 557 557 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 - 566 558 /* D=101, N=1, R=4, SELDIV2=0 */ 567 559 #define PRCMU_PLLDSI_FREQ_SETTING 0x00040165 568 560 ··· 605 613 writel(PRCMU_DISABLE_PLLDSI, PRCM_PLLDSI_ENABLE); 606 614 /* Disable escapeclock */ 607 615 writel(PRCMU_DISABLE_ESCAPE_CLOCK_DIV, PRCM_DSITVCLK_DIV); 608 - return 0; 609 - } 610 - 611 - int db8500_prcmu_set_display_clocks(void) 612 - { 613 - unsigned long flags; 614 - 615 - spin_lock_irqsave(&clk_mgt_lock, flags); 616 - 617 - /* Grab the HW semaphore. */ 618 - while ((readl(PRCM_SEM) & PRCM_SEM_PRCM_SEM) != 0) 619 - cpu_relax(); 620 - 621 - writel(PRCMU_DSI_CLOCK_SETTING, prcmu_base + PRCM_HDMICLK_MGT); 622 - writel(PRCMU_DSI_LP_CLOCK_SETTING, prcmu_base + PRCM_TVCLK_MGT); 623 - writel(PRCMU_DPI_CLOCK_SETTING, prcmu_base + PRCM_LCDCLK_MGT); 624 - 625 - /* Release the HW semaphore. */ 626 - writel(0, PRCM_SEM); 627 - 628 - spin_unlock_irqrestore(&clk_mgt_lock, flags); 629 - 630 616 return 0; 631 617 } 632 618
-6
include/linux/mfd/db8500-prcmu.h
··· 525 525 void db8500_prcmu_enable_wakeups(u32 wakeups); 526 526 int db8500_prcmu_set_epod(u16 epod_id, u8 epod_state); 527 527 int db8500_prcmu_request_clock(u8 clock, bool enable); 528 - int db8500_prcmu_set_display_clocks(void); 529 528 int db8500_prcmu_disable_dsipll(void); 530 529 int db8500_prcmu_enable_dsipll(void); 531 530 void db8500_prcmu_config_abb_event_readout(u32 abb_events); ··· 677 678 } 678 679 679 680 static inline int db8500_prcmu_request_clock(u8 clock, bool enable) 680 - { 681 - return 0; 682 - } 683 - 684 - static inline int db8500_prcmu_set_display_clocks(void) 685 681 { 686 682 return 0; 687 683 }
-10
include/linux/mfd/dbx500-prcmu.h
··· 321 321 return db8500_prcmu_is_ac_wake_requested(); 322 322 } 323 323 324 - static inline int prcmu_set_display_clocks(void) 325 - { 326 - return db8500_prcmu_set_display_clocks(); 327 - } 328 - 329 324 static inline int prcmu_disable_dsipll(void) 330 325 { 331 326 return db8500_prcmu_disable_dsipll(); ··· 504 509 static inline bool prcmu_is_ac_wake_requested(void) 505 510 { 506 511 return false; 507 - } 508 - 509 - static inline int prcmu_set_display_clocks(void) 510 - { 511 - return 0; 512 512 } 513 513 514 514 static inline int prcmu_disable_dsipll(void)