Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
setup-fimd0.c
Go to the documentation of this file.
1 /* linux/arch/arm/mach-exynos4/setup-fimd0.c
2  *
3  * Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
4  * http://www.samsung.com
5  *
6  * Base Exynos4 FIMD 0 configuration
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 <video/samsung_fimd.h>
17 #include <plat/gpio-cfg.h>
18 
19 #include <mach/map.h>
20 
22 {
23  unsigned int reg;
24 
25  s3c_gpio_cfgrange_nopull(EXYNOS4_GPF0(0), 8, S3C_GPIO_SFN(2));
26  s3c_gpio_cfgrange_nopull(EXYNOS4_GPF1(0), 8, S3C_GPIO_SFN(2));
27  s3c_gpio_cfgrange_nopull(EXYNOS4_GPF2(0), 8, S3C_GPIO_SFN(2));
28  s3c_gpio_cfgrange_nopull(EXYNOS4_GPF3(0), 4, S3C_GPIO_SFN(2));
29 
30  /*
31  * Set DISPLAY_CONTROL register for Display path selection.
32  *
33  * DISPLAY_CONTROL[1:0]
34  * ---------------------
35  * 00 | MIE
36  * 01 | MDINE
37  * 10 | FIMD : selected
38  * 11 | FIMD
39  */
40  reg = __raw_readl(S3C_VA_SYS + 0x0210);
41  reg |= (1 << 1);
42  __raw_writel(reg, S3C_VA_SYS + 0x0210);
43 }