• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Boot mode definitions for the SAMA5Dx SoC
4  *
5  * Copyright (C) 2016 Marek Vasut <marex@denx.de>
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 */
25