1 /* drivers/media/platform/s5p-cec/regs-cec.h
3 * Copyright (c) 2010 Samsung Electronics
4 * http://www.samsung.com/
6 * register header file for Samsung TVOUT driver
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 #ifndef __EXYNOS_REGS__H
14 #define __EXYNOS_REGS__H
19 #define S5P_CEC_STATUS_0 (0x0000)
20 #define S5P_CEC_STATUS_1 (0x0004)
21 #define S5P_CEC_STATUS_2 (0x0008)
22 #define S5P_CEC_STATUS_3 (0x000C)
23 #define S5P_CEC_IRQ_MASK (0x0010)
24 #define S5P_CEC_IRQ_CLEAR (0x0014)
25 #define S5P_CEC_LOGIC_ADDR (0x0020)
26 #define S5P_CEC_DIVISOR_0 (0x0030)
27 #define S5P_CEC_DIVISOR_1 (0x0034)
28 #define S5P_CEC_DIVISOR_2 (0x0038)
29 #define S5P_CEC_DIVISOR_3 (0x003C)
31 #define S5P_CEC_TX_CTRL (0x0040)
32 #define S5P_CEC_TX_BYTES (0x0044)
33 #define S5P_CEC_TX_STAT0 (0x0060)
34 #define S5P_CEC_TX_STAT1 (0x0064)
35 #define S5P_CEC_TX_BUFF0 (0x0080)
36 #define S5P_CEC_TX_BUFF1 (0x0084)
37 #define S5P_CEC_TX_BUFF2 (0x0088)
38 #define S5P_CEC_TX_BUFF3 (0x008C)
39 #define S5P_CEC_TX_BUFF4 (0x0090)
40 #define S5P_CEC_TX_BUFF5 (0x0094)
41 #define S5P_CEC_TX_BUFF6 (0x0098)
42 #define S5P_CEC_TX_BUFF7 (0x009C)
43 #define S5P_CEC_TX_BUFF8 (0x00A0)
44 #define S5P_CEC_TX_BUFF9 (0x00A4)
45 #define S5P_CEC_TX_BUFF10 (0x00A8)
46 #define S5P_CEC_TX_BUFF11 (0x00AC)
47 #define S5P_CEC_TX_BUFF12 (0x00B0)
48 #define S5P_CEC_TX_BUFF13 (0x00B4)
49 #define S5P_CEC_TX_BUFF14 (0x00B8)
50 #define S5P_CEC_TX_BUFF15 (0x00BC)
52 #define S5P_CEC_RX_CTRL (0x00C0)
53 #define S5P_CEC_RX_STAT0 (0x00E0)
54 #define S5P_CEC_RX_STAT1 (0x00E4)
55 #define S5P_CEC_RX_BUFF0 (0x0100)
56 #define S5P_CEC_RX_BUFF1 (0x0104)
57 #define S5P_CEC_RX_BUFF2 (0x0108)
58 #define S5P_CEC_RX_BUFF3 (0x010C)
59 #define S5P_CEC_RX_BUFF4 (0x0110)
60 #define S5P_CEC_RX_BUFF5 (0x0114)
61 #define S5P_CEC_RX_BUFF6 (0x0118)
62 #define S5P_CEC_RX_BUFF7 (0x011C)
63 #define S5P_CEC_RX_BUFF8 (0x0120)
64 #define S5P_CEC_RX_BUFF9 (0x0124)
65 #define S5P_CEC_RX_BUFF10 (0x0128)
66 #define S5P_CEC_RX_BUFF11 (0x012C)
67 #define S5P_CEC_RX_BUFF12 (0x0130)
68 #define S5P_CEC_RX_BUFF13 (0x0134)
69 #define S5P_CEC_RX_BUFF14 (0x0138)
70 #define S5P_CEC_RX_BUFF15 (0x013C)
72 #define S5P_CEC_RX_FILTER_CTRL (0x0180)
73 #define S5P_CEC_RX_FILTER_TH (0x0184)
78 #define S5P_CEC_IRQ_TX_DONE (1<<0)
79 #define S5P_CEC_IRQ_TX_ERROR (1<<1)
80 #define S5P_CEC_IRQ_RX_DONE (1<<4)
81 #define S5P_CEC_IRQ_RX_ERROR (1<<5)
83 #define S5P_CEC_TX_CTRL_START (1<<0)
84 #define S5P_CEC_TX_CTRL_BCAST (1<<1)
85 #define S5P_CEC_TX_CTRL_RETRY (0x04<<4)
86 #define S5P_CEC_TX_CTRL_RESET (1<<7)
88 #define S5P_CEC_RX_CTRL_ENABLE (1<<0)
89 #define S5P_CEC_RX_CTRL_RESET (1<<7)
91 #define S5P_CEC_LOGIC_ADDR_MASK (0xF)
93 /* PMU Registers for PHY */
94 #define EXYNOS_HDMI_PHY_CONTROL 0x700
96 #endif /* __EXYNOS_REGS__H */