diff options
author | Alexey Galakhov <agalakhov@gmail.com> | 2011-05-18 15:39:10 +0600 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-05-19 20:37:45 +0200 |
commit | 2d88cc4c910ad96a704cb4c98f577b217773d443 (patch) | |
tree | c6ce3accd294e1748449e716bcb70d95b25eb217 /arch/arm/mach-s3c24xx | |
parent | 373de3c1c49221ab684d397960a278231325d367 (diff) | |
download | barebox-2d88cc4c910ad96a704cb4c98f577b217773d443.tar.gz barebox-2d88cc4c910ad96a704cb4c98f577b217773d443.tar.xz |
Add support for Samsung S3C24x0 framebuffer.
Heavily based on original Juergen Beisert's code.
Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/fb.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24xx/include/mach/fb.h b/arch/arm/mach-s3c24xx/include/mach/fb.h new file mode 100644 index 0000000000..05e013aadb --- /dev/null +++ b/arch/arm/mach-s3c24xx/include/mach/fb.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2010 Juergen Beisert + * Copyright (C) 2011 Alexey Galakhov + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + */ + +#ifndef __MACH_FB_H_ +# define __MACH_FB_H_ + +#include <fb.h> + +/** Proprietary flags corresponding to S3C24x0 LCDCON5 register */ + +/** ! INVVDEN - DE active high */ +#define FB_SYNC_DE_HIGH_ACT (1 << 23) +/** INVVCLK - invert CLK signal */ +#define FB_SYNC_CLK_INVERT (1 << 24) +/** INVVD - invert data */ +#define FB_SYNC_DATA_INVERT (1 << 25) +/** INVPWREN - use PWREN signal */ +#define FB_SYNC_INVERT_PWREN (1 << 26) +/** INVLEND - use LEND signal */ +#define FB_SYNC_INVERT_LEND (1 << 27) +/** PWREN - use PWREN signal */ +#define FB_SYNC_USE_PWREN (1 << 28) +/** ENLEND - use LEND signal */ +#define FB_SYNC_USE_LEND (1 << 29) +/** BSWP - swap bytes */ +#define FB_SYNC_SWAP_BYTES (1 << 30) +/** HWSWP - swap half words */ +#define FB_SYNC_SWAP_HW (1 << 31) + +struct s3c_fb_platform_data { + struct fb_videomode *mode_list; + unsigned mode_cnt; + + unsigned bits_per_pixel; + int passive_display; /**< enable support for STN or CSTN displays */ + + /** hook to enable backlight and stuff */ + void (*enable)(int enable); +}; + +#endif /* __MACH_FB_H_ */ |