Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 1 | menu "MediaTek MIPS platforms" |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 2 | depends on ARCH_MTMIPS |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 3 | |
| 4 | config SYS_MALLOC_F_LEN |
| 5 | default 0x1000 |
| 6 | |
| 7 | config SYS_SOC |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 8 | default "mt7628" if SOC_MT7628 |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 9 | |
developer | 26f763e | 2020-04-21 09:28:26 +0200 | [diff] [blame] | 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 | |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 22 | config SYS_TEXT_BASE |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 23 | default 0x9c000000 if !SPL |
| 24 | default 0x80200000 if SPL |
| 25 | |
| 26 | config SPL_TEXT_BASE |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 27 | default 0x9c000000 |
| 28 | |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 29 | config SPL_PAYLOAD |
| 30 | default "u-boot-lzma.img" if SPL_LZMA |
| 31 | |
| 32 | config BUILD_TARGET |
| 33 | default "u-boot-with-spl.bin" if SPL |
| 34 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 35 | choice |
| 36 | prompt "MediaTek MIPS SoC select" |
| 37 | |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 38 | config SOC_MT7628 |
| 39 | bool "MT7628" |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 40 | select MIPS_L1_CACHE_SHIFT_5 |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 41 | select MIPS_INIT_STACK_IN_SRAM |
| 42 | select MIPS_SRAM_INIT |
| 43 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
developer | 591826e | 2019-09-25 17:45:43 +0800 | [diff] [blame] | 44 | select PINCTRL_MT7628 |
| 45 | select MTK_SERIAL |
developer | 93f7400 | 2020-11-12 16:35:28 +0800 | [diff] [blame^] | 46 | select SYSRESET |
developer | 3b3015f | 2020-04-21 09:28:30 +0200 | [diff] [blame] | 47 | select SYSRESET_RESETCTL |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 48 | select SPL_SEPARATE_BSS if SPL |
| 49 | select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL |
| 50 | select SPL_LOADER_SUPPORT if SPL |
| 51 | select SPL_OF_CONTROL if SPL_DM |
| 52 | select SPL_SIMPLE_BUS if SPL_DM |
| 53 | select SPL_DM_SERIAL if SPL_DM |
| 54 | select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT |
| 55 | select SPL_SYSRESET if SPL_DM |
| 56 | select SPL_OF_LIBFDT if SPL_OF_CONTROL |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 57 | help |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 58 | This supports MediaTek MT7628/MT7688. |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 59 | |
| 60 | endchoice |
| 61 | |
developer | 37e34ba | 2020-11-12 16:35:23 +0800 | [diff] [blame] | 62 | source "arch/mips/mach-mtmips/mt7628/Kconfig" |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 63 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 64 | endmenu |