Haavard Skinnemoen | 44453b2 | 2008-04-30 14:19:28 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 Atmel Corporation |
| 3 | * |
| 4 | * See file CREDITS for list of people who contributed to this |
| 5 | * project. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of |
| 10 | * the License, or (at your option) any later version. |
| 11 | * |
| 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. |
| 16 | * |
| 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, |
| 20 | * MA 02111-1307 USA |
| 21 | */ |
| 22 | #ifndef __ASM_AVR32_ARCH_HMATRIX_H__ |
| 23 | #define __ASM_AVR32_ARCH_HMATRIX_H__ |
| 24 | |
| 25 | #include <asm/hmatrix-common.h> |
| 26 | |
| 27 | /* Bitfields in SFR4 (EBI) */ |
| 28 | #define HMATRIX_EBI_SDRAM_ENABLE_OFFSET 1 |
| 29 | #define HMATRIX_EBI_SDRAM_ENABLE_SIZE 1 |
| 30 | #define HMATRIX_EBI_NAND_ENABLE_OFFSET 3 |
| 31 | #define HMATRIX_EBI_NAND_ENABLE_SIZE 1 |
| 32 | #define HMATRIX_EBI_CF0_ENABLE_OFFSET 4 |
| 33 | #define HMATRIX_EBI_CF0_ENABLE_SIZE 1 |
| 34 | #define HMATRIX_EBI_CF1_ENABLE_OFFSET 5 |
| 35 | #define HMATRIX_EBI_CF1_ENABLE_SIZE 1 |
| 36 | #define HMATRIX_EBI_PULLUP_DISABLE_OFFSET 8 |
| 37 | #define HMATRIX_EBI_PULLUP_DISABLE_SIZE 1 |
| 38 | |
| 39 | /* HSB masters */ |
| 40 | #define HMATRIX_MASTER_CPU_DCACHE 0 |
| 41 | #define HMATRIX_MASTER_CPU_ICACHE 1 |
| 42 | #define HMATRIX_MASTER_PDC 2 |
| 43 | #define HMATRIX_MASTER_ISI 3 |
| 44 | #define HMATRIX_MASTER_USBA 4 |
| 45 | #define HMATRIX_MASTER_LCDC 5 |
| 46 | #define HMATRIX_MASTER_MACB0 6 |
| 47 | #define HMATRIX_MASTER_MACB1 7 |
| 48 | #define HMATRIX_MASTER_DMACA_M0 8 |
| 49 | #define HMATRIX_MASTER_DMACA_M1 9 |
| 50 | |
| 51 | /* HSB slaves */ |
| 52 | #define HMATRIX_SLAVE_SRAM0 0 |
| 53 | #define HMATRIX_SLAVE_SRAM1 1 |
| 54 | #define HMATRIX_SLAVE_PBA 2 |
| 55 | #define HMATRIX_SLAVE_PBB 3 |
| 56 | #define HMATRIX_SLAVE_EBI 4 |
| 57 | #define HMATRIX_SLAVE_USBA 5 |
| 58 | #define HMATRIX_SLAVE_LCDC 6 |
| 59 | #define HMATRIX_SLAVE_DMACA 7 |
| 60 | |
| 61 | #endif /* __ASM_AVR32_ARCH_HMATRIX_H__ */ |