Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 1 | if ARCH_MVEBU |
| 2 | |
Stefan Roese | 05b1765 | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 3 | config ARMADA_32BIT |
| 4 | bool |
| 5 | select CPU_V7 |
| 6 | select SUPPORT_SPL |
| 7 | select SPL_DM |
| 8 | select SPL_DM_SEQ_ALIAS |
| 9 | select SPL_OF_CONTROL |
| 10 | select SPL_SIMPLE_BUS |
| 11 | |
| 12 | config ARMADA_64BIT |
| 13 | bool |
| 14 | select ARM64 |
| 15 | |
| 16 | # ARMv7 SoCs... |
Stefan Roese | 9106ed0 | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 17 | config ARMADA_375 |
| 18 | bool |
Stefan Roese | 05b1765 | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 19 | select ARMADA_32BIT |
Stefan Roese | 9106ed0 | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 20 | |
Stefan Roese | eb083e5 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 21 | config ARMADA_38X |
| 22 | bool |
Stefan Roese | 05b1765 | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 23 | select ARMADA_32BIT |
Stefan Roese | eb083e5 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 24 | |
| 25 | config ARMADA_XP |
| 26 | bool |
Stefan Roese | 05b1765 | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 27 | select ARMADA_32BIT |
| 28 | |
| 29 | # ARMv8 SoCs... |
| 30 | config ARMADA_3700 |
| 31 | bool |
| 32 | select ARM64 |
Stefan Roese | eb083e5 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 33 | |
Stefan Roese | cb41033 | 2016-05-25 08:13:45 +0200 | [diff] [blame] | 34 | # Armada 7K and 8K are very similar - use only one Kconfig symbol for both |
| 35 | config ARMADA_8K |
| 36 | bool |
| 37 | select ARM64 |
| 38 | |
Chris Packham | 1d49668 | 2016-10-26 14:08:30 +1300 | [diff] [blame^] | 39 | # Armada PLL frequency (used for NAND clock generation) |
| 40 | config SYS_MVEBU_PLL_CLOCK |
| 41 | int |
| 42 | default "2000000000" if ARMADA_XP || ARMADA_3700 || ARMADA_8K |
| 43 | default "1000000000" if ARMADA_38X || ARMADA_375 |
| 44 | |
Stefan Roese | 05b1765 | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 45 | # Armada XP/38x SoC types... |
Phil Sutter | a7f94ad | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 46 | config MV78230 |
| 47 | bool |
| 48 | select ARMADA_XP |
| 49 | |
| 50 | config MV78260 |
| 51 | bool |
| 52 | select ARMADA_XP |
| 53 | |
| 54 | config MV78460 |
| 55 | bool |
| 56 | select ARMADA_XP |
| 57 | |
Chris Packham | f5fc25b | 2016-09-22 12:56:13 +1200 | [diff] [blame] | 58 | config 88F6820 |
Phil Sutter | a7f94ad | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 59 | bool |
| 60 | select ARMADA_38X |
| 61 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 62 | choice |
Stefan Roese | cb41033 | 2016-05-25 08:13:45 +0200 | [diff] [blame] | 63 | prompt "Armada XP/375/38x/3700/7K/8K board select" |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 64 | optional |
| 65 | |
Stefan Roese | 7360640 | 2015-10-20 15:14:47 +0200 | [diff] [blame] | 66 | config TARGET_CLEARFOG |
| 67 | bool "Support ClearFog" |
Chris Packham | f5fc25b | 2016-09-22 12:56:13 +1200 | [diff] [blame] | 68 | select 88F6820 |
Stefan Roese | 7360640 | 2015-10-20 15:14:47 +0200 | [diff] [blame] | 69 | |
Stefan Roese | 6edf27e | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 70 | config TARGET_MVEBU_DB_88F3720 |
| 71 | bool "Support DB-88F3720 Armada 3720" |
| 72 | select ARMADA_3700 |
| 73 | |
Stefan Roese | 9106ed0 | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 74 | config TARGET_DB_88F6720 |
| 75 | bool "Support DB-88F6720 Armada 375" |
| 76 | select ARMADA_375 |
| 77 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 78 | config TARGET_DB_88F6820_GP |
| 79 | bool "Support DB-88F6820-GP" |
Chris Packham | f5fc25b | 2016-09-22 12:56:13 +1200 | [diff] [blame] | 80 | select 88F6820 |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 81 | |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 82 | config TARGET_DB_88F6820_AMC |
| 83 | bool "Support DB-88F6820-AMC" |
| 84 | select 88F6820 |
| 85 | |
Stefan Roese | 7be1b9b | 2016-05-25 08:21:21 +0200 | [diff] [blame] | 86 | config TARGET_MVEBU_DB_88F7040 |
| 87 | bool "Support DB-88F7040 Armada 7040" |
| 88 | select ARMADA_8K |
| 89 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 90 | config TARGET_DB_MV784MP_GP |
| 91 | bool "Support db-mv784mp-gp" |
Phil Sutter | a7f94ad | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 92 | select MV78460 |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 93 | |
Phil Sutter | d76eba6 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 94 | config TARGET_DS414 |
| 95 | bool "Support Synology DS414" |
| 96 | select MV78230 |
| 97 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 98 | config TARGET_MAXBCM |
| 99 | bool "Support maxbcm" |
Phil Sutter | a7f94ad | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 100 | select MV78460 |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 101 | |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 102 | config TARGET_THEADORABLE |
| 103 | bool "Support theadorable Armada XP" |
| 104 | select MV78260 |
| 105 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 106 | endchoice |
| 107 | |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 108 | config SYS_BOARD |
| 109 | default "clearfog" if TARGET_CLEARFOG |
Stefan Roese | 6edf27e | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 110 | default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720 |
Stefan Roese | 9106ed0 | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 111 | default "db-88f6720" if TARGET_DB_88F6720 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 112 | default "db-88f6820-gp" if TARGET_DB_88F6820_GP |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 113 | default "db-88f6820-amc" if TARGET_DB_88F6820_AMC |
Stefan Roese | 7be1b9b | 2016-05-25 08:21:21 +0200 | [diff] [blame] | 114 | default "mvebu_db-88f7040" if TARGET_MVEBU_DB_88F7040 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 115 | default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP |
Phil Sutter | d76eba6 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 116 | default "ds414" if TARGET_DS414 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 117 | default "maxbcm" if TARGET_MAXBCM |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 118 | default "theadorable" if TARGET_THEADORABLE |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 119 | |
| 120 | config SYS_CONFIG_NAME |
| 121 | default "clearfog" if TARGET_CLEARFOG |
Stefan Roese | 6edf27e | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 122 | default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720 |
Stefan Roese | 9106ed0 | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 123 | default "db-88f6720" if TARGET_DB_88F6720 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 124 | default "db-88f6820-gp" if TARGET_DB_88F6820_GP |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 125 | default "db-88f6820-amc" if TARGET_DB_88F6820_AMC |
Stefan Roese | 7be1b9b | 2016-05-25 08:21:21 +0200 | [diff] [blame] | 126 | default "mvebu_db-88f7040" if TARGET_MVEBU_DB_88F7040 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 127 | default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP |
Phil Sutter | d76eba6 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 128 | default "ds414" if TARGET_DS414 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 129 | default "maxbcm" if TARGET_MAXBCM |
Stefan Roese | 459e064 | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 130 | default "theadorable" if TARGET_THEADORABLE |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 131 | |
| 132 | config SYS_VENDOR |
| 133 | default "Marvell" if TARGET_DB_MV784MP_GP |
Stefan Roese | 6edf27e | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 134 | default "Marvell" if TARGET_MVEBU_DB_88F3720 |
Stefan Roese | 9106ed0 | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 135 | default "Marvell" if TARGET_DB_88F6720 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 136 | default "Marvell" if TARGET_DB_88F6820_GP |
Chris Packham | a90dd4c | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 137 | default "Marvell" if TARGET_DB_88F6820_AMC |
Stefan Roese | 7be1b9b | 2016-05-25 08:21:21 +0200 | [diff] [blame] | 138 | default "Marvell" if TARGET_MVEBU_DB_88F7040 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 139 | default "solidrun" if TARGET_CLEARFOG |
Phil Sutter | d76eba6 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 140 | default "Synology" if TARGET_DS414 |
Stefan Roese | b9f41bf | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 141 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 142 | config SYS_SOC |
| 143 | default "mvebu" |
| 144 | |
Stefan Roese | 383e0c1 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 145 | endif |