blob: 0ed3a8ea5263ee015ae595c71d3328f6116c71ab [file] [log] [blame]
Prafulla Wadaskar6c08d5d2010-10-12 16:31:40 +05301/*
2 * (C) Copyright 2010
3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5 * Contributor: Mahavir Jain <mjain@marvell.com>
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23 * MA 02110-1301 USA
24 */
25
26#ifndef _ASM_ARCH_ARMADA100_H
27#define _ASM_ARCH_ARMADA100_H
28
Prafulla Wadaskar6c08d5d2010-10-12 16:31:40 +053029#if defined (CONFIG_ARMADA100)
Prafulla Wadaskar6c08d5d2010-10-12 16:31:40 +053030
31/* Common APB clock register bit definitions */
32#define APBC_APBCLK (1<<0) /* APB Bus Clock Enable */
33#define APBC_FNCLK (1<<1) /* Functional Clock Enable */
34#define APBC_RST (1<<2) /* Reset Generation */
35/* Functional Clock Selection Mask */
36#define APBC_FNCLKSEL(x) (((x) & 0xf) << 4)
37
Ajay Bhargavaa0ecfe2011-09-13 22:22:04 +053038/* Fast Ethernet Controller Clock register definition */
39#define FE_CLK_RST 0x1
40#define FE_CLK_ENA 0x8
41
Ajay Bhargavdaa4b2f2011-10-03 14:00:57 +053042/* SSP2 Clock Control */
43#define SSP2_APBCLK 0x01
44#define SSP2_FNCLK 0x02
45
Prafulla Wadaskar6c08d5d2010-10-12 16:31:40 +053046/* Register Base Addresses */
47#define ARMD1_DRAM_BASE 0xB0000000
Ajay Bhargav79788bb2011-09-13 22:21:58 +053048#define ARMD1_FEC_BASE 0xC0800000
Prafulla Wadaskar6c08d5d2010-10-12 16:31:40 +053049#define ARMD1_TIMER_BASE 0xD4014000
50#define ARMD1_APBC1_BASE 0xD4015000
51#define ARMD1_APBC2_BASE 0xD4015800
52#define ARMD1_UART1_BASE 0xD4017000
53#define ARMD1_UART2_BASE 0xD4018000
54#define ARMD1_GPIO_BASE 0xD4019000
55#define ARMD1_SSP1_BASE 0xD401B000
56#define ARMD1_SSP2_BASE 0xD401C000
57#define ARMD1_MFPR_BASE 0xD401E000
58#define ARMD1_SSP3_BASE 0xD401F000
59#define ARMD1_SSP4_BASE 0xD4020000
60#define ARMD1_SSP5_BASE 0xD4021000
61#define ARMD1_UART3_BASE 0xD4026000
62#define ARMD1_MPMU_BASE 0xD4050000
63#define ARMD1_APMU_BASE 0xD4282800
64#define ARMD1_CPU_BASE 0xD4282C00
65
Prafulla Wadaskar6c08d5d2010-10-12 16:31:40 +053066#endif /* CONFIG_ARMADA100 */
67#endif /* _ASM_ARCH_ARMADA100_H */