spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
[zen-stable.git] / arch / arm / mach-s5p64x0 / setup-fb-24bpp.c
blobf346ee4af54de3048d91bae4a7021664fbc5a118
1 /* linux/arch/arm/mach-s5p64x0/setup-fb-24bpp.c
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
6 * Base S5P64X0 GPIO setup information for LCD framebuffer
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.
13 #include <linux/fb.h>
14 #include <linux/gpio.h>
16 #include <plat/cpu.h>
17 #include <plat/fb.h>
18 #include <plat/gpio-cfg.h>
20 void s5p64x0_fb_gpio_setup_24bpp(void)
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));