Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com> |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | #ifndef _ASM_ARCH_HARDWARE_H |
| 25 | #define _ASM_ARCH_HARDWARE_H |
| 26 | |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 27 | #define CONFIG_SYS_USBD_BASE 0xE1100000 |
| 28 | #define CONFIG_SYS_PLUG_BASE 0xE1200000 |
| 29 | #define CONFIG_SYS_FIFO_BASE 0xE1000800 |
| 30 | #define CONFIG_SYS_SMI_BASE 0xFC000000 |
| 31 | #define CONFIG_SPEAR_SYSCNTLBASE 0xFCA00000 |
| 32 | #define CONFIG_SPEAR_TIMERBASE 0xFC800000 |
| 33 | #define CONFIG_SPEAR_MISCBASE 0xFCA80000 |
Vipin KUMAR | deb0056 | 2012-05-07 13:06:42 +0530 | [diff] [blame] | 34 | #define CONFIG_SPEAR_ETHBASE 0xE0800000 |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 35 | #define CONFIG_SPEAR_MPMCBASE 0xFC600000 |
| 36 | #define CONFIG_SSP1_BASE 0xD0100000 |
| 37 | #define CONFIG_SSP2_BASE 0xD0180000 |
| 38 | #define CONFIG_SSP3_BASE 0xD8180000 |
| 39 | #define CONFIG_GPIO_BASE 0xD8100000 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 40 | |
| 41 | #define CONFIG_SYS_NAND_CLE (1 << 16) |
| 42 | #define CONFIG_SYS_NAND_ALE (1 << 17) |
| 43 | |
| 44 | #if defined(CONFIG_SPEAR600) |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 45 | #define CONFIG_SYS_I2C_BASE 0xD0200000 |
| 46 | #define CONFIG_SYS_FSMC_BASE 0xD1800000 |
| 47 | #define CONFIG_FSMC_NAND_BASE 0xD2000000 |
| 48 | |
| 49 | #define CONFIG_SPEAR_BOOTSTRAPCFG 0xFCA80000 |
| 50 | #define CONFIG_SPEAR_BOOTSTRAPSHFT 16 |
| 51 | #define CONFIG_SPEAR_BOOTSTRAPMASK 0xB |
| 52 | #define CONFIG_SPEAR_ONLYSNORBOOT 0xA |
| 53 | #define CONFIG_SPEAR_NORNANDBOOT 0xB |
| 54 | #define CONFIG_SPEAR_NORNAND8BOOT 0x8 |
| 55 | #define CONFIG_SPEAR_NORNAND16BOOT 0x9 |
| 56 | #define CONFIG_SPEAR_USBBOOT 0x8 |
| 57 | |
| 58 | #define CONFIG_SPEAR_MPMCREGS 100 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 59 | |
| 60 | #elif defined(CONFIG_SPEAR300) |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 61 | #define CONFIG_SYS_I2C_BASE 0xD0180000 |
| 62 | #define CONFIG_SYS_FSMC_BASE 0x94000000 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 63 | |
| 64 | #elif defined(CONFIG_SPEAR310) |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 65 | #define CONFIG_SYS_I2C_BASE 0xD0180000 |
| 66 | #define CONFIG_SYS_FSMC_BASE 0x44000000 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 67 | |
| 68 | #undef CONFIG_SYS_NAND_CLE |
| 69 | #undef CONFIG_SYS_NAND_ALE |
| 70 | #define CONFIG_SYS_NAND_CLE (1 << 17) |
| 71 | #define CONFIG_SYS_NAND_ALE (1 << 16) |
| 72 | |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 73 | #define CONFIG_SPEAR_EMIBASE 0x4F000000 |
| 74 | #define CONFIG_SPEAR_RASBASE 0xB4000000 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 75 | |
Vipin KUMAR | 8eb0ee6 | 2012-05-07 13:06:43 +0530 | [diff] [blame] | 76 | #define CONFIG_SYS_MACB0_BASE 0xB0000000 |
| 77 | #define CONFIG_SYS_MACB1_BASE 0xB0800000 |
| 78 | #define CONFIG_SYS_MACB2_BASE 0xB1000000 |
| 79 | #define CONFIG_SYS_MACB3_BASE 0xB1800000 |
| 80 | |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 81 | #elif defined(CONFIG_SPEAR320) |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 82 | #define CONFIG_SYS_I2C_BASE 0xD0180000 |
| 83 | #define CONFIG_SYS_FSMC_BASE 0x4C000000 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 84 | |
Stefan Roese | 4ae8bc4 | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 85 | #define CONFIG_SPEAR_EMIBASE 0x40000000 |
| 86 | #define CONFIG_SPEAR_RASBASE 0xB3000000 |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 87 | |
Vipin KUMAR | 8eb0ee6 | 2012-05-07 13:06:43 +0530 | [diff] [blame] | 88 | #define CONFIG_SYS_MACB0_BASE 0xAA000000 |
| 89 | |
Vipin KUMAR | 81c0ebf | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 90 | #endif |
| 91 | #endif /* _ASM_ARCH_HARDWARE_H */ |