odroid: clock: set aclk_cores to 200MHz
PATCH 1/1 odroid: clock: set aclk_cores to 200MHz
This change fixes suspend/resume issue in the kernel caused by the wrong 'aclk_cores' clock value expected by the kernel.
Signed-off-by Przemyslaw Marczak <[email protected]>
Cc Minkyu Kang <[email protected]>
--- board/samsung/odroid/odroid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/samsung/odroid/odroid.c +2 -2
@@ -158,10 +158,10 @@ static void board_clock_init(void)* For MOUThpm = 1000 MHz (MOUTapll) * doutcopy = MOUThpm / (ratio + 1) = 200 (4) * sclkhpm = doutcopy / (ratio + 1) = 200 (4) -* cores_out = armclk / (ratio + 1) = 1000 (0) +* cores_out = armclk / (ratio + 1) = 200 (4) */ clr =COPY_RATIO (7 ) |HPM_RATIO (7 ) |CORES_RATIO (7 ); - set =COPY_RATIO (4 ) |HPM_RATIO (4 ) |CORES_RATIO (0 ); + set =COPY_RATIO (4 ) |HPM_RATIO (4 ) |CORES_RATIO (4 );clrsetbits_le32 (&clk->div_cpu1, clr, set);
Signature · 1 line
1.9.1
PATCH 1/1 odroid: clock: set aclk_cores to 200MHz
Quoted 17 lines · Przemyslaw Marczak
This change fixes suspend/resume issue in the kernel caused by the wrong '
aclk_cores' clock value expected by the kernel.Signed-off-by Przemyslaw Marczak <[email protected]>Cc Minkyu Kang <[email protected]>--- board/samsung/odroid/odroid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)board/samsung/odroid/odroid.c +0
-0@@ -158,10 +158,10 @@ static void board_clock_init(void)* For MOUThpm = 1000 MHz (MOUTapll) * doutcopy = MOUThpm / (ratio + 1) = 200 (4)
board/samsung/odroid/odroid.c static void board_clock_init(void) · line 167
Quoted 10 lines
board/samsung/odroid/odroid.c +2
-2* sclkhpm = doutcopy / (ratio + 1) = 200 (4) -* cores_out = armclk / (ratio + 1) = 1000 (0) +* cores_out = armclk / (ratio + 1) = 200 (4) */ clr =COPY_RATIO (7 ) |HPM_RATIO (7 ) |CORES_RATIO (7 ); - set =COPY_RATIO (4 ) |HPM_RATIO (4 ) |CORES_RATIO (0 ); + set =COPY_RATIO (4 ) |HPM_RATIO (4 ) |CORES_RATIO (4 );clrsetbits_le32 (&clk->div_cpu1, clr, set);
applied to u-boot-samsung
Thanks,
Minkyu Kang.