forked from DragonBluep/uboot-mt7621
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to MTK U-Boot (MT7621) v1.3 2020-07-13
Changelog: 2020-07-13 Add legacy dram initialization option Signed-off-by: Shiji Yang <[email protected]>
- Loading branch information
1 parent
9043b15
commit 99c07c0
Showing
37 changed files
with
568 additions
and
205 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
menu "CPU & DDR configuration" | ||
depends on MT7621_LEGACY_DRAMC_BIN | ||
|
||
config MT7621_CPU_FREQ_LEGACY | ||
int "CPU Frequency (MHz)" | ||
range 400 1200 | ||
default 880 | ||
|
||
choice | ||
prompt "DRAM Frequency" | ||
default MT7621_DRAM_FREQ_1200_LEGACY | ||
|
||
config MT7621_DRAM_FREQ_400_LEGACY | ||
bool "400MHz" | ||
|
||
config MT7621_DRAM_FREQ_800_LEGACY | ||
bool "800MHz" | ||
|
||
config MT7621_DRAM_FREQ_1066_LEGACY | ||
bool "1066MHz" | ||
|
||
config MT7621_DRAM_FREQ_1200_LEGACY | ||
bool "1200MHz" | ||
|
||
endchoice | ||
|
||
choice | ||
prompt "Prefered DDR2 init parameters" | ||
default MT7621_DRAM_DDR2_1024M_LEGACY | ||
|
||
config MT7621_DRAM_DDR2_512M_LEGACY | ||
bool "64MB" | ||
|
||
config MT7621_DRAM_DDR2_1024M_LEGACY | ||
bool "128MB" | ||
|
||
config MT7621_DRAM_DDR2_512M_W9751G6KB_A02_1066MHZ_LEGACY | ||
bool "W9751G6KB_A02 @ 1066MHz (64MB)" | ||
|
||
config MT7621_DRAM_DDR2_1024M_W971GG6KB25_800MHZ_LEGACY | ||
bool "W971GG6KB25 @ 800MHz (128MB)" | ||
|
||
config MT7621_DRAM_DDR2_1024M_W971GG6KB18_1066MHZ_LEGACY | ||
bool "W971GG6KB18 @ 1066MHz (128MB)" | ||
|
||
endchoice | ||
|
||
choice | ||
prompt "Prefered DDR3 init parameters" | ||
default MT7621_DRAM_DDR3_2048M_LEGACY | ||
|
||
config MT7621_DRAM_DDR3_1024M_LEGACY | ||
bool "128MB" | ||
|
||
config MT7621_DRAM_DDR3_1024M_KGD_LEGACY | ||
bool "128MB KGD" | ||
|
||
config MT7621_DRAM_DDR3_2048M_LEGACY | ||
bool "256MB" | ||
|
||
config MT7621_DRAM_DDR3_4096M_LEGACY | ||
bool "512MB" | ||
|
||
endchoice | ||
|
||
config MT7621_DRAMC_DEBUG_LEGACY | ||
bool "Enable verbose output during DRAMC initialization" | ||
default y | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
obj-y += dramc.o | ||
|
||
ifeq ($(CONFIG_MT7621_DRAMC_DEBUG_LEGACY),y) | ||
DRAMC_BIN_FILE := mt7621_stage_sram.bin | ||
else | ||
DRAMC_BIN_FILE := mt7621_stage_sram_noprint.bin | ||
endif | ||
|
||
AFLAGS_dramc.o += \ | ||
-DDRAMC_BIN_FILE="\"$(obj)/$(DRAMC_BIN_FILE)\"" | ||
|
||
spl/arch/mips/mach-mt7621/dramc-legacy/dramc.o: spl/arch/mips/mach-mt7621/dramc-legacy/$(DRAMC_BIN_FILE) | ||
|
||
spl/arch/mips/mach-mt7621/dramc-legacy/$(DRAMC_BIN_FILE): arch/mips/mach-mt7621/dramc-legacy/$(DRAMC_BIN_FILE) | ||
@cp $< $@ | ||
|
||
tpl/arch/mips/mach-mt7621/dramc-legacy/dramc.o: tpl/arch/mips/mach-mt7621/dramc-legacy/$(DRAMC_BIN_FILE) | ||
|
||
tpl/arch/mips/mach-mt7621/dramc-legacy/$(DRAMC_BIN_FILE): arch/mips/mach-mt7621/dramc-legacy/$(DRAMC_BIN_FILE) | ||
@cp $< $@ |
Oops, something went wrong.