]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-exynos/system.h
TX6 Release 2013-04-22
[karo-tx-uboot.git] / arch / arm / include / asm / arch-exynos / system.h
1 /*
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__
26 struct exynos4_sysreg {
27         unsigned int    res1[0x210 / 4];
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
35 struct exynos5_sysreg {
36         unsigned int    res1[0x214 / 4];
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 int    res2[0x29c / 4];
46         unsigned int    mipi_dphy;
47         unsigned int    dptx_dphy;
48         unsigned int    phyclk_sel;
49 };
50 #endif
51
52 #define USB20_PHY_CFG_HOST_LINK_EN      (1 << 0)
53
54 void set_usbhost_mode(unsigned int mode);
55 void set_system_display_ctrl(void);
56
57 #endif  /* _EXYNOS4_SYSTEM_H */