-
Notifications
You must be signed in to change notification settings - Fork 111
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
base: main
Are you sure you want to change the base?
Conversation
|
reference boot log: |
|
We're now at |
c6682ae to
3f9d5a8
Compare
|
We are currently at DeviceVref_Margin_A1 : 18
PHY0 P Code 0
PHY0 N Code 0
PllCtrl1 is 0
PllCtrl2 is 0
PllCtrl4 is 0
PllTestmode is 0
Trained DB0 DFIMRL is 0
Trained DB1 DFIMRL is 0
Trained DB2 DFIMRL is 0
Trained DB3 DFIMRL is 0
DQS Preamble is 0
ARdPtrInitVal is 0
PHY0 DB0 VREF is 0
PHY0 DB1 VREF is 0
PHY0 DB2 VREF is 0
PHY0 DB3 VREF is 0
R0 TxDQSDly is 0
R0 TxDQSDly is 0
R1 TxDQSDly is 0
R1 TxDQSDly is 0
PHY1 P Code 0
PHY1 N Code 0
[+] lp4_phy_train1d2d Complete... |
9cb31bc to
f4e38b9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #756 +/- ##
========================================
- Coverage 0.21% 0.20% -0.01%
========================================
Files 22 25 +3
Lines 931 966 +35
========================================
Hits 2 2
- Misses 929 964 +35 ☔ View full report in Codecov by Sentry. |
|
https://mastodon.social/@CyReVolt/113614408539014507 DRAM test now passes :) |
|
More extensive tests are showing some issues, still. |
4833382 to
98effa8
Compare
98effa8 to
7f4d8ec
Compare
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
this commit has a few functions which help in dram initialization. this is currently WORK IN PROGRESS. added clock initialization `sys_clk_config()`. board not yet tested after clock initialization. on testing on the board. the board seems to crash after entering the `pll_config()` function. exactly at L#166. more debugging required. Signed-off-by: Kanak Shilledar <[email protected]>
audio and other clocks were removed from sys_clk_config() fixed the board crashing in the pll_config() and deassert_pwrok_apb() due to some of the register write operations used a different method for writing the values which was missed durin the initial porting. Signed-off-by: Kanak Shilledar <[email protected]>
TODO: drop this commit in future Signed-off-by: Kanak Shilledar <[email protected]>
added pre training configs and setup. created a helper function to write 16 bit data required from writing to some registers. Signed-off-by: Kanak Shilledar <[email protected]>
dram training data is added along with a few helper functions output of phase1 training matches to the uboot data. phase2 training started but the output is 0 when i try to print some of the values from the registers. the uboot code prints some data corresponding to those registers but oreboot prints nothing just 0 for all. Signed-off-by: Kanak Shilledar <[email protected]>
changed the default code formatter in Rust Rover to rustfmt also changed the file format from CRLF to LF Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
This looks like a dummy in the original C code, though reading from MMIO registers may actually have side effects in hardware. Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
If you really want to, pass your custom command: make FASTBOOT='sudo fastboot' run Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
this function was yet to be implemented required for `lpddr_init()` still the DRAM test is not passing :( Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
…_DCH1 Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
…rface and ctrl_en Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
clock seems to be an issue which is causing the board to crash after dram init during the write operation. this patch adds remaining clocks were removed previously. these are mainly the audio/gpu/npu subsys clocks. Signed-off-by: Kanak Shilledar <[email protected]>
This reverts commit 6ee08e21aee47989341563eca3bc2fad342da55d. Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]> Signed-off-by: Kanak Shilledar <[email protected]>
2071087 to
e997237
Compare
switch to DRAM_BASE_0 instead of DRAM_BASE_4 Signed-off-by: Kanak Shilledar <[email protected]>
e997237 to
7c89bed
Compare
Signed-off-by: Kanak Shilledar <[email protected]>
chaged the training data to match with our type of memory. eariler we were not using the training data for dbi_off memory changed the PMP register addresses. Signed-off-by: Kanak Shilledar <[email protected]>
5b8fc21 to
bd2846b
Compare
TH1520 is a RISCV SoC from Alibaba T-Head. It has four C910 cores.
Few boards using this SoC are: