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

ARM: pxa: move regs-lcd.h into driver

Only the pxafb driver uses this header, so move it into the
same directory. The SMART_* macros are required by some
platform data definitions and can go into the
linux/platform_data/video-pxafb.h header.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+22 -20
-19
arch/arm/mach-pxa/include/mach/regs-lcd.h drivers/video/fbdev/pxa3xx-regs.h
··· 177 177 #define PRSR_ST_OK (1 << 9) /* Status OK */ 178 178 #define PRSR_CON_NT (1 << 10) /* Continue to Next Command */ 179 179 180 - #define SMART_CMD_A0 (0x1 << 8) 181 - #define SMART_CMD_READ_STATUS_REG (0x0 << 9) 182 - #define SMART_CMD_READ_FRAME_BUFFER ((0x0 << 9) | SMART_CMD_A0) 183 - #define SMART_CMD_WRITE_COMMAND (0x1 << 9) 184 - #define SMART_CMD_WRITE_DATA ((0x1 << 9) | SMART_CMD_A0) 185 - #define SMART_CMD_WRITE_FRAME ((0x2 << 9) | SMART_CMD_A0) 186 - #define SMART_CMD_WAIT_FOR_VSYNC (0x3 << 9) 187 - #define SMART_CMD_NOOP (0x4 << 9) 188 - #define SMART_CMD_INTERRUPT (0x5 << 9) 189 - 190 - #define SMART_CMD(x) (SMART_CMD_WRITE_COMMAND | ((x) & 0xff)) 191 - #define SMART_DAT(x) (SMART_CMD_WRITE_DATA | ((x) & 0xff)) 192 - 193 - /* SMART_DELAY() is introduced for software controlled delay primitive which 194 - * can be inserted between command sequences, unused command 0x6 is used here 195 - * and delay ranges from 0ms ~ 255ms 196 - */ 197 - #define SMART_CMD_DELAY (0x6 << 9) 198 - #define SMART_DELAY(ms) (SMART_CMD_DELAY | ((ms) & 0xff)) 199 180 #endif /* __ASM_ARCH_REGS_LCD_H */
+1
drivers/video/fbdev/pxafb.c
··· 72 72 #define DEBUG_VAR 1 73 73 74 74 #include "pxafb.h" 75 + #include "pxa3xx-regs.h" 75 76 76 77 /* Bits which should not be set in machine configuration structures */ 77 78 #define LCCR0_INVALID_CONFIG_MASK (LCCR0_OUM | LCCR0_BM | LCCR0_QDM |\
+21 -1
include/linux/platform_data/video-pxafb.h
··· 8 8 */ 9 9 10 10 #include <linux/fb.h> 11 - #include <mach/regs-lcd.h> 12 11 13 12 /* 14 13 * Supported LCD connections ··· 151 152 152 153 void pxa_set_fb_info(struct device *, struct pxafb_mach_info *); 153 154 unsigned long pxafb_get_hsync_time(struct device *dev); 155 + 156 + /* smartpanel related */ 157 + #define SMART_CMD_A0 (0x1 << 8) 158 + #define SMART_CMD_READ_STATUS_REG (0x0 << 9) 159 + #define SMART_CMD_READ_FRAME_BUFFER ((0x0 << 9) | SMART_CMD_A0) 160 + #define SMART_CMD_WRITE_COMMAND (0x1 << 9) 161 + #define SMART_CMD_WRITE_DATA ((0x1 << 9) | SMART_CMD_A0) 162 + #define SMART_CMD_WRITE_FRAME ((0x2 << 9) | SMART_CMD_A0) 163 + #define SMART_CMD_WAIT_FOR_VSYNC (0x3 << 9) 164 + #define SMART_CMD_NOOP (0x4 << 9) 165 + #define SMART_CMD_INTERRUPT (0x5 << 9) 166 + 167 + #define SMART_CMD(x) (SMART_CMD_WRITE_COMMAND | ((x) & 0xff)) 168 + #define SMART_DAT(x) (SMART_CMD_WRITE_DATA | ((x) & 0xff)) 169 + 170 + /* SMART_DELAY() is introduced for software controlled delay primitive which 171 + * can be inserted between command sequences, unused command 0x6 is used here 172 + * and delay ranges from 0ms ~ 255ms 173 + */ 174 + #define SMART_CMD_DELAY (0x6 << 9) 175 + #define SMART_DELAY(ms) (SMART_CMD_DELAY | ((ms) & 0xff)) 154 176 155 177 #ifdef CONFIG_FB_PXA_SMARTPANEL 156 178 extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int);