summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-davinci/syscfg_defs.h
blob: 05af0200dbb36f43bdde984979b96db98121b74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 * Copyright (C) 2011
 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */
#ifndef _DV_SYSCFG_DEFS_H_
#define _DV_SYSCFG_DEFS_H_

#ifndef CONFIG_SOC_DA8XX
/* System Control Module register structure for DM365 */
struct dv_sys_module_regs {
	unsigned int	pinmux[5];	/* 0x00 */
	unsigned int	bootcfg;	/* 0x14 */
	unsigned int	arm_intmux;	/* 0x18 */
	unsigned int	edma_evtmux;	/* 0x1C */
	unsigned int	ddr_slew;	/* 0x20 */
	unsigned int	clkout;		/* 0x24 */
	unsigned int	device_id;	/* 0x28 */
	unsigned int	vdac_config;	/* 0x2C */
	unsigned int	timer64_ctl;	/* 0x30 */
	unsigned int	usbbphy_ctl;	/* 0x34 */
	unsigned int	misc;		/* 0x38 */
	unsigned int	mstpri[2];	/* 0x3C */
	unsigned int	vpss_clkctl;	/* 0x44 */
	unsigned int	peri_clkctl;	/* 0x48 */
	unsigned int	deepsleep;	/* 0x4C */
	unsigned int	dft_enable;	/* 0x50 */
	unsigned int	debounce[8];	/* 0x54 */
	unsigned int	vtpiocr;	/* 0x74 */
	unsigned int	pupdctl0;	/* 0x78 */
	unsigned int	pupdctl1;	/* 0x7C */
	unsigned int	hdimcopbt;	/* 0x80 */
	unsigned int	pll0_config;	/* 0x84 */
	unsigned int	pll1_config;	/* 0x88 */
};

#define VPTIO_RDY	(1 << 15)
#define VPTIO_IOPWRDN	(1 << 14)
#define VPTIO_CLRZ	(1 << 13)
#define VPTIO_LOCK	(1 << 7)
#define VPTIO_PWRDN	(1 << 6)

#define VPSS_CLK_CTL_VPSS_CLKMD	(1 << 7)

#define dv_sys_module_regs \
	((struct dv_sys_module_regs *)DAVINCI_SYSTEM_MODULE_BASE)

#endif /* !CONFIG_SOC_DA8XX */
#endif /* _DV_SYSCFG_DEFS_H_ */