Haavard Skinnemoen | 44453b2 | 2008-04-30 14:19:28 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 Atmel Corporation |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Haavard Skinnemoen | 44453b2 | 2008-04-30 14:19:28 +0200 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __ASM_AVR32_ARCH_HMATRIX_H__ |
| 7 | #define __ASM_AVR32_ARCH_HMATRIX_H__ |
| 8 | |
| 9 | #include <asm/hmatrix-common.h> |
| 10 | |
| 11 | /* Bitfields in SFR4 (EBI) */ |
| 12 | #define HMATRIX_EBI_SDRAM_ENABLE_OFFSET 1 |
| 13 | #define HMATRIX_EBI_SDRAM_ENABLE_SIZE 1 |
| 14 | #define HMATRIX_EBI_NAND_ENABLE_OFFSET 3 |
| 15 | #define HMATRIX_EBI_NAND_ENABLE_SIZE 1 |
| 16 | #define HMATRIX_EBI_CF0_ENABLE_OFFSET 4 |
| 17 | #define HMATRIX_EBI_CF0_ENABLE_SIZE 1 |
| 18 | #define HMATRIX_EBI_CF1_ENABLE_OFFSET 5 |
| 19 | #define HMATRIX_EBI_CF1_ENABLE_SIZE 1 |
| 20 | #define HMATRIX_EBI_PULLUP_DISABLE_OFFSET 8 |
| 21 | #define HMATRIX_EBI_PULLUP_DISABLE_SIZE 1 |
| 22 | |
| 23 | /* HSB masters */ |
| 24 | #define HMATRIX_MASTER_CPU_DCACHE 0 |
| 25 | #define HMATRIX_MASTER_CPU_ICACHE 1 |
| 26 | #define HMATRIX_MASTER_PDC 2 |
| 27 | #define HMATRIX_MASTER_ISI 3 |
| 28 | #define HMATRIX_MASTER_USBA 4 |
| 29 | #define HMATRIX_MASTER_LCDC 5 |
| 30 | #define HMATRIX_MASTER_MACB0 6 |
| 31 | #define HMATRIX_MASTER_MACB1 7 |
| 32 | #define HMATRIX_MASTER_DMACA_M0 8 |
| 33 | #define HMATRIX_MASTER_DMACA_M1 9 |
| 34 | |
| 35 | /* HSB slaves */ |
| 36 | #define HMATRIX_SLAVE_SRAM0 0 |
| 37 | #define HMATRIX_SLAVE_SRAM1 1 |
| 38 | #define HMATRIX_SLAVE_PBA 2 |
| 39 | #define HMATRIX_SLAVE_PBB 3 |
| 40 | #define HMATRIX_SLAVE_EBI 4 |
| 41 | #define HMATRIX_SLAVE_USBA 5 |
| 42 | #define HMATRIX_SLAVE_LCDC 6 |
| 43 | #define HMATRIX_SLAVE_DMACA 7 |
| 44 | |
| 45 | #endif /* __ASM_AVR32_ARCH_HMATRIX_H__ */ |