]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-am33xx/spl.h
Merge branch 'master' of git://git.denx.de/u-boot-usb
[karo-tx-uboot.git] / arch / arm / include / asm / arch-am33xx / spl.h
1 /*
2  * (C) Copyright 2012
3  * Texas Instruments, <www.ti.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7 #ifndef _ASM_ARCH_SPL_H_
8 #define _ASM_ARCH_SPL_H_
9
10 #if defined(CONFIG_TI816X)
11 #define BOOT_DEVICE_XIP         2
12 #define BOOT_DEVICE_NAND        3
13 #define BOOT_DEVICE_MMC1        6
14 #define BOOT_DEVICE_MMC2        5
15 #define BOOT_DEVICE_UART        0x43
16 #elif defined(CONFIG_AM43XX)
17 #define BOOT_DEVICE_NOR         1
18 #define BOOT_DEVICE_NAND        5
19 #define BOOT_DEVICE_MMC1        7
20 #define BOOT_DEVICE_MMC2        8
21 #define BOOT_DEVICE_SPI         10
22 #define BOOT_DEVICE_USB     13
23 #define BOOT_DEVICE_UART        65
24 #define BOOT_DEVICE_CPGMAC      71
25 #else
26 #define BOOT_DEVICE_XIP         2
27 #define BOOT_DEVICE_NAND        5
28 #define BOOT_DEVICE_NAND_I2C    6
29 #if defined(CONFIG_AM33XX)
30 #define BOOT_DEVICE_MMC1        8
31 #define BOOT_DEVICE_MMC2        9       /* eMMC or daughter card */
32 #elif defined(CONFIG_TI814X)
33 #define BOOT_DEVICE_MMC1        9
34 #define BOOT_DEVICE_MMC2        8       /* ROM only supports 2nd instance */
35 #endif
36 #define BOOT_DEVICE_SPI         11
37 #define BOOT_DEVICE_UART        65
38 #define BOOT_DEVICE_USBETH      68
39 #define BOOT_DEVICE_CPGMAC      70
40 #endif
41 #define BOOT_DEVICE_MMC2_2      0xFF
42
43 #if defined(CONFIG_AM33XX)
44 #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
45 #define MMC_BOOT_DEVICES_END   BOOT_DEVICE_MMC2
46 #elif defined(CONFIG_AM43XX)
47 #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
48 #ifdef CONFIG_SPL_USB_SUPPORT
49 #define MMC_BOOT_DEVICES_END   BOOT_DEVICE_USB
50 #else
51 #define MMC_BOOT_DEVICES_END   BOOT_DEVICE_MMC2
52 #endif
53 #elif defined(CONFIG_TI81XX)
54 #define MMC_BOOT_DEVICES_START  BOOT_DEVICE_MMC2
55 #define MMC_BOOT_DEVICES_END    BOOT_DEVICE_MMC1
56 #endif
57 #endif