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 | 18ec8d6 | 2020-11-12 16:35:52 +0800 | [diff] [blame] | 8 | default "mt7620" if SOC_MT7620 |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 9 | default "mt7628" if SOC_MT7628 |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 10 | |
developer | 26f763e | 2020-04-21 09:28:26 +0200 | [diff] [blame] | 11 | config SYS_DCACHE_SIZE |
| 12 | default 32768 |
| 13 | |
| 14 | config SYS_DCACHE_LINE_SIZE |
| 15 | default 32 |
| 16 | |
| 17 | config SYS_ICACHE_SIZE |
| 18 | default 65536 |
| 19 | |
| 20 | config SYS_ICACHE_LINE_SIZE |
| 21 | default 32 |
| 22 | |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 23 | config SYS_TEXT_BASE |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 24 | default 0x9c000000 if !SPL |
| 25 | default 0x80200000 if SPL |
| 26 | |
| 27 | config SPL_TEXT_BASE |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 28 | default 0x9c000000 |
| 29 | |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 30 | config SPL_PAYLOAD |
| 31 | default "u-boot-lzma.img" if SPL_LZMA |
| 32 | |
| 33 | config BUILD_TARGET |
| 34 | default "u-boot-with-spl.bin" if SPL |
developer | 18ec8d6 | 2020-11-12 16:35:52 +0800 | [diff] [blame] | 35 | default "u-boot.bin" |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 36 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 37 | choice |
| 38 | prompt "MediaTek MIPS SoC select" |
| 39 | |
developer | 18ec8d6 | 2020-11-12 16:35:52 +0800 | [diff] [blame] | 40 | config SOC_MT7620 |
| 41 | bool "MT7620" |
| 42 | select MIPS_L1_CACHE_SHIFT_5 |
| 43 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
| 44 | select PINCTRL_MT7620 |
| 45 | select MT7620_SERIAL |
| 46 | select MISC |
| 47 | select SPL_SEPARATE_BSS if SPL |
| 48 | select SPL_LOADER_SUPPORT if SPL |
| 49 | select SPL_OF_CONTROL if SPL_DM |
| 50 | select SPL_OF_PLATDATA if SPL_DM |
| 51 | select SPL_DM_SERIAL if SPL_DM |
| 52 | help |
| 53 | This supports MediaTek MT7620. |
| 54 | |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 55 | config SOC_MT7628 |
| 56 | bool "MT7628" |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 57 | select MIPS_L1_CACHE_SHIFT_5 |
developer | 29b37c5 | 2020-04-21 09:28:34 +0200 | [diff] [blame] | 58 | select MIPS_INIT_STACK_IN_SRAM |
| 59 | select MIPS_SRAM_INIT |
| 60 | select SYS_MIPS_CACHE_INIT_RAM_LOAD |
developer | 591826e | 2019-09-25 17:45:43 +0800 | [diff] [blame] | 61 | select PINCTRL_MT7628 |
| 62 | select MTK_SERIAL |
developer | 93f7400 | 2020-11-12 16:35:28 +0800 | [diff] [blame] | 63 | select SYSRESET |
developer | 3b3015f | 2020-04-21 09:28:30 +0200 | [diff] [blame] | 64 | select SYSRESET_RESETCTL |
developer | 19d572e | 2020-04-21 09:28:47 +0200 | [diff] [blame] | 65 | select SPL_SEPARATE_BSS if SPL |
| 66 | select SPL_INIT_STACK_WITHOUT_MALLOC_F if SPL |
| 67 | select SPL_LOADER_SUPPORT if SPL |
| 68 | select SPL_OF_CONTROL if SPL_DM |
| 69 | select SPL_SIMPLE_BUS if SPL_DM |
| 70 | select SPL_DM_SERIAL if SPL_DM |
| 71 | select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT |
| 72 | select SPL_SYSRESET if SPL_DM |
| 73 | select SPL_OF_LIBFDT if SPL_OF_CONTROL |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 74 | help |
developer | 89f051b | 2019-04-30 11:13:58 +0800 | [diff] [blame] | 75 | This supports MediaTek MT7628/MT7688. |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 76 | |
| 77 | endchoice |
| 78 | |
developer | 18ec8d6 | 2020-11-12 16:35:52 +0800 | [diff] [blame] | 79 | source "arch/mips/mach-mtmips/mt7620/Kconfig" |
developer | 37e34ba | 2020-11-12 16:35:23 +0800 | [diff] [blame] | 80 | source "arch/mips/mach-mtmips/mt7628/Kconfig" |
Stefan Roese | 2052a93 | 2018-08-16 15:27:30 +0200 | [diff] [blame] | 81 | |
Stefan Roese | 65da15e | 2018-09-05 15:12:35 +0200 | [diff] [blame] | 82 | endmenu |