treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
[linux-block.git] / drivers / video / fbdev / nuc900fb.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *
4  * Copyright (c) 2009 Nuvoton technology corporation
5  * All rights reserved.
6  *
7  *   Author:
8  *        Wang Qiang(rurality.linux@gmail.com)  2009/12/16
9  */
10
11 #ifndef __NUC900FB_H
12 #define __NUC900FB_H
13
14 #include <mach/map.h>
15 #include <linux/platform_data/video-nuc900fb.h>
16
17 enum nuc900_lcddrv_type {
18         LCDDRV_NUC910,
19         LCDDRV_NUC930,
20         LCDDRV_NUC932,
21         LCDDRV_NUC950,
22         LCDDRV_NUC960,
23 };
24
25
26 #define PALETTE_BUFFER_SIZE     256
27 #define PALETTE_BUFF_CLEAR      (0x80000000) /* entry is clear/invalid */
28
29 struct nuc900fb_info {
30         struct device           *dev;
31         struct clk              *clk;
32
33         struct resource         *mem;
34         void __iomem            *io;
35         void __iomem            *irq_base;
36         int                     drv_type;
37         struct nuc900fb_hw      regs;
38         unsigned long           clk_rate;
39
40 #ifdef CONFIG_CPU_FREQ
41         struct notifier_block   freq_transition;
42 #endif
43
44         /* keep these registers in case we need to re-write palette */
45         u32                     palette_buffer[PALETTE_BUFFER_SIZE];
46         u32                     pseudo_pal[16];
47 };
48
49 int nuc900fb_init(void);
50
51 #endif /* __NUC900FB_H */