2 * (C) Copyright 2012 Samsung Electronics
3 * Donghwa Lee <dh09.lee@samsung.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 #ifndef __ASM_ARM_ARCH_SYSTEM_H_
23 #define __ASM_ARM_ARCH_SYSTEM_H_
26 struct exynos4_sysreg {
27 unsigned char res1[0x210];
28 unsigned int display_ctrl;
29 unsigned int display_ctrl2;
30 unsigned int camera_control;
31 unsigned int audio_endian;
32 unsigned int jtag_con;
35 struct exynos5_sysreg {
36 unsigned char res1[0x214];
37 unsigned int disp1blk_cfg;
38 unsigned int disp2blk_cfg;
39 unsigned int hdcp_e_fuse;
40 unsigned int gsclblk_cfg0;
41 unsigned int gsclblk_cfg1;
42 unsigned int reserved;
43 unsigned int ispblk_cfg;
44 unsigned int usb20phy_cfg;
45 unsigned char res2[0x29c];
46 unsigned int mipi_dphy;
47 unsigned int dptx_dphy;
48 unsigned int phyclk_sel;
52 #define USB20_PHY_CFG_HOST_LINK_EN (1 << 0)
54 void set_usbhost_mode(unsigned int mode);
55 void set_system_display_ctrl(void);
57 #endif /* _EXYNOS4_SYSTEM_H */