Marek Vasut | f5e7513 | 2016-05-14 23:43:01 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Boot mode definitions for the SAMA5Dx SoC |
| 3 | * |
| 4 | * Copyright (C) 2016 Marek Vasut <marex@denx.de> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #ifndef __SAMA5_BOOT_H |
| 10 | #define __SAMA5_BOOT_H |
| 11 | |
| 12 | /* Boot modes stored by BootROM in r4 */ |
| 13 | #define ATMEL_SAMA5_BOOT_FROM_OFF 0 |
| 14 | #define ATMEL_SAMA5_BOOT_FROM_MASK 0xf |
| 15 | #define ATMEL_SAMA5_BOOT_FROM_SPI (0 << 0) |
| 16 | #define ATMEL_SAMA5_BOOT_FROM_MCI (1 << 0) |
| 17 | #define ATMEL_SAMA5_BOOT_FROM_SMC (2 << 0) |
| 18 | #define ATMEL_SAMA5_BOOT_FROM_TWI (3 << 0) |
| 19 | #define ATMEL_SAMA5_BOOT_FROM_QSPI (4 << 0) |
| 20 | #define ATMEL_SAMA5_BOOT_FROM_SAMBA (7 << 0) |
| 21 | |
| 22 | #define ATMEL_SAMA5_BOOT_DEV_ID_OFF 4 |
| 23 | #define ATMEL_SAMA5_BOOT_DEV_ID_MASK 0xf |
| 24 | |
| 25 | #endif /* __SAMA5_BOOT_H */ |