Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[deliverable/linux.git] / arch / arm / mach-s5pc100 / setup-fb-24bpp.c
CommitLineData
edd6e3f8 1/*
b884c0e0 2 * linux/arch/arm/mach-s5pc100/setup-fb-24bpp.c
edd6e3f8
PO
3 *
4 * Copyright 2009 Samsung Electronics
5 *
b884c0e0 6 * Base S5PC100 setup information for 24bpp LCD framebuffer
edd6e3f8
PO
7 *
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
edd6e3f8
PO
18#include <mach/map.h>
19#include <plat/fb.h>
20#include <plat/gpio-cfg.h>
edd6e3f8
PO
21
22#define DISR_OFFSET 0x7008
23
a40af066 24static void s5pc100_fb_setgpios(unsigned int base, unsigned int nr)
edd6e3f8 25{
20dbc43d 26 s3c_gpio_cfgrange_nopull(base, nr, S3C_GPIO_SFN(2));
a40af066 27}
edd6e3f8 28
a40af066
BD
29void s5pc100_fb_gpio_setup_24bpp(void)
30{
31 s5pc100_fb_setgpios(S5PC100_GPF0(0), 8);
32 s5pc100_fb_setgpios(S5PC100_GPF1(0), 8);
33 s5pc100_fb_setgpios(S5PC100_GPF2(0), 8);
34 s5pc100_fb_setgpios(S5PC100_GPF3(0), 4);
edd6e3f8 35}
This page took 0.144889 seconds and 5 git commands to generate.