diff options
| author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-01-26 10:34:56 -0500 |
|---|---|---|
| committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-03-13 05:33:55 -0400 |
| commit | e48135519bd569eed374e0e17ed5233d4105fa97 (patch) | |
| tree | 5a43bdc795646d6883ab9aaa75cbcb6b6e0b74c0 /arch/arm/mach-imx/include | |
| parent | aa3b0a6f57be50f1009a409e82731a8f9be80fc4 (diff) | |
arm/imx21: Framebuffer support for i.MX21
This patch mimicks what Martin wrote on the mailing list:
* move arch/arm/mach-imx/include/mach/imxfb.h into
arch/arm/mach-mxc/include/mach/imxfb.h
* changes Kconfig so that CONFIG_FB_IMX is selectable
* adds a platform device (copied from some pengutronix
patches)
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include')
| -rw-r--r-- | arch/arm/mach-imx/include/mach/imxfb.h | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/arch/arm/mach-imx/include/mach/imxfb.h b/arch/arm/mach-imx/include/mach/imxfb.h deleted file mode 100644 index 870d0d939616..000000000000 --- a/arch/arm/mach-imx/include/mach/imxfb.h +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * This structure describes the machine which we are running on. | ||
| 3 | */ | ||
| 4 | |||
| 5 | #define PCR_TFT (1 << 31) | ||
| 6 | #define PCR_COLOR (1 << 30) | ||
| 7 | #define PCR_PBSIZ_1 (0 << 28) | ||
| 8 | #define PCR_PBSIZ_2 (1 << 28) | ||
| 9 | #define PCR_PBSIZ_4 (2 << 28) | ||
| 10 | #define PCR_PBSIZ_8 (3 << 28) | ||
| 11 | #define PCR_BPIX_1 (0 << 25) | ||
| 12 | #define PCR_BPIX_2 (1 << 25) | ||
| 13 | #define PCR_BPIX_4 (2 << 25) | ||
| 14 | #define PCR_BPIX_8 (3 << 25) | ||
| 15 | #define PCR_BPIX_12 (4 << 25) | ||
| 16 | #define PCR_BPIX_16 (4 << 25) | ||
| 17 | #define PCR_PIXPOL (1 << 24) | ||
| 18 | #define PCR_FLMPOL (1 << 23) | ||
| 19 | #define PCR_LPPOL (1 << 22) | ||
| 20 | #define PCR_CLKPOL (1 << 21) | ||
| 21 | #define PCR_OEPOL (1 << 20) | ||
| 22 | #define PCR_SCLKIDLE (1 << 19) | ||
| 23 | #define PCR_END_SEL (1 << 18) | ||
| 24 | #define PCR_END_BYTE_SWAP (1 << 17) | ||
| 25 | #define PCR_REV_VS (1 << 16) | ||
| 26 | #define PCR_ACD_SEL (1 << 15) | ||
| 27 | #define PCR_ACD(x) (((x) & 0x7f) << 8) | ||
| 28 | #define PCR_SCLK_SEL (1 << 7) | ||
| 29 | #define PCR_SHARP (1 << 6) | ||
| 30 | #define PCR_PCD(x) ((x) & 0x3f) | ||
| 31 | |||
| 32 | #define PWMR_CLS(x) (((x) & 0x1ff) << 16) | ||
| 33 | #define PWMR_LDMSK (1 << 15) | ||
| 34 | #define PWMR_SCR1 (1 << 10) | ||
| 35 | #define PWMR_SCR0 (1 << 9) | ||
| 36 | #define PWMR_CC_EN (1 << 8) | ||
| 37 | #define PWMR_PW(x) ((x) & 0xff) | ||
| 38 | |||
| 39 | #define LSCR1_PS_RISE_DELAY(x) (((x) & 0x7f) << 26) | ||
| 40 | #define LSCR1_CLS_RISE_DELAY(x) (((x) & 0x3f) << 16) | ||
| 41 | #define LSCR1_REV_TOGGLE_DELAY(x) (((x) & 0xf) << 8) | ||
| 42 | #define LSCR1_GRAY2(x) (((x) & 0xf) << 4) | ||
| 43 | #define LSCR1_GRAY1(x) (((x) & 0xf)) | ||
| 44 | |||
| 45 | #define DMACR_BURST (1 << 31) | ||
| 46 | #define DMACR_HM(x) (((x) & 0xf) << 16) | ||
| 47 | #define DMACR_TM(x) ((x) & 0xf) | ||
| 48 | |||
| 49 | struct imx_fb_platform_data { | ||
| 50 | u_long pixclock; | ||
| 51 | |||
| 52 | u_short xres; | ||
| 53 | u_short yres; | ||
| 54 | |||
| 55 | u_int nonstd; | ||
| 56 | u_char bpp; | ||
| 57 | u_char hsync_len; | ||
| 58 | u_char left_margin; | ||
| 59 | u_char right_margin; | ||
| 60 | |||
| 61 | u_char vsync_len; | ||
| 62 | u_char upper_margin; | ||
| 63 | u_char lower_margin; | ||
| 64 | u_char sync; | ||
| 65 | |||
| 66 | u_int cmap_greyscale:1, | ||
| 67 | cmap_inverse:1, | ||
| 68 | cmap_static:1, | ||
| 69 | unused:29; | ||
| 70 | |||
| 71 | u_int pcr; | ||
| 72 | u_int pwmr; | ||
| 73 | u_int lscr1; | ||
| 74 | u_int dmacr; | ||
| 75 | |||
| 76 | u_char * fixed_screen_cpu; | ||
| 77 | dma_addr_t fixed_screen_dma; | ||
| 78 | |||
| 79 | void (*lcd_power)(int); | ||
| 80 | void (*backlight_power)(int); | ||
| 81 | }; | ||
| 82 | |||
| 83 | void set_imx_fb_info(struct imx_fb_platform_data *); | ||
