GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-stmp37xx / include / mach / regs-clkctrl.h
blob47f5c92fdaf6477357a272903440a74e88fa70d6
1 /*
2 * stmp37xx: CLKCTRL register definitions
4 * Copyright (c) 2008 Freescale Semiconductor
5 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
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.
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.
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
21 #ifndef _MACH_REGS_CLKCTRL
22 #define _MACH_REGS_CLKCTRL
24 #define REGS_CLKCTRL_BASE (STMP3XXX_REGS_BASE + 0x40000)
26 #define HW_CLKCTRL_PLLCTRL0 0x0
27 #define BM_CLKCTRL_PLLCTRL0_EN_USB_CLKS 0x00040000
29 #define HW_CLKCTRL_CPU 0x20
30 #define BM_CLKCTRL_CPU_DIV_CPU 0x0000003F
31 #define BP_CLKCTRL_CPU_DIV_CPU 0
33 #define HW_CLKCTRL_HBUS 0x30
34 #define BM_CLKCTRL_HBUS_DIV 0x0000001F
35 #define BP_CLKCTRL_HBUS_DIV 0
37 #define HW_CLKCTRL_XBUS 0x40
39 #define HW_CLKCTRL_XTAL 0x50
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
46 #define HW_CLKCTRL_SSP 0x70
48 #define HW_CLKCTRL_GPMI 0x80
50 #define HW_CLKCTRL_SPDIF 0x90
52 #define HW_CLKCTRL_EMI 0xA0
54 #define HW_CLKCTRL_IR 0xB0
56 #define HW_CLKCTRL_SAIF 0xC0
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
65 #define HW_CLKCTRL_CLKSEQ 0xE0
66 #define BM_CLKCTRL_CLKSEQ_BYPASS_PIX 0x00000002
68 #define HW_CLKCTRL_RESET 0xF0
69 #define BM_CLKCTRL_RESET_DIG 0x00000001
70 #define BP_CLKCTRL_RESET_DIG 0
72 #endif