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