blob: db7531bb124672601c459fb3eaf70cd78b251443 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Vasutf5e75132016-05-14 23:43:01 +02002/*
3 * Boot mode definitions for the SAMA5Dx SoC
4 *
5 * Copyright (C) 2016 Marek Vasut <marex@denx.de>
Marek Vasutf5e75132016-05-14 23:43:01 +02006 */
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 */