From 440f712f227248d6a7b85938501f9eb1c59a8337 Mon Sep 17 00:00:00 2001 From: YuzukiTsuru Date: Sun, 4 Feb 2024 23:19:44 +0800 Subject: [PATCH] [driver] t527 clk using 1x rate --- scripts/genimage_t527.cfg | 16 +--------------- src/drivers/sun55iw3/sys-clk.c | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/scripts/genimage_t527.cfg b/scripts/genimage_t527.cfg index 60778696..7e24679e 100644 --- a/scripts/genimage_t527.cfg +++ b/scripts/genimage_t527.cfg @@ -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 @@ -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 - } } diff --git a/src/drivers/sun55iw3/sys-clk.c b/src/drivers/sun55iw3/sys-clk.c index 7a428290..3d745255 100644 --- a/src/drivers/sun55iw3/sys-clk.c +++ b/src/drivers/sun55iw3/sys-clk.c @@ -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;