mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
7d4a8088f6
The driver registered for CPU frequency transitions to recalculate its clock when ARM clock frequency changes (ratio between frequencies of ARM's parent clock (fclk) and clock for peripherals remains fixed). This is needed only on S3C24xx platform when cpufreq driver is enabled so limit the ifdef to respective cpufreq Kconfig. Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
49 lines
946 B
C
49 lines
946 B
C
/*
|
|
* linux/drivers/video/s3c2410fb.h
|
|
* Copyright (c) 2004 Arnaud Patard
|
|
*
|
|
* S3C2410 LCD Framebuffer Driver
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file COPYING in the main directory of this archive for
|
|
* more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __S3C2410FB_H
|
|
#define __S3C2410FB_H
|
|
|
|
enum s3c_drv_type {
|
|
DRV_S3C2410,
|
|
DRV_S3C2412,
|
|
};
|
|
|
|
struct s3c2410fb_info {
|
|
struct device *dev;
|
|
struct clk *clk;
|
|
|
|
struct resource *mem;
|
|
void __iomem *io;
|
|
void __iomem *irq_base;
|
|
|
|
enum s3c_drv_type drv_type;
|
|
struct s3c2410fb_hw regs;
|
|
|
|
unsigned long clk_rate;
|
|
unsigned int palette_ready;
|
|
|
|
#ifdef CONFIG_ARM_S3C24XX_CPUFREQ
|
|
struct notifier_block freq_transition;
|
|
#endif
|
|
|
|
/* keep these registers in case we need to re-write palette */
|
|
u32 palette_buffer[256];
|
|
u32 pseudo_pal[16];
|
|
};
|
|
|
|
#define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */
|
|
|
|
int s3c2410fb_init(void);
|
|
|
|
#endif
|