Skip to content

Commit

Permalink
[app] add H618 CLK name
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Dec 27, 2023
1 parent c7325eb commit 3addf2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions board/longanpi-3h/init_dram/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ int main(void) {

sunxi_dram_init(NULL);

sunxi_clk_dump();

int i = 0;

while (1) {
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/sun50iw9/sys-clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ int sunxi_clock_init_gpadc(void) {
extern sunxi_serial_t uart_dbg;

void sunxi_clk_init(void) {
printk(LOG_LEVEL_DEBUG, "Set SoC AW%04x CLK Start.\n", read32(SUNXI_SID_BASE) & 0xffff);
printk(LOG_LEVEL_DEBUG, "Set SoC 1823 (H616/H313/H618) CLK Start.\n");
set_platform_config();
set_pll_cpux_axi();
set_pll_periph0();
Expand Down
4 changes: 3 additions & 1 deletion src/drivers/sun50iw9/sys-dram.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ uint64_t sunxi_dram_init(void *para) {
uint8_t *src = __ddr_bin_start;
uint8_t *dst = (uint8_t *) INIT_DRAM_BIN_BASE;

printk(LOG_LEVEL_DEBUG, "0x%08x -> 0x%08x size: %08x\n", src, dst, __ddr_bin_end - __ddr_bin_start);
printk(LOG_LEVEL_DEBUG, "DRAM: load dram init from 0x%08x -> 0x%08x size: %08x\n", src, dst, __ddr_bin_end - __ddr_bin_start);
memcpy(dst, src, __ddr_bin_end - __ddr_bin_start);

printk(LOG_LEVEL_DEBUG, "DRAM: Now jump to 0x%08x run DRAMINIT\n",dst);

__asm__ __volatile__("isb sy"
:
:
Expand Down

0 comments on commit 3addf2a

Please sign in to comment.