| Date: | 2010-07-16 20:50:49 (13 years 5 months ago) |
|---|---|
| Author: | Lars C. |
| Commit: | 9b0a62a1223e9c1c634379563baee03b4d0036a7 |
| Message: | fbdev: jz4740: Move include file from include/linux to
arch/mips/include/asm/mach-jz4740 |
| Files: |
arch/mips/include/asm/mach-jz4740/jz4740_fb.h (1 diff) drivers/video/jz4740_fb.c (1 diff) include/linux/jz4740_fb.h (1 diff) |
Change Details
| arch/mips/include/asm/mach-jz4740/jz4740_fb.h | ||
|---|---|---|
| 1 | /* | |
| 2 | * Copyright (C) 2009, Lars-Peter Clausen <lars@metafoo.de> | |
| 3 | * | |
| 4 | * This program is free software; you can redistribute it and/or modify it | |
| 5 | * under the terms of the GNU General Public License as published by the | |
| 6 | * Free Software Foundation; either version 2 of the License, or (at your | |
| 7 | * option) any later version. | |
| 8 | * | |
| 9 | * You should have received a copy of the GNU General Public License along | |
| 10 | * with this program; if not, write to the Free Software Foundation, Inc., | |
| 11 | * 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 12 | * | |
| 13 | */ | |
| 14 | ||
| 15 | #ifndef __LINUX_JZ4740_FB_H | |
| 16 | #define __LINUX_JZ4740_FB_H | |
| 17 | ||
| 18 | #include <linux/fb.h> | |
| 19 | ||
| 20 | enum jz4740_fb_lcd_type { | |
| 21 | JZ_LCD_TYPE_GENERIC_16_BIT = 0, | |
| 22 | JZ_LCD_TYPE_GENERIC_18_BIT = 0 | (1 << 4), | |
| 23 | JZ_LCD_TYPE_SPECIAL_TFT_1 = 1, | |
| 24 | JZ_LCD_TYPE_SPECIAL_TFT_2 = 2, | |
| 25 | JZ_LCD_TYPE_SPECIAL_TFT_3 = 3, | |
| 26 | JZ_LCD_TYPE_NON_INTERLACED_CCIR656 = 5, | |
| 27 | JZ_LCD_TYPE_INTERLACED_CCIR656 = 7, | |
| 28 | JZ_LCD_TYPE_SINGLE_COLOR_STN = 8, | |
| 29 | JZ_LCD_TYPE_SINGLE_MONOCHROME_STN = 9, | |
| 30 | JZ_LCD_TYPE_DUAL_COLOR_STN = 10, | |
| 31 | JZ_LCD_TYPE_DUAL_MONOCHROME_STN = 11, | |
| 32 | JZ_LCD_TYPE_8BIT_SERIAL = 12, | |
| 33 | }; | |
| 34 | ||
| 35 | #define JZ4740_FB_SPECIAL_TFT_CONFIG(start, stop) (((start) << 16) | (stop)) | |
| 36 | ||
| 37 | /* | |
| 38 | * width: width of the lcd display in mm | |
| 39 | * height: height of the lcd display in mm | |
| 40 | * num_modes: size of modes | |
| 41 | * modes: list of valid video modes | |
| 42 | * bpp: bits per pixel for the lcd | |
| 43 | * lcd_type: lcd type | |
| 44 | */ | |
| 45 | ||
| 46 | struct jz4740_fb_platform_data { | |
| 47 | unsigned int width; | |
| 48 | unsigned int height; | |
| 49 | ||
| 50 | size_t num_modes; | |
| 51 | struct fb_videomode *modes; | |
| 52 | ||
| 53 | unsigned int bpp; | |
| 54 | enum jz4740_fb_lcd_type lcd_type; | |
| 55 | ||
| 56 | struct { | |
| 57 | uint32_t spl; | |
| 58 | uint32_t cls; | |
| 59 | uint32_t ps; | |
| 60 | uint32_t rev; | |
| 61 | } special_tft_config; | |
| 62 | ||
| 63 | unsigned pixclk_falling_edge:1; | |
| 64 | unsigned date_enable_active_low:1; | |
| 65 | }; | |
| 66 | ||
| 67 | #endif | |
| drivers/video/jz4740_fb.c | ||
|---|---|---|
| 26 | 26 | |
| 27 | 27 | #include <linux/dma-mapping.h> |
| 28 | 28 | |
| 29 | #include <linux/jz4740_fb.h> | |
| 29 | #include <asm/mach-jz4740/jz4740_fb.h> | |
| 30 | 30 | #include <asm/mach-jz4740/gpio.h> |
| 31 | 31 | |
| 32 | 32 | #define JZ_REG_LCD_CFG 0x00 |
| include/linux/jz4740_fb.h | ||
|---|---|---|
| 1 | /* | |
| 2 | * Copyright (C) 2009, Lars-Peter Clausen <lars@metafoo.de> | |
| 3 | * | |
| 4 | * This program is free software; you can redistribute it and/or modify it | |
| 5 | * under the terms of the GNU General Public License as published by the | |
| 6 | * Free Software Foundation; either version 2 of the License, or (at your | |
| 7 | * option) any later version. | |
| 8 | * | |
| 9 | * You should have received a copy of the GNU General Public License along | |
| 10 | * with this program; if not, write to the Free Software Foundation, Inc., | |
| 11 | * 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 12 | * | |
| 13 | */ | |
| 14 | ||
| 15 | #ifndef __LINUX_JZ4740_FB_H | |
| 16 | #define __LINUX_JZ4740_FB_H | |
| 17 | ||
| 18 | #include <linux/fb.h> | |
| 19 | ||
| 20 | enum jz4740_fb_lcd_type { | |
| 21 | JZ_LCD_TYPE_GENERIC_16_BIT = 0, | |
| 22 | JZ_LCD_TYPE_GENERIC_18_BIT = 0 | (1 << 4), | |
| 23 | JZ_LCD_TYPE_SPECIAL_TFT_1 = 1, | |
| 24 | JZ_LCD_TYPE_SPECIAL_TFT_2 = 2, | |
| 25 | JZ_LCD_TYPE_SPECIAL_TFT_3 = 3, | |
| 26 | JZ_LCD_TYPE_NON_INTERLACED_CCIR656 = 5, | |
| 27 | JZ_LCD_TYPE_INTERLACED_CCIR656 = 7, | |
| 28 | JZ_LCD_TYPE_SINGLE_COLOR_STN = 8, | |
| 29 | JZ_LCD_TYPE_SINGLE_MONOCHROME_STN = 9, | |
| 30 | JZ_LCD_TYPE_DUAL_COLOR_STN = 10, | |
| 31 | JZ_LCD_TYPE_DUAL_MONOCHROME_STN = 11, | |
| 32 | JZ_LCD_TYPE_8BIT_SERIAL = 12, | |
| 33 | }; | |
| 34 | ||
| 35 | #define JZ4740_FB_SPECIAL_TFT_CONFIG(start, stop) (((start) << 16) | (stop)) | |
| 36 | ||
| 37 | /* | |
| 38 | * width: width of the lcd display in mm | |
| 39 | * height: height of the lcd display in mm | |
| 40 | * num_modes: size of modes | |
| 41 | * modes: list of valid video modes | |
| 42 | * bpp: bits per pixel for the lcd | |
| 43 | * lcd_type: lcd type | |
| 44 | */ | |
| 45 | ||
| 46 | struct jz4740_fb_platform_data { | |
| 47 | unsigned int width; | |
| 48 | unsigned int height; | |
| 49 | ||
| 50 | size_t num_modes; | |
| 51 | struct fb_videomode *modes; | |
| 52 | ||
| 53 | unsigned int bpp; | |
| 54 | enum jz4740_fb_lcd_type lcd_type; | |
| 55 | ||
| 56 | struct { | |
| 57 | uint32_t spl; | |
| 58 | uint32_t cls; | |
| 59 | uint32_t ps; | |
| 60 | uint32_t rev; | |
| 61 | } special_tft_config; | |
| 62 | ||
| 63 | unsigned pixclk_falling_edge:1; | |
| 64 | unsigned date_enable_active_low:1; | |
| 65 | }; | |
| 66 | ||
| 67 | #endif | |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9
