blob: 42e1d21e53474f7f3bd49e7996e9948d96ee4cdc [file] [log] [blame]
Donghwa Lee283591f2012-04-05 19:36:10 +00001/*
2 * (C) Copyright 2012 Samsung Electronics
3 * Donghwa Lee <dh09.lee@samsung.com>
4 *
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.
9 *
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.
14 *
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,
18 * MA 02111-1307 USA
19 *
20 */
21
22#ifndef __ASM_ARM_ARCH_SYSTEM_H_
23#define __ASM_ARM_ARCH_SYSTEM_H_
24
25#ifndef __ASSEMBLY__
26struct 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;
33};
34
35struct 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;
Rajeshwari Shinde775b6f72012-05-14 05:52:00 +000045 unsigned char res2[0x29c];
Donghwa Lee283591f2012-04-05 19:36:10 +000046 unsigned int mipi_dphy;
47 unsigned int dptx_dphy;
48 unsigned int phyclk_sel;
49};
50#endif
51
Rajeshwari Shinde71045da2012-05-14 05:52:02 +000052#define USB20_PHY_CFG_HOST_LINK_EN (1 << 0)
53
54void set_usbhost_mode(unsigned int mode);
Donghwa Lee283591f2012-04-05 19:36:10 +000055void set_system_display_ctrl(void);
56
57#endif /* _EXYNOS4_SYSTEM_H */