2 * Milkymist VJ SoC (Software)
3 * Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include <hw/common.h>
23 #define CSR_GPIO_IN MMPTR(0xe0001000)
24 #define CSR_GPIO_OUT MMPTR(0xe0001004)
25 #define CSR_GPIO_INTEN MMPTR(0xe0001008)
27 #define CSR_TIMER0_CONTROL MMPTR(0xe0001010)
28 #define CSR_TIMER0_COMPARE MMPTR(0xe0001014)
29 #define CSR_TIMER0_COUNTER MMPTR(0xe0001018)
31 #define CSR_TIMER1_CONTROL MMPTR(0xe0001020)
32 #define CSR_TIMER1_COMPARE MMPTR(0xe0001024)
33 #define CSR_TIMER1_COUNTER MMPTR(0xe0001028)
35 #define TIMER_ENABLE (0x01)
36 #define TIMER_AUTORESTART (0x02)
38 #define CSR_CAPABILITIES MMPTR(0xe0001038)
39 #define CSR_SYSTEM_ID MMPTR(0xe000103c)
41 #endif /* __HW_SYSCTL_H */