3f25de8b8582959f964933bd749b9da25548ebbd
[oweals/u-boot.git] / arch / mips / mach-mtmips / Kconfig
1 menu "MediaTek MIPS platforms"
2         depends on ARCH_MTMIPS
3
4 config SYS_MALLOC_F_LEN
5         default 0x1000
6
7 config SYS_SOC
8         default "mt7628" if SOC_MT7628
9
10 config SYS_DCACHE_SIZE
11         default 32768
12
13 config SYS_DCACHE_LINE_SIZE
14         default 32
15
16 config SYS_ICACHE_SIZE
17         default 65536
18
19 config SYS_ICACHE_LINE_SIZE
20         default 32
21
22 config SYS_TEXT_BASE
23         default 0x9c000000
24
25 choice
26         prompt "MediaTek MIPS SoC select"
27
28 config SOC_MT7628
29         bool "MT7628"
30         select MIPS_L1_CACHE_SHIFT_5
31         select MIPS_INIT_STACK_IN_SRAM
32         select MIPS_SRAM_INIT
33         select SYS_MIPS_CACHE_INIT_RAM_LOAD
34         select PINCTRL_MT7628
35         select MTK_SERIAL
36         select SYSRESET_RESETCTL
37         help
38           This supports MediaTek MT7628/MT7688.
39
40 endchoice
41
42 choice
43         prompt "Board select"
44
45 config BOARD_GARDENA_SMART_GATEWAY_MT7688
46         bool "GARDENA smart Gateway"
47         depends on SOC_MT7628
48         select BOARD_LATE_INIT
49         select SUPPORTS_BOOT_RAM
50         help
51           GARDENA smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
52           and 8 MiB of flash (SPI NOR) and additional SPI NAND storage.
53
54 config BOARD_LINKIT_SMART_7688
55         bool "LinkIt Smart 7688"
56         depends on SOC_MT7628
57         select SUPPORTS_BOOT_RAM
58         help
59           Seeed LinkIt Smart 7688 boards have a MT7688 SoC with 128 MiB of RAM
60           and 32 MiB of flash (SPI).
61           Between its different peripherals there's an integrated switch with 4
62           ethernet ports, 1 USB port, 1 UART, GPIO buttons and LEDs, and
63           a MT7688 (PCIe).
64
65 endchoice
66
67 choice
68         prompt "Boot mode"
69
70 config BOOT_RAM
71         bool "RAM boot"
72         depends on SUPPORTS_BOOT_RAM
73         help
74           This builds an image that is linked to a RAM address. It can be used
75           for booting from CFE via TFTP using an ELF image, but it can also be
76           booted from RAM by other bootloaders using a BIN image.
77
78 config BOOT_ROM
79         bool "ROM boot"
80         depends on SUPPORTS_BOOT_RAM
81         help
82           This builds an image that is linked to a ROM address. It can be
83           used as main bootloader image which is programmed onto the onboard
84           flash storage (SPI NOR).
85
86 endchoice
87
88 config SUPPORTS_BOOT_RAM
89         bool
90
91 source "board/gardena/smart-gateway-mt7688/Kconfig"
92 source "board/seeed/linkit-smart-7688/Kconfig"
93
94 endmenu