Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 1 | if ARCH_MVEBU |
2 | |||||
Stefan Roese | f61aefc | 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 | ||||
Simon Glass | a5d6754 | 2017-01-23 13:31:20 -0700 | [diff] [blame^] | 11 | select BOARD_EARLY_INIT_F |
Stefan Roese | f61aefc | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 12 | |
13 | config ARMADA_64BIT | ||||
14 | bool | ||||
15 | select ARM64 | ||||
16 | |||||
17 | # ARMv7 SoCs... | ||||
Stefan Roese | 606576d | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 18 | config ARMADA_375 |
19 | bool | ||||
Stefan Roese | f61aefc | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 20 | select ARMADA_32BIT |
Stefan Roese | 606576d | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 21 | |
Stefan Roese | 81e33f4 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 22 | config ARMADA_38X |
23 | bool | ||||
Stefan Roese | f61aefc | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 24 | select ARMADA_32BIT |
Stefan Roese | 81e33f4 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 25 | |
26 | config ARMADA_XP | ||||
27 | bool | ||||
Stefan Roese | f61aefc | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 28 | select ARMADA_32BIT |
Stefan Roese | 81e33f4 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 29 | |
Stefan Roese | f61aefc | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 30 | # ARMv8 SoCs... |
31 | config ARMADA_3700 | ||||
32 | bool | ||||
33 | select ARM64 | ||||
34 | |||||
Stefan Roese | 21b29fc | 2016-05-25 08:13:45 +0200 | [diff] [blame] | 35 | # Armada 7K and 8K are very similar - use only one Kconfig symbol for both |
36 | config ARMADA_8K | ||||
37 | bool | ||||
38 | select ARM64 | ||||
39 | |||||
Chris Packham | a53d97a | 2016-10-26 14:08:30 +1300 | [diff] [blame] | 40 | # Armada PLL frequency (used for NAND clock generation) |
41 | config SYS_MVEBU_PLL_CLOCK | ||||
42 | int | ||||
43 | default "2000000000" if ARMADA_XP || ARMADA_3700 || ARMADA_8K | ||||
44 | default "1000000000" if ARMADA_38X || ARMADA_375 | ||||
45 | |||||
Stefan Roese | f61aefc | 2016-05-17 15:00:30 +0200 | [diff] [blame] | 46 | # Armada XP/38x SoC types... |
Phil Sutter | 4290252 | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 47 | config MV78230 |
48 | bool | ||||
49 | select ARMADA_XP | ||||
50 | |||||
51 | config MV78260 | ||||
52 | bool | ||||
53 | select ARMADA_XP | ||||
54 | |||||
55 | config MV78460 | ||||
56 | bool | ||||
57 | select ARMADA_XP | ||||
58 | |||||
Chris Packham | 53d601f | 2016-09-22 12:56:13 +1200 | [diff] [blame] | 59 | config 88F6820 |
Phil Sutter | 4290252 | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 60 | bool |
61 | select ARMADA_38X | ||||
62 | |||||
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 63 | choice |
Stefan Roese | 21b29fc | 2016-05-25 08:13:45 +0200 | [diff] [blame] | 64 | prompt "Armada XP/375/38x/3700/7K/8K board select" |
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 65 | optional |
66 | |||||
Stefan Roese | 0299c90 | 2015-10-20 15:14:47 +0200 | [diff] [blame] | 67 | config TARGET_CLEARFOG |
68 | bool "Support ClearFog" | ||||
Chris Packham | 53d601f | 2016-09-22 12:56:13 +1200 | [diff] [blame] | 69 | select 88F6820 |
Stefan Roese | 0299c90 | 2015-10-20 15:14:47 +0200 | [diff] [blame] | 70 | |
Stefan Roese | 01e62c7 | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 71 | config TARGET_MVEBU_DB_88F3720 |
72 | bool "Support DB-88F3720 Armada 3720" | ||||
73 | select ARMADA_3700 | ||||
74 | |||||
Stefan Roese | 606576d | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 75 | config TARGET_DB_88F6720 |
76 | bool "Support DB-88F6720 Armada 375" | ||||
77 | select ARMADA_375 | ||||
78 | |||||
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 79 | config TARGET_DB_88F6820_GP |
80 | bool "Support DB-88F6820-GP" | ||||
Chris Packham | 53d601f | 2016-09-22 12:56:13 +1200 | [diff] [blame] | 81 | select 88F6820 |
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 82 | |
Chris Packham | c0def24 | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 83 | config TARGET_DB_88F6820_AMC |
84 | bool "Support DB-88F6820-AMC" | ||||
85 | select 88F6820 | ||||
86 | |||||
Stefan Roese | 633fa0e | 2016-10-25 10:56:19 +0200 | [diff] [blame] | 87 | config TARGET_MVEBU_ARMADA_8K |
88 | bool "Support Armada 7k/8k platforms" | ||||
Stefan Roese | 6f8c2d4 | 2016-05-25 08:21:21 +0200 | [diff] [blame] | 89 | select ARMADA_8K |
Tom Rini | e5ec481 | 2017-01-22 19:43:11 -0500 | [diff] [blame] | 90 | select BOARD_LATE_INIT |
Stefan Roese | 6f8c2d4 | 2016-05-25 08:21:21 +0200 | [diff] [blame] | 91 | |
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 92 | config TARGET_DB_MV784MP_GP |
93 | bool "Support db-mv784mp-gp" | ||||
Phil Sutter | 4290252 | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 94 | select MV78460 |
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 95 | |
Phil Sutter | aefb8f4 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 96 | config TARGET_DS414 |
97 | bool "Support Synology DS414" | ||||
98 | select MV78230 | ||||
99 | |||||
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 100 | config TARGET_MAXBCM |
101 | bool "Support maxbcm" | ||||
Phil Sutter | 4290252 | 2015-12-25 14:41:22 +0100 | [diff] [blame] | 102 | select MV78460 |
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 103 | |
Stefan Roese | b20c38a | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 104 | config TARGET_THEADORABLE |
105 | bool "Support theadorable Armada XP" | ||||
Tom Rini | e5ec481 | 2017-01-22 19:43:11 -0500 | [diff] [blame] | 106 | select BOARD_LATE_INIT if USB |
Stefan Roese | b20c38a | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 107 | select MV78260 |
108 | |||||
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 109 | endchoice |
110 | |||||
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 111 | config SYS_BOARD |
112 | default "clearfog" if TARGET_CLEARFOG | ||||
Stefan Roese | 01e62c7 | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 113 | default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720 |
Stefan Roese | 606576d | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 114 | default "db-88f6720" if TARGET_DB_88F6720 |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 115 | default "db-88f6820-gp" if TARGET_DB_88F6820_GP |
Chris Packham | c0def24 | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 116 | default "db-88f6820-amc" if TARGET_DB_88F6820_AMC |
Stefan Roese | 633fa0e | 2016-10-25 10:56:19 +0200 | [diff] [blame] | 117 | default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 118 | default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP |
Phil Sutter | aefb8f4 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 119 | default "ds414" if TARGET_DS414 |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 120 | default "maxbcm" if TARGET_MAXBCM |
Stefan Roese | b20c38a | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 121 | default "theadorable" if TARGET_THEADORABLE |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 122 | |
123 | config SYS_CONFIG_NAME | ||||
124 | default "clearfog" if TARGET_CLEARFOG | ||||
Stefan Roese | 01e62c7 | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 125 | default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720 |
Stefan Roese | 606576d | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 126 | default "db-88f6720" if TARGET_DB_88F6720 |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 127 | default "db-88f6820-gp" if TARGET_DB_88F6820_GP |
Chris Packham | c0def24 | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 128 | default "db-88f6820-amc" if TARGET_DB_88F6820_AMC |
Stefan Roese | 633fa0e | 2016-10-25 10:56:19 +0200 | [diff] [blame] | 129 | default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 130 | default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP |
Phil Sutter | aefb8f4 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 131 | default "ds414" if TARGET_DS414 |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 132 | default "maxbcm" if TARGET_MAXBCM |
Stefan Roese | b20c38a | 2016-01-20 08:13:29 +0100 | [diff] [blame] | 133 | default "theadorable" if TARGET_THEADORABLE |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 134 | |
135 | config SYS_VENDOR | ||||
136 | default "Marvell" if TARGET_DB_MV784MP_GP | ||||
Stefan Roese | 01e62c7 | 2016-05-17 15:04:16 +0200 | [diff] [blame] | 137 | default "Marvell" if TARGET_MVEBU_DB_88F3720 |
Stefan Roese | 606576d | 2016-01-29 09:14:54 +0100 | [diff] [blame] | 138 | default "Marvell" if TARGET_DB_88F6720 |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 139 | default "Marvell" if TARGET_DB_88F6820_GP |
Chris Packham | c0def24 | 2016-09-22 12:56:14 +1200 | [diff] [blame] | 140 | default "Marvell" if TARGET_DB_88F6820_AMC |
Stefan Roese | 633fa0e | 2016-10-25 10:56:19 +0200 | [diff] [blame] | 141 | default "Marvell" if TARGET_MVEBU_ARMADA_8K |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 142 | default "solidrun" if TARGET_CLEARFOG |
Phil Sutter | aefb8f4 | 2015-12-25 14:41:25 +0100 | [diff] [blame] | 143 | default "Synology" if TARGET_DS414 |
Stefan Roese | b322c83 | 2015-12-21 13:40:37 +0100 | [diff] [blame] | 144 | |
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 145 | config SYS_SOC |
146 | default "mvebu" | ||||
147 | |||||
Stefan Roese | c3d8914 | 2015-08-25 13:18:38 +0200 | [diff] [blame] | 148 | endif |