Skip to content

Commit

Permalink
[driver] t527 clk using 1x rate
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Feb 4, 2024
1 parent 3e0c48a commit 440f712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions scripts/genimage_t527.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ image boot.vfat {
"Image",
"sunxi.dtb",
"../board/lt527x/syter_boot/bl31/bl31.bin",
"../utils/bl33/output/syter_bl33.bin"
"../board/lt527x/syter_boot/scp/scp.bin"
}
}
size = 128M
Expand All @@ -30,18 +30,4 @@ image sdcard.img {
bootable = "true"
image = "boot.vfat"
}

partition rootfs {
partition-type = 0xC
image = "rootfs.ext4"
}

partition rootfs {
partition-type = 0xC
image = "rootfs.ext4"
}

partition rootfs_data {
size = 128M
}
}
2 changes: 1 addition & 1 deletion src/drivers/sun55iw3/sys-clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ uint32_t sunxi_clk_get_peri1x_rate() {
pllm = (reg32 & 0x01) + 1;
p0 = ((reg32 >> 16) & 0x03) + 1;

return ((((24 * plln) / (pllm * p0))) * 1000 * 1000);
return ((((24 * plln) / (pllm * p0))) * 1000 * 1000) >> 1;
}

return 0;
Expand Down

0 comments on commit 440f712

Please sign in to comment.