Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h

Issue 2060003: ARM: S5PV210: Add TV out driver register definition files (Closed) Base URL: swsolcc@12.23.106.100:kernel-samsung.git
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* linux/arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h
2 *
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
5 *
6 * S5PV210 - Clock Other header file for Samsung TVOut driver
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 #ifndef __ASM_ARCH_REGS_HMDI_CLK_H
14 #define __ASM_ARCH_REGS_HDMI_CLK_H __FILE__
15
16 #include <mach/map.h>
17
18 #define S5P_CLK_OTHER_BASE(x) (x)
19
20 #define S5P_CLK_OTHER_SWRESET S5P_CLK_OTHER_BASE(0x0000)
21 #define S5P_CLK_OTHER_ONENAND_SWRESET S5P_CLK_OTHER_BASE(0x0008)
22 #define S5P_CLK_OTHER_GENERAL_CTRL S5P_CLK_OTHER_BASE(0x0100)
23 #define S5P_CLK_OTHER_GENERAL_STATUS S5P_CLK_OTHER_BASE(0x0104)
24 #define S5P_CLK_OTHER_MEM_SYS_CFG S5P_CLK_OTHER_BASE(0x0200)
25 #define S5P_CLK_OTHER_CAM_MUX_SEL S5P_CLK_OTHER_BASE(0x0300)
26 #define S5P_CLK_OTHER_MIXER_OUT_SEL S5P_CLK_OTHER_BASE(0x0304)
27 #define S5P_CLK_OTHER_LPMP3_MODE_SEL S5P_CLK_OTHER_BASE(0x0308)
28 #define S5P_CLK_OTHER_MIPI_PHY_CON0 S5P_CLK_OTHER_BASE(0x0400)
29 #define S5P_CLK_OTHER_MIPI_PHY_CON1 S5P_CLK_OTHER_BASE(0x0414)
30 #define S5P_CLK_OTHER_HDMI_PHY_CON0 S5P_CLK_OTHER_BASE(0x0420)
31
32 /* VPLL_LOCK */
33 #define VPLL_LOCKTIME(x) (0xffff&x)
34
35 /* VPLL_CON */
36 #define VPLL_ENABLE (1<<31)
37 #define VPLL_DISABLE (0<<31)
38 #define VPLL_LOCKED(x) ((1<<29)&x)
39 #define VCO_FREQ_SEL (1<<27)
40 #define MDIV(x) ((0xff&x)<<16)
41 #define PDIV(x) ((0x3f&x)<<8)
42 #define SDIV(x) (0x7&x)
43
44 /* CLK_SRC0 */
45 #define HREF_SEL_FIN_27M (0<<20)
46 #define HREF_SEL_SRCLK (1<<20)
47 #define HREF_SEL_MASK (~(1<<20))
48 #define VPLL_SEL_CLK27M (0<<12)
49 #define VPLL_SEL_FOUT_VPLL (1<<12)
50 #define VPLL_SEL_MASK (~(1<<12))
51
52 /* CLK_SRC2 */
53 #define VMIXER_SEL_MOUT_VPLL (1<<4)
54 #define VMIXER_SEL_MASK (~(1<<4))
55 #define HDMI_SEL_HDMIPHY (1<<0)
56 #define HDMI_SEL_MASK (~(1<<0))
57
58 /* CLK_DIV3 */
59 #define HDMI_DIV_RATIO(x) (0xf&(x))
60 #define HDMI_DIV_RATIO_MASK (~(0xf))
61
62 /* CLK_GATE_D1_2 */
63 #define CLK_HCLK_HDMI_PASS (1<<11)
64 #define CLK_HCLK_SDOUT_PASS (1<<10)
65 #define CLK_HCLK_VMIXER_PASS (1<<9)
66 #define CLK_HCLK_VP_PASS (1<<8)
67 #define CLK_HCLK_MASK (~0xf)
68
69 /* CLK_GATE_D1_4 */
70 #define CLK_PCLK_IIC_HDMI_PASS (1<<5)
71 #define CLK_PCLK_IIC_HDMI_MASK (~(1<<5))
72
73 /* CLK_GATE_SCLK_1 */
74 #define CLK_SCLK_HDMI_PASS (1<<19)
75 #define CLK_SCLK_VMIXER_PASS (1<<20)
76 #define CLK_SCLK_VDAC54_PASS (1<<21)
77 #define CLK_SCLK_TV54_PASS (1<<22)
78 #define CLK_SCLK_HDMI_MASK (~(1<<19))
79 #define CLK_SCLK_VMIXER_MASK (~(1<<20))
80 #define CLK_SCLK_VDAC54_MASK (~(1<<21))
81 #define CLK_SCLK_TV54_MASK (~(1<<22))
82
83 /* MIXER_OUT_SEL */
84 #define VMIXER_OUT_SEL_SDOUT (0)
85 #define VMIXER_OUT_SEL_HDMI (1)
86
87 #endif /*__ASM_ARCH_REGS_HDMI_CLK_H */
OLDNEW
« no previous file with comments | « arch/arm/mach-s5pv210/include/mach/regs-hdmi.h ('k') | arch/arm/mach-s5pv210/include/mach/regs-sdaout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698