blob: e0232b4c96b281eeb0f7dd346d63197fe6564dbb [file] [log] [blame]
Stefan Roesec3d89142015-08-25 13:18:38 +02001if ARCH_MVEBU
2
Stefan Roesef61aefc2016-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 Glassa5d67542017-01-23 13:31:20 -070011 select BOARD_EARLY_INIT_F
Stefan Roesef61aefc2016-05-17 15:00:30 +020012
13config ARMADA_64BIT
14 bool
15 select ARM64
16
17# ARMv7 SoCs...
Stefan Roese606576d2016-01-29 09:14:54 +010018config ARMADA_375
19 bool
Stefan Roesef61aefc2016-05-17 15:00:30 +020020 select ARMADA_32BIT
Stefan Roese606576d2016-01-29 09:14:54 +010021
Stefan Roese81e33f42015-12-21 13:56:33 +010022config ARMADA_38X
23 bool
Stefan Roesef61aefc2016-05-17 15:00:30 +020024 select ARMADA_32BIT
Stefan Roese81e33f42015-12-21 13:56:33 +010025
26config ARMADA_XP
27 bool
Stefan Roesef61aefc2016-05-17 15:00:30 +020028 select ARMADA_32BIT
Stefan Roese81e33f42015-12-21 13:56:33 +010029
Stefan Roesef61aefc2016-05-17 15:00:30 +020030# ARMv8 SoCs...
31config ARMADA_3700
32 bool
33 select ARM64
34
Stefan Roese21b29fc2016-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 Packhama53d97a2016-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 Roesef61aefc2016-05-17 15:00:30 +020046# Armada XP/38x SoC types...
Phil Sutter42902522015-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 Packham53d601f2016-09-22 12:56:13 +120059config 88F6820
Phil Sutter42902522015-12-25 14:41:22 +010060 bool
61 select ARMADA_38X
62
Stefan Roesec3d89142015-08-25 13:18:38 +020063choice
Stefan Roese21b29fc2016-05-25 08:13:45 +020064 prompt "Armada XP/375/38x/3700/7K/8K board select"
Stefan Roesec3d89142015-08-25 13:18:38 +020065 optional
66
Stefan Roese0299c902015-10-20 15:14:47 +020067config TARGET_CLEARFOG
68 bool "Support ClearFog"
Chris Packham53d601f2016-09-22 12:56:13 +120069 select 88F6820
Stefan Roese0299c902015-10-20 15:14:47 +020070
Stefan Roese01e62c72016-05-17 15:04:16 +020071config TARGET_MVEBU_DB_88F3720
72 bool "Support DB-88F3720 Armada 3720"
73 select ARMADA_3700
74
Stefan Roese606576d2016-01-29 09:14:54 +010075config TARGET_DB_88F6720
76 bool "Support DB-88F6720 Armada 375"
77 select ARMADA_375
78
Stefan Roesec3d89142015-08-25 13:18:38 +020079config TARGET_DB_88F6820_GP
80 bool "Support DB-88F6820-GP"
Chris Packham53d601f2016-09-22 12:56:13 +120081 select 88F6820
Stefan Roesec3d89142015-08-25 13:18:38 +020082
Chris Packhamc0def242016-09-22 12:56:14 +120083config TARGET_DB_88F6820_AMC
84 bool "Support DB-88F6820-AMC"
85 select 88F6820
86
Stefan Roese633fa0e2016-10-25 10:56:19 +020087config TARGET_MVEBU_ARMADA_8K
88 bool "Support Armada 7k/8k platforms"
Stefan Roese6f8c2d42016-05-25 08:21:21 +020089 select ARMADA_8K
Tom Rinie5ec4812017-01-22 19:43:11 -050090 select BOARD_LATE_INIT
Stefan Roese6f8c2d42016-05-25 08:21:21 +020091
Stefan Roesec3d89142015-08-25 13:18:38 +020092config TARGET_DB_MV784MP_GP
93 bool "Support db-mv784mp-gp"
Phil Sutter42902522015-12-25 14:41:22 +010094 select MV78460
Stefan Roesec3d89142015-08-25 13:18:38 +020095
Phil Sutteraefb8f42015-12-25 14:41:25 +010096config TARGET_DS414
97 bool "Support Synology DS414"
98 select MV78230
99
Stefan Roesec3d89142015-08-25 13:18:38 +0200100config TARGET_MAXBCM
101 bool "Support maxbcm"
Phil Sutter42902522015-12-25 14:41:22 +0100102 select MV78460
Stefan Roesec3d89142015-08-25 13:18:38 +0200103
Stefan Roeseb20c38a2016-01-20 08:13:29 +0100104config TARGET_THEADORABLE
105 bool "Support theadorable Armada XP"
Tom Rinie5ec4812017-01-22 19:43:11 -0500106 select BOARD_LATE_INIT if USB
Stefan Roeseb20c38a2016-01-20 08:13:29 +0100107 select MV78260
108
Stefan Roesec3d89142015-08-25 13:18:38 +0200109endchoice
110
Stefan Roeseb322c832015-12-21 13:40:37 +0100111config SYS_BOARD
112 default "clearfog" if TARGET_CLEARFOG
Stefan Roese01e62c72016-05-17 15:04:16 +0200113 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese606576d2016-01-29 09:14:54 +0100114 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb322c832015-12-21 13:40:37 +0100115 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhamc0def242016-09-22 12:56:14 +1200116 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese633fa0e2016-10-25 10:56:19 +0200117 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb322c832015-12-21 13:40:37 +0100118 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutteraefb8f42015-12-25 14:41:25 +0100119 default "ds414" if TARGET_DS414
Stefan Roeseb322c832015-12-21 13:40:37 +0100120 default "maxbcm" if TARGET_MAXBCM
Stefan Roeseb20c38a2016-01-20 08:13:29 +0100121 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb322c832015-12-21 13:40:37 +0100122
123config SYS_CONFIG_NAME
124 default "clearfog" if TARGET_CLEARFOG
Stefan Roese01e62c72016-05-17 15:04:16 +0200125 default "mvebu_db-88f3720" if TARGET_MVEBU_DB_88F3720
Stefan Roese606576d2016-01-29 09:14:54 +0100126 default "db-88f6720" if TARGET_DB_88F6720
Stefan Roeseb322c832015-12-21 13:40:37 +0100127 default "db-88f6820-gp" if TARGET_DB_88F6820_GP
Chris Packhamc0def242016-09-22 12:56:14 +1200128 default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
Stefan Roese633fa0e2016-10-25 10:56:19 +0200129 default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb322c832015-12-21 13:40:37 +0100130 default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
Phil Sutteraefb8f42015-12-25 14:41:25 +0100131 default "ds414" if TARGET_DS414
Stefan Roeseb322c832015-12-21 13:40:37 +0100132 default "maxbcm" if TARGET_MAXBCM
Stefan Roeseb20c38a2016-01-20 08:13:29 +0100133 default "theadorable" if TARGET_THEADORABLE
Stefan Roeseb322c832015-12-21 13:40:37 +0100134
135config SYS_VENDOR
136 default "Marvell" if TARGET_DB_MV784MP_GP
Stefan Roese01e62c72016-05-17 15:04:16 +0200137 default "Marvell" if TARGET_MVEBU_DB_88F3720
Stefan Roese606576d2016-01-29 09:14:54 +0100138 default "Marvell" if TARGET_DB_88F6720
Stefan Roeseb322c832015-12-21 13:40:37 +0100139 default "Marvell" if TARGET_DB_88F6820_GP
Chris Packhamc0def242016-09-22 12:56:14 +1200140 default "Marvell" if TARGET_DB_88F6820_AMC
Stefan Roese633fa0e2016-10-25 10:56:19 +0200141 default "Marvell" if TARGET_MVEBU_ARMADA_8K
Stefan Roeseb322c832015-12-21 13:40:37 +0100142 default "solidrun" if TARGET_CLEARFOG
Phil Sutteraefb8f42015-12-25 14:41:25 +0100143 default "Synology" if TARGET_DS414
Stefan Roeseb322c832015-12-21 13:40:37 +0100144
Stefan Roesec3d89142015-08-25 13:18:38 +0200145config SYS_SOC
146 default "mvebu"
147
Stefan Roesec3d89142015-08-25 13:18:38 +0200148endif