blob: 40476dc421db03d11850edfa7c2f818621eb477a [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
89
Stefan Roese383e0c12015-08-25 13:18:38 +020090config TARGET_DB_MV784MP_GP
91 bool "Support db-mv784mp-gp"
Phil Suttera7f94ad2015-12-25 14:41:22 +010092 select MV78460
Stefan Roese383e0c12015-08-25 13:18:38 +020093
Phil Sutterd76eba62015-12-25 14:41:25 +010094config TARGET_DS414
95 bool "Support Synology DS414"
96 select MV78230
97
Stefan Roese383e0c12015-08-25 13:18:38 +020098config TARGET_MAXBCM
99 bool "Support maxbcm"
Phil Suttera7f94ad2015-12-25 14:41:22 +0100100 select MV78460
Stefan Roese383e0c12015-08-25 13:18:38 +0200101
Stefan Roese459e0642016-01-20 08:13:29 +0100102config TARGET_THEADORABLE
103 bool "Support theadorable Armada XP"
104 select MV78260
105
Stefan Roese383e0c12015-08-25 13:18:38 +0200106endchoice
107
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100108config SYS_BOARD
109 default "clearfog" if TARGET_CLEARFOG
Stefan Roese6edf27e2016-05-17 15:04:16 +0200110 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100111 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100112 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200113 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200114 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100115 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutterd76eba62015-12-25 14:41:25 +0100116 default "ds414" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100117 default "maxbcm" if TARGET_MAXBCM
Stefan Roese459e0642016-01-20 08:13:29 +0100118 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100119
120config SYS_CONFIG_NAME
121 default "clearfog" if TARGET_CLEARFOG
Stefan Roese6edf27e2016-05-17 15:04:16 +0200122 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100123 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100124 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200125 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200126 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100127 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutterd76eba62015-12-25 14:41:25 +0100128 default "ds414" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100129 default "maxbcm" if TARGET_MAXBCM
Stefan Roese459e0642016-01-20 08:13:29 +0100130 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100131
132config SYS_VENDOR
133 default "Marvell" if TARGET_DB_MV784MP_GP
Stefan Roese6edf27e2016-05-17 15:04:16 +0200134 default "Marvell" if TARGET_MVEBU_DB_88F3720
Stefan Roese9106ed02016-01-29 09:14:54 +0100135 default "Marvell" if TARGET_DB_88F6720
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100136 default "Marvell" if TARGET_DB_88F6820_GP
Chris Packhama90dd4c2016-09-22 12:56:14 +1200137 default "Marvell" if TARGET_DB_88F6820_AMC
Stefan Roese5c806f12016-10-25 10:56:19 +0200138 default "Marvell" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100139 default "solidrun" if TARGET_CLEARFOG
Phil Sutterd76eba62015-12-25 14:41:25 +0100140 default "Synology" if TARGET_DS414
Stefan Roeseb9f41bf2015-12-21 13:40:37 +0100141
Stefan Roese383e0c12015-08-25 13:18:38 +0200142config SYS_SOC
143 default "mvebu"
144
Stefan Roese383e0c12015-08-25 13:18:38 +0200145endif