blob: f005277228227c77b3200e1bfd6e5e8b007b70da [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
11
12config ARMADA_64BIT
13 bool
14 select ARM64
15
16# ARMv7 SoCs...
Stefan Roese9106ed02016-01-29 09:14:54 +010017config ARMADA_375
18 bool
Stefan Roese05b17652016-05-17 15:00:30 +020019 select ARMADA_32BIT
Stefan Roese9106ed02016-01-29 09:14:54 +010020
Stefan Roeseeb083e52015-12-21 13:56:33 +010021config ARMADA_38X
22 bool
Stefan Roese05b17652016-05-17 15:00:30 +020023 select ARMADA_32BIT
Stefan Roeseeb083e52015-12-21 13:56:33 +010024
25config ARMADA_XP
26 bool
Stefan Roese05b17652016-05-17 15:00:30 +020027 select ARMADA_32BIT
28
29# ARMv8 SoCs...
30config ARMADA_3700
31 bool
32 select ARM64
Stefan Roeseeb083e52015-12-21 13:56:33 +010033
Stefan Roesecb410332016-05-25 08:13:45 +020034# Armada 7K and 8K are very similar - use only one Kconfig symbol for both
35config ARMADA_8K
36 bool
37 select ARM64
38
Chris Packham1d496682016-10-26 14:08:30 +130039# Armada PLL frequency (used for NAND clock generation)
40config 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 Roese05b17652016-05-17 15:00:30 +020045# Armada XP/38x SoC types...
Phil Suttera7f94ad2015-12-25 14:41:22 +010046config MV78230
47 bool
48 select ARMADA_XP
49
50config MV78260
51 bool
52 select ARMADA_XP
53
54config MV78460
55 bool
56 select ARMADA_XP
57
Chris Packhamf5fc25b2016-09-22 12:56:13 +120058config 88F6820
Phil Suttera7f94ad2015-12-25 14:41:22 +010059 bool
60 select ARMADA_38X
61
Stefan Roese383e0c12015-08-25 13:18:38 +020062choice
Stefan Roesecb410332016-05-25 08:13:45 +020063 prompt "Armada XP/375/38x/3700/7K/8K board select"
Stefan Roese383e0c12015-08-25 13:18:38 +020064 optional
65
Stefan Roese73606402015-10-20 15:14:47 +020066config TARGET_CLEARFOG
67 bool "Support ClearFog"
Chris Packhamf5fc25b2016-09-22 12:56:13 +120068 select 88F6820
Stefan Roese73606402015-10-20 15:14:47 +020069
Stefan Roese6edf27e2016-05-17 15:04:16 +020070config TARGET_MVEBU_DB_88F3720
71 bool "Support DB-88F3720 Armada 3720"
72 select ARMADA_3700
73
Stefan Roese9106ed02016-01-29 09:14:54 +010074config TARGET_DB_88F6720
75 bool "Support DB-88F6720 Armada 375"
76 select ARMADA_375
77
Stefan Roese383e0c12015-08-25 13:18:38 +020078config TARGET_DB_88F6820_GP
79 bool "Support DB-88F6820-GP"
Chris Packhamf5fc25b2016-09-22 12:56:13 +120080 select 88F6820
Stefan Roese383e0c12015-08-25 13:18:38 +020081
Chris Packhama90dd4c2016-09-22 12:56:14 +120082config TARGET_DB_88F6820_AMC
83 bool "Support DB-88F6820-AMC"
84 select 88F6820
85
Stefan Roese5c806f12016-10-25 10:56:19 +020086config TARGET_MVEBU_ARMADA_8K
87 bool "Support Armada 7k/8k platforms"
Stefan Roese7be1b9b2016-05-25 08:21:21 +020088 select ARMADA_8K
Tom Rini22d567e2017-01-22 19:43:11 -050089 select BOARD_LATE_INIT
Stefan Roese7be1b9b2016-05-25 08:21:21 +020090
Stefan Roese383e0c12015-08-25 13:18:38 +020091config TARGET_DB_MV784MP_GP
92 bool "Support db-mv784mp-gp"
Phil Suttera7f94ad2015-12-25 14:41:22 +010093 select MV78460
Stefan Roese383e0c12015-08-25 13:18:38 +020094
Phil Sutterd76eba62015-12-25 14:41:25 +010095config TARGET_DS414
96 bool "Support Synology DS414"
97 select MV78230
98
Stefan Roese383e0c12015-08-25 13:18:38 +020099config TARGET_MAXBCM
100 bool "Support maxbcm"
Phil Suttera7f94ad2015-12-25 14:41:22 +0100101 select MV78460
Stefan Roese383e0c12015-08-25 13:18:38 +0200102
Stefan Roese459e0642016-01-20 08:13:29 +0100103config TARGET_THEADORABLE
104 bool "Support theadorable Armada XP"
Tom Rini22d567e2017-01-22 19:43:11 -0500105 select BOARD_LATE_INIT if USB
Stefan Roese459e0642016-01-20 08:13:29 +0100106 select MV78260
107
Stefan Roese383e0c12015-08-25 13:18:38 +0200108endchoice
109
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100110config SYS_BOARD
111 default "clearfog" if TARGET_CLEARFOG
Stefan Roese6edf27e2016-05-17 15:04:16 +0200112 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100113 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100114 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200115 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200116 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100117 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutterd76eba62015-12-25 14:41:25 +0100118 default "ds414" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100119 default "maxbcm" if TARGET_MAXBCM
Stefan Roese459e0642016-01-20 08:13:29 +0100120 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100121
122config SYS_CONFIG_NAME
123 default "clearfog" if TARGET_CLEARFOG
Stefan Roese6edf27e2016-05-17 15:04:16 +0200124 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100125 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100126 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200127 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200128 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100129 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutterd76eba62015-12-25 14:41:25 +0100130 default "ds414" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100131 default "maxbcm" if TARGET_MAXBCM
Stefan Roese459e0642016-01-20 08:13:29 +0100132 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100133
134config SYS_VENDOR
135 default "Marvell" if TARGET_DB_MV784MP_GP
Stefan Roese6edf27e2016-05-17 15:04:16 +0200136 default "Marvell" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100137 default "Marvell" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100138 default "Marvell" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200139 default "Marvell" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200140 default "Marvell" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100141 default "solidrun" if TARGET_CLEARFOG
Phil Sutterd76eba62015-12-25 14:41:25 +0100142 default "Synology" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100143
Stefan Roese383e0c12015-08-25 13:18:38 +0200144config SYS_SOC
145 default "mvebu"
146
Stefan Roese383e0c12015-08-25 13:18:38 +0200147endif