blob: e0232b4c96b281eeb0f7dd346d63197fe6564dbb [file] [log] [blame]
Stefan Roese383e0c12015-08-25 13:18:38 +02001if ARCH_MVEBU
2
Stefan Roese05b17652016-05-17 15:00:30 +02003config 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 Glass7a99a872017-01-23 13:31:20 -070011 select BOARD_EARLY_INIT_F
Stefan Roese05b17652016-05-17 15:00:30 +020012
13config ARMADA_64BIT
14 bool
15 select ARM64
16
17# ARMv7 SoCs...
Stefan Roese9106ed02016-01-29 09:14:54 +010018config ARMADA_375
19 bool
Stefan Roese05b17652016-05-17 15:00:30 +020020 select ARMADA_32BIT
Stefan Roese9106ed02016-01-29 09:14:54 +010021
Stefan Roeseeb083e52015-12-21 13:56:33 +010022config ARMADA_38X
23 bool
Stefan Roese05b17652016-05-17 15:00:30 +020024 select ARMADA_32BIT
Stefan Roeseeb083e52015-12-21 13:56:33 +010025
26config ARMADA_XP
27 bool
Stefan Roese05b17652016-05-17 15:00:30 +020028 select ARMADA_32BIT
29
30# ARMv8 SoCs...
31config ARMADA_3700
32 bool
33 select ARM64
Stefan Roeseeb083e52015-12-21 13:56:33 +010034
Stefan Roesecb410332016-05-25 08:13:45 +020035# Armada 7K and 8K are very similar - use only one Kconfig symbol for both
36config ARMADA_8K
37 bool
38 select ARM64
39
Chris Packham1d496682016-10-26 14:08:30 +130040# Armada PLL frequency (used for NAND clock generation)
41config 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 Roese05b17652016-05-17 15:00:30 +020046# Armada XP/38x SoC types...
Phil Suttera7f94ad2015-12-25 14:41:22 +010047config MV78230
48 bool
49 select ARMADA_XP
50
51config MV78260
52 bool
53 select ARMADA_XP
54
55config MV78460
56 bool
57 select ARMADA_XP
58
Chris Packhamf5fc25b2016-09-22 12:56:13 +120059config 88F6820
Phil Suttera7f94ad2015-12-25 14:41:22 +010060 bool
61 select ARMADA_38X
62
Stefan Roese383e0c12015-08-25 13:18:38 +020063choice
Stefan Roesecb410332016-05-25 08:13:45 +020064 prompt "Armada XP/375/38x/3700/7K/8K board select"
Stefan Roese383e0c12015-08-25 13:18:38 +020065 optional
66
Stefan Roese73606402015-10-20 15:14:47 +020067config TARGET_CLEARFOG
68 bool "Support ClearFog"
Chris Packhamf5fc25b2016-09-22 12:56:13 +120069 select 88F6820
Stefan Roese73606402015-10-20 15:14:47 +020070
Stefan Roese6edf27e2016-05-17 15:04:16 +020071config TARGET_MVEBU_DB_88F3720
72 bool "Support DB-88F3720 Armada 3720"
73 select ARMADA_3700
74
Stefan Roese9106ed02016-01-29 09:14:54 +010075config TARGET_DB_88F6720
76 bool "Support DB-88F6720 Armada 375"
77 select ARMADA_375
78
Stefan Roese383e0c12015-08-25 13:18:38 +020079config TARGET_DB_88F6820_GP
80 bool "Support DB-88F6820-GP"
Chris Packhamf5fc25b2016-09-22 12:56:13 +120081 select 88F6820
Stefan Roese383e0c12015-08-25 13:18:38 +020082
Chris Packhama90dd4c2016-09-22 12:56:14 +120083config TARGET_DB_88F6820_AMC
84 bool "Support DB-88F6820-AMC"
85 select 88F6820
86
Stefan Roese5c806f12016-10-25 10:56:19 +020087config TARGET_MVEBU_ARMADA_8K
88 bool "Support Armada 7k/8k platforms"
Stefan Roese7be1b9b2016-05-25 08:21:21 +020089 select ARMADA_8K
Tom Rini22d567e2017-01-22 19:43:11 -050090 select BOARD_LATE_INIT
Stefan Roese7be1b9b2016-05-25 08:21:21 +020091
Stefan Roese383e0c12015-08-25 13:18:38 +020092config TARGET_DB_MV784MP_GP
93 bool "Support db-mv784mp-gp"
Phil Suttera7f94ad2015-12-25 14:41:22 +010094 select MV78460
Stefan Roese383e0c12015-08-25 13:18:38 +020095
Phil Sutterd76eba62015-12-25 14:41:25 +010096config TARGET_DS414
97 bool "Support Synology DS414"
98 select MV78230
99
Stefan Roese383e0c12015-08-25 13:18:38 +0200100config TARGET_MAXBCM
101 bool "Support maxbcm"
Phil Suttera7f94ad2015-12-25 14:41:22 +0100102 select MV78460
Stefan Roese383e0c12015-08-25 13:18:38 +0200103
Stefan Roese459e0642016-01-20 08:13:29 +0100104config TARGET_THEADORABLE
105 bool "Support theadorable Armada XP"
Tom Rini22d567e2017-01-22 19:43:11 -0500106 select BOARD_LATE_INIT if USB
Stefan Roese459e0642016-01-20 08:13:29 +0100107 select MV78260
108
Stefan Roese383e0c12015-08-25 13:18:38 +0200109endchoice
110
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100111config SYS_BOARD
112 default "clearfog" if TARGET_CLEARFOG
Stefan Roese6edf27e2016-05-17 15:04:16 +0200113 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100114 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100115 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200116 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200117 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100118 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutterd76eba62015-12-25 14:41:25 +0100119 default "ds414" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100120 default "maxbcm" if TARGET_MAXBCM
Stefan Roese459e0642016-01-20 08:13:29 +0100121 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100122
123config SYS_CONFIG_NAME
124 default "clearfog" if TARGET_CLEARFOG
Stefan Roese6edf27e2016-05-17 15:04:16 +0200125 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100126 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100127 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200128 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200129 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100130 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutterd76eba62015-12-25 14:41:25 +0100131 default "ds414" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100132 default "maxbcm" if TARGET_MAXBCM
Stefan Roese459e0642016-01-20 08:13:29 +0100133 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100134
135config SYS_VENDOR
136 default "Marvell" if TARGET_DB_MV784MP_GP
Stefan Roese6edf27e2016-05-17 15:04:16 +0200137 default "Marvell" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100138 default "Marvell" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100139 default "Marvell" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200140 default "Marvell" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200141 default "Marvell" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100142 default "solidrun" if TARGET_CLEARFOG
Phil Sutterd76eba62015-12-25 14:41:25 +0100143 default "Synology" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100144
Stefan Roese383e0c12015-08-25 13:18:38 +0200145config SYS_SOC
146 default "mvebu"
147
Stefan Roese383e0c12015-08-25 13:18:38 +0200148endif