Skip to content

Add support for TH1520 SoC #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 49 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
680c4cd
initially add Milk-V Meles (XuanTie/T-Head TH1520)
orangecms Aug 17, 2024
dea125c
milk-v/meles: print initial program counter
orangecms Aug 17, 2024
6761dba
milk-v/meles: WIP USB gadget
orangecms Aug 22, 2024
e67242d
milk-v: meles: bt0: WIP port dram init
kanakshilledar Aug 26, 2024
04f356c
milk-v/meles: dram: clock cleanup and fix lpddr4 init functions
kanakshilledar Sep 11, 2024
405a66f
milk-v/meles: add sudo to fastboot commands
kanakshilledar Sep 11, 2024
b7a590a
milk-v/meles: dram: prepare dram for training
kanakshilledar Sep 15, 2024
255d47e
milk-v/meles: dram: WIP lpddr4x dram training
kanakshilledar Sep 15, 2024
33bf64b
milk-v/meles: change the code formater to RUSTFMT
kanakshilledar Sep 27, 2024
439916b
milk-v/meles: dram: expose DRAM regs
orangecms Sep 26, 2024
2f69ec9
milk-v/meles: dram_helpers: use exposed DRAM regs and simplify
orangecms Sep 26, 2024
bc1e3b1
milk-v/meles: dram_helpers: add ddr_phy_broadcast_en
orangecms Sep 26, 2024
d362520
milk-v/meles: dram: enable ddr_phy_broadcast_en()
orangecms Sep 26, 2024
7085311
milk-v/meles: do NOT run fastboot via sudo
orangecms Sep 27, 2024
8833860
milk-v/meles: add basic README and udev rules file
orangecms Sep 27, 2024
8107714
milk-v/meles: more prints get us further again
orangecms Sep 27, 2024
1d44ec5
milk-v/meles: dram_helpers: rewrite wait_fw_done fns to simple match
orangecms Sep 27, 2024
091d583
milk-v/meles: dram_helpers: fix message read poll loops
orangecms Sep 27, 2024
8ddebd3
milk-v/meles: dram_helpers: enable PHY mail box
orangecms Sep 27, 2024
211f2b5
milk-v/meles: dram_train: comment out PHY1 wait_fw_done
orangecms Sep 27, 2024
e6802c4
milk-v/meles: dram_train: print final results in hex
orangecms Sep 27, 2024
5f04795
milk-v/meles: dram_train: added remaining training ops
kanakshilledar Sep 30, 2024
6812e49
milk-v/meles: dram: port remaining functions for lpddr_init
kanakshilledar Oct 5, 2024
05cbf28
milk-v/meles: dram: implement `dwc_ddrphy_phyinit_reg_interface()`
kanakshilledar Oct 5, 2024
66da691
milk-v/meles: add additional line break for readability
orangecms Oct 10, 2024
cb1d395
milk-v/meles: rework DRAM base and test limit
orangecms Oct 17, 2024
9d906b1
milk-v/meles: simplify DDR_CFG0 definition, only use DCH1_DBG1
orangecms Oct 17, 2024
00f51b4
milk-v/meles: simplify DDR register definitions, remove obsolete DBG1…
orangecms Oct 17, 2024
1abd87b
milk-v/meles: sort comments and consts in dwc_ddrphy_phyinit_reg_inte…
orangecms Oct 17, 2024
08f952d
milk-v/meles: add lpddr4_auto_selref()
orangecms Oct 17, 2024
586c12e
milk-v/meles: dram: add previously removed clocks
kanakshilledar Oct 20, 2024
2109d1e
Revert "milk-v/meles: dram: add previously removed clocks"
orangecms Oct 24, 2024
d43332c
fixup after Rust upgrade
orangecms Oct 23, 2024
efecc0e
WORKAROUND: sbss cleanup is now broken after Rust upgrade...
orangecms Oct 23, 2024
9fbf452
milk-v/meles: notes, reset PMP, DRAM test fix
orangecms Oct 23, 2024
da5247b
CHECKPOINT: IT WORKS!
orangecms Dec 8, 2024
e47ae9c
extend DRAM test
orangecms Dec 13, 2024
acdd50d
restore values
orangecms Dec 13, 2024
92d1939
back to other values
orangecms Dec 13, 2024
911a4c1
CHECKPOINT: lpddr4_reinit_ctrl mostly translated, not yet working
orangecms Dec 14, 2024
bfacc43
CHECKPOINT: leave note, remove obsolete note
orangecms Dec 14, 2024
3efdb03
FIXUP
orangecms Dec 14, 2024
bc350bb
FIXUP
orangecms Dec 14, 2024
9c117ab
CHECKPOINT
orangecms Dec 14, 2024
79fed7f
FIXUP - CHECKPOINT
orangecms Dec 14, 2024
8e82baf
CHECKPOINT
orangecms Dec 14, 2024
7c89bed
meles/bt0: migrate dram test to lib::util
kanakshilledar Mar 7, 2025
e5f4e2e
meles/bt0/dram: add missing `cpu_clk_config()`
kanakshilledar Apr 24, 2025
bd2846b
meles/bt0/dram: update the dram training data and other minor fixes
kanakshilledar Apr 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
milk-v/meles: add additional line break for readability
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Kanak Shilledar <kanakshilledar111@protonmail.com>
  • Loading branch information
orangecms authored and kanakshilledar committed Apr 23, 2025
commit 66da691ca8e963a33ac507e3ce2d3ae1f09695c7
1 change: 1 addition & 0 deletions src/mainboard/milk-v/meles/bt0/src/dram_train.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ fn lp4x_3733_phy_train1d2d() {
ddr_phy_reg_wr(0x2002c, 0x0);
ddr_phy_reg_wr(0x20060, 0x2);
ddr_phy_reg_wr(0xd0000, 0x0);

println!("lp4x_3733_phy_train1d2d: copy over ICCM blob");
for i in 0..16384 {
ddr_phy_reg_wr(0x50000 + i, ICCM_ARRAY[i]);
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy