• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/arm/mach-stmp37xx/include/mach/
1/*
2 * stmp37xx: CLKCTRL register definitions
3 *
4 * Copyright (c) 2008 Freescale Semiconductor
5 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 */
21#ifndef _MACH_REGS_CLKCTRL
22#define _MACH_REGS_CLKCTRL
23
24#define REGS_CLKCTRL_BASE	(STMP3XXX_REGS_BASE + 0x40000)
25
26#define HW_CLKCTRL_PLLCTRL0	0x0
27#define BM_CLKCTRL_PLLCTRL0_EN_USB_CLKS	0x00040000
28
29#define HW_CLKCTRL_CPU		0x20
30#define BM_CLKCTRL_CPU_DIV_CPU	0x0000003F
31#define BP_CLKCTRL_CPU_DIV_CPU	0
32
33#define HW_CLKCTRL_HBUS		0x30
34#define BM_CLKCTRL_HBUS_DIV	0x0000001F
35#define BP_CLKCTRL_HBUS_DIV	0
36
37#define HW_CLKCTRL_XBUS		0x40
38
39#define HW_CLKCTRL_XTAL		0x50
40
41#define HW_CLKCTRL_PIX		0x60
42#define BM_CLKCTRL_PIX_DIV	0x00007FFF
43#define BP_CLKCTRL_PIX_DIV	0
44#define BM_CLKCTRL_PIX_CLKGATE	0x80000000
45
46#define HW_CLKCTRL_SSP		0x70
47
48#define HW_CLKCTRL_GPMI		0x80
49
50#define HW_CLKCTRL_SPDIF	0x90
51
52#define HW_CLKCTRL_EMI		0xA0
53
54#define HW_CLKCTRL_IR		0xB0
55
56#define HW_CLKCTRL_SAIF		0xC0
57
58#define HW_CLKCTRL_FRAC		0xD0
59#define BM_CLKCTRL_FRAC_EMIFRAC	0x00003F00
60#define BP_CLKCTRL_FRAC_EMIFRAC	8
61#define BM_CLKCTRL_FRAC_PIXFRAC	0x003F0000
62#define BP_CLKCTRL_FRAC_PIXFRAC	16
63#define BM_CLKCTRL_FRAC_CLKGATEPIX	0x00800000
64
65#define HW_CLKCTRL_CLKSEQ	0xE0
66#define BM_CLKCTRL_CLKSEQ_BYPASS_PIX	0x00000002
67
68#define HW_CLKCTRL_RESET	0xF0
69#define BM_CLKCTRL_RESET_DIG	0x00000001
70#define BP_CLKCTRL_RESET_DIG	0
71
72#endif
73