blob: d31c0f3fe22273d978ef6023eee725011f1986eb [file] [log] [blame]
Pawel Osciakedd6e3f2009-11-17 08:41:19 +01001/*
Marek Szyprowskib884c0e2010-05-18 12:38:43 +02002 * linux/arch/arm/mach-s5pc100/setup-fb-24bpp.c
Pawel Osciakedd6e3f2009-11-17 08:41:19 +01003 *
4 * Copyright 2009 Samsung Electronics
5 *
Marek Szyprowskib884c0e2010-05-18 12:38:43 +02006 * Base S5PC100 setup information for 24bpp LCD framebuffer
Pawel Osciakedd6e3f2009-11-17 08:41:19 +01007 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#include <linux/kernel.h>
14#include <linux/types.h>
15#include <linux/fb.h>
16#include <linux/gpio.h>
17
18#include <mach/regs-fb.h>
19#include <mach/map.h>
20#include <plat/fb.h>
21#include <plat/gpio-cfg.h>
Pawel Osciakedd6e3f2009-11-17 08:41:19 +010022
23#define DISR_OFFSET 0x7008
24
Ben Dooksa40af062010-10-01 16:49:11 +090025static void s5pc100_fb_setgpios(unsigned int base, unsigned int nr)
26{
Kukjin Kim20dbc432010-10-01 20:10:33 +090027 s3c_gpio_cfgrange_nopull(base, nr, S3C_GPIO_SFN(2));
Ben Dooksa40af062010-10-01 16:49:11 +090028}
29
Pawel Osciakedd6e3f2009-11-17 08:41:19 +010030void s5pc100_fb_gpio_setup_24bpp(void)
31{
Ben Dooksa40af062010-10-01 16:49:11 +090032 s5pc100_fb_setgpios(S5PC100_GPF0(0), 8);
33 s5pc100_fb_setgpios(S5PC100_GPF1(0), 8);
34 s5pc100_fb_setgpios(S5PC100_GPF2(0), 8);
35 s5pc100_fb_setgpios(S5PC100_GPF3(0), 4);
Pawel Osciakedd6e3f2009-11-17 08:41:19 +010036}