Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
setup-fb-24bpp.c
Go to the documentation of this file.
1 /* linux/arch/arm/mach-s5p64x0/setup-fb-24bpp.c
2  *
3  * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4  * http://www.samsung.com/
5  *
6  * Base S5P64X0 GPIO setup information for LCD framebuffer
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/fb.h>
14 #include <linux/gpio.h>
15 
16 #include <plat/cpu.h>
17 #include <plat/fb.h>
18 #include <plat/gpio-cfg.h>
19 
21 {
22  if (soc_is_s5p6440()) {
23  s3c_gpio_cfgrange_nopull(S5P6440_GPI(0), 16, S3C_GPIO_SFN(2));
24  s3c_gpio_cfgrange_nopull(S5P6440_GPJ(0), 12, S3C_GPIO_SFN(2));
25  } else if (soc_is_s5p6450()) {
26  s3c_gpio_cfgrange_nopull(S5P6450_GPI(0), 16, S3C_GPIO_SFN(2));
27  s3c_gpio_cfgrange_nopull(S5P6450_GPJ(0), 12, S3C_GPIO_SFN(2));
28  }
29 }