diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-12-18 08:12:02 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-22 14:18:51 -0500 |
commit | cd746249b775cebda7c8071815a9ee3b84dfab88 (patch) | |
tree | 516c11b1a85363b845a0baf55f170f6ea3e75c45 /arch/mips/Kconfig | |
parent | 6465460c92a856f78e1f1b950f9d304ec2661e5a (diff) |
MIPS: BMIPS: merge CPU options into one option
Instead of treating each flavour as an exclusive CPU to select, make
BMIPS the only option and let SYS_HAS_CPU_BMIPS* decide for which
flavours to include support.
Run tested on BMIPS3300 and BMIPS4350, only build tested for BMIPS4380
and BMIPS5000.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6240/
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index c12d9c807d09..1c0d68391560 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1379,41 +1379,21 @@ config CPU_CAVIUM_OCTEON | |||
1379 | can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets. | 1379 | can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets. |
1380 | Full details can be found at http://www.caviumnetworks.com. | 1380 | Full details can be found at http://www.caviumnetworks.com. |
1381 | 1381 | ||
1382 | config CPU_BMIPS3300 | 1382 | config CPU_BMIPS |
1383 | bool "BMIPS3300" | 1383 | bool "Broadcom BMIPS" |
1384 | depends on SYS_HAS_CPU_BMIPS3300 | 1384 | depends on SYS_HAS_CPU_BMIPS |
1385 | select CPU_BMIPS | 1385 | select CPU_MIPS32 |
1386 | help | 1386 | select CPU_BMIPS3300 if SYS_HAS_CPU_BMIPS3300 |
1387 | Broadcom BMIPS3300 processors. | 1387 | select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350 |
1388 | 1388 | select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380 | |
1389 | config CPU_BMIPS4350 | 1389 | select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000 |
1390 | bool "BMIPS4350" | 1390 | select CPU_SUPPORTS_32BIT_KERNEL |
1391 | depends on SYS_HAS_CPU_BMIPS4350 | 1391 | select DMA_NONCOHERENT |
1392 | select CPU_BMIPS | 1392 | select IRQ_CPU |
1393 | select SYS_SUPPORTS_SMP | 1393 | select SWAP_IO_SPACE |
1394 | select SYS_SUPPORTS_HOTPLUG_CPU | 1394 | select WEAK_ORDERING |
1395 | help | ||
1396 | Broadcom BMIPS4350 ("VIPER") processors. | ||
1397 | |||
1398 | config CPU_BMIPS4380 | ||
1399 | bool "BMIPS4380" | ||
1400 | depends on SYS_HAS_CPU_BMIPS4380 | ||
1401 | select CPU_BMIPS | ||
1402 | select SYS_SUPPORTS_SMP | ||
1403 | select SYS_SUPPORTS_HOTPLUG_CPU | ||
1404 | help | ||
1405 | Broadcom BMIPS4380 processors. | ||
1406 | |||
1407 | config CPU_BMIPS5000 | ||
1408 | bool "BMIPS5000" | ||
1409 | depends on SYS_HAS_CPU_BMIPS5000 | ||
1410 | select CPU_BMIPS | ||
1411 | select CPU_SUPPORTS_HIGHMEM | ||
1412 | select MIPS_CPU_SCACHE | ||
1413 | select SYS_SUPPORTS_SMP | ||
1414 | select SYS_SUPPORTS_HOTPLUG_CPU | ||
1415 | help | 1395 | help |
1416 | Broadcom BMIPS5000 processors. | 1396 | Support for BMIPS3300/4350/4380 and BMIPS5000 processors. |
1417 | 1397 | ||
1418 | config CPU_XLR | 1398 | config CPU_XLR |
1419 | bool "Netlogic XLR SoC" | 1399 | bool "Netlogic XLR SoC" |
@@ -1496,14 +1476,25 @@ config CPU_LOONGSON1 | |||
1496 | select CPU_SUPPORTS_32BIT_KERNEL | 1476 | select CPU_SUPPORTS_32BIT_KERNEL |
1497 | select CPU_SUPPORTS_HIGHMEM | 1477 | select CPU_SUPPORTS_HIGHMEM |
1498 | 1478 | ||
1499 | config CPU_BMIPS | 1479 | config CPU_BMIPS3300 |
1500 | bool | 1480 | bool |
1501 | select CPU_MIPS32 | 1481 | |
1502 | select CPU_SUPPORTS_32BIT_KERNEL | 1482 | config CPU_BMIPS4350 |
1503 | select DMA_NONCOHERENT | 1483 | bool |
1504 | select IRQ_CPU | 1484 | select SYS_SUPPORTS_SMP |
1505 | select SWAP_IO_SPACE | 1485 | select SYS_SUPPORTS_HOTPLUG_CPU |
1506 | select WEAK_ORDERING | 1486 | |
1487 | config CPU_BMIPS4380 | ||
1488 | bool | ||
1489 | select SYS_SUPPORTS_SMP | ||
1490 | select SYS_SUPPORTS_HOTPLUG_CPU | ||
1491 | |||
1492 | config CPU_BMIPS5000 | ||
1493 | bool | ||
1494 | select CPU_SUPPORTS_HIGHMEM | ||
1495 | select MIPS_CPU_SCACHE | ||
1496 | select SYS_SUPPORTS_SMP | ||
1497 | select SYS_SUPPORTS_HOTPLUG_CPU | ||
1507 | 1498 | ||
1508 | config SYS_HAS_CPU_LOONGSON2E | 1499 | config SYS_HAS_CPU_LOONGSON2E |
1509 | bool | 1500 | bool |
@@ -1577,17 +1568,24 @@ config SYS_HAS_CPU_SB1 | |||
1577 | config SYS_HAS_CPU_CAVIUM_OCTEON | 1568 | config SYS_HAS_CPU_CAVIUM_OCTEON |
1578 | bool | 1569 | bool |
1579 | 1570 | ||
1571 | config SYS_HAS_CPU_BMIPS | ||
1572 | bool | ||
1573 | |||
1580 | config SYS_HAS_CPU_BMIPS3300 | 1574 | config SYS_HAS_CPU_BMIPS3300 |
1581 | bool | 1575 | bool |
1576 | select SYS_HAS_CPU_BMIPS | ||
1582 | 1577 | ||
1583 | config SYS_HAS_CPU_BMIPS4350 | 1578 | config SYS_HAS_CPU_BMIPS4350 |
1584 | bool | 1579 | bool |
1580 | select SYS_HAS_CPU_BMIPS | ||
1585 | 1581 | ||
1586 | config SYS_HAS_CPU_BMIPS4380 | 1582 | config SYS_HAS_CPU_BMIPS4380 |
1587 | bool | 1583 | bool |
1584 | select SYS_HAS_CPU_BMIPS | ||
1588 | 1585 | ||
1589 | config SYS_HAS_CPU_BMIPS5000 | 1586 | config SYS_HAS_CPU_BMIPS5000 |
1590 | bool | 1587 | bool |
1588 | select SYS_HAS_CPU_BMIPS | ||
1591 | 1589 | ||
1592 | config SYS_HAS_CPU_XLR | 1590 | config SYS_HAS_CPU_XLR |
1593 | bool | 1591 | bool |