blob: d5e9ba048e43f33a92c3fe5c0cc962a63782c11e [file] [log] [blame]
Lei Wen43013032011-02-09 18:06:58 +05301/*
2 * (C) Copyright 2011
3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Lei Wen <leiwen@marvell.com>
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 */
24
25#ifndef _PANTHEON_H
26#define _PANTHEON_H
27
Lei Wen43013032011-02-09 18:06:58 +053028/* Common APB clock register bit definitions */
29#define APBC_APBCLK (1<<0) /* APB Bus Clock Enable */
30#define APBC_FNCLK (1<<1) /* Functional Clock Enable */
31#define APBC_RST (1<<2) /* Reset Generation */
32/* Functional Clock Selection Mask */
33#define APBC_FNCLKSEL(x) (((x) & 0xf) << 4)
34
Lei Wen7b727d02011-10-03 20:33:41 +000035/* Common APMU register bit definitions */
36#define APMU_PERI_CLK (1<<4) /* Peripheral Clock Enable */
37#define APMU_AXI_CLK (1<<3) /* AXI Clock Enable*/
38#define APMU_PERI_RST (1<<1) /* Peripheral Reset */
39#define APMU_AXI_RST (1<<0) /* AXI Reset */
40
Lei Wen43013032011-02-09 18:06:58 +053041/* Register Base Addresses */
42#define PANTHEON_DRAM_BASE 0xB0000000
43#define PANTHEON_TIMER_BASE 0xD4014000
44#define PANTHEON_WD_TIMER_BASE 0xD4080000
45#define PANTHEON_APBC_BASE 0xD4015000
46#define PANTHEON_UART1_BASE 0xD4017000
47#define PANTHEON_UART2_BASE 0xD4018000
48#define PANTHEON_GPIO_BASE 0xD4019000
49#define PANTHEON_MFPR_BASE 0xD401E000
50#define PANTHEON_MPMU_BASE 0xD4050000
Lei Wen7b727d02011-10-03 20:33:41 +000051#define PANTHEON_APMU_BASE 0xD4282800
Lei Wen43013032011-02-09 18:06:58 +053052#define PANTHEON_CPU_BASE 0xD4282C00
53
54#endif /* _PANTHEON_H */