嵌入式爱好者

使用k3conf工具修改6254时钟

2023-10-17 08:54| 发布者: Q_Y_X| 查看: 131| 评论: 0

类目: AM6254系列产品  >  linux     文档编号: 1162

查看cpu当前主频:
root@am62xx-evm:~# k3conf --cpuinfo
|--------------------------------------------------------------------------------|
| VERSION INFO |
|--------------------------------------------------------------------------------|
| K3CONF | (version v0.1-54-g966a569 built Wed May 4 19:08:04 UTC 2022) |
| SoC | AM62X SR1.0 |
| SYSFW | ABI: 3.1 (firmware version 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi)') |
|--------------------------------------------------------------------------------|

|--------------------------------------------------------|
| Processor Name | Processor State | Processor Frequency |
|--------------------------------------------------------|
| A53SS0_CORE_0 | DEVICE_STATE_ON | 1200000000 |
| A53SS0_CORE_1 | DEVICE_STATE_ON | 1200000000 |
| A53SS0_CORE_2 | DEVICE_STATE_ON | 1200000000 |
| A53SS0_CORE_3 | DEVICE_STATE_ON | 1200000000 |
|--------------------------------------------------------|
打印出A核所有支持的时钟:
ailed root@am62xx-evm:~# k3conf dump clock | grep A53
autoadjust_table_generic_fprint(): WARNING: "DEV_BOARD0_OBSCLK0_IN_PARENT_SAM62_A53_512KB_WRAP_MAIN_0_ARM_COREPACK_0_A53_DIVH_CLK4_OBSCLK_OUT_CLKCLK_STATE_READY" size (115) > TABLE_MAX_ELT_LEN (100)!
| 166 | 2 | DEV_A53SS0_A53_DIVH_CLK4_OBSCLK_OUT_CLK | CLK_STATE_READY | 0 |
| 166 | 3 | DEV_A53SS0_COREPAC_ARM_CLK_CLK | CLK_STATE_READY | 1200000000 |
| 166 | 5 | DEV_A53SS0_PLL_CTRL_CLK | CLK_STATE_READY | 500000000 |
| 135 | 0 | DEV_A53SS0_CORE_0_A53_CORE0_ARM_CLK_CLK | CLK_STATE_READY | 1200000000 |
| 136 | 0 | DEV_A53SS0_CORE_1_A53_CORE1_ARM_CLK_CLK | CLK_STATE_READY | 1200000000 |
| 137 | 0 | DEV_A53SS0_CORE_2_A53_CORE2_ARM_CLK_CLK | CLK_STATE_READY | 1200000000 |
| 138 | 0 | DEV_A53SS0_CORE_3_A53_CORE3_ARM_CLK_CLK | CLK_STATE_READY | 1200000000 |
| 172 | 0 | DEV_A53_RS_BW_LIMITER0_CLK_CLK | CLK_STATE_READY | 250000000 |
| 173 | 0 | DEV_A53_WS_BW_LIMITER1_CLK_CLK | CLK_STATE_READY | 250000000 |
| 157 | 99 | DEV_BOARD0_OBSCLK0_IN_PARENT_SAM62_A53_512KB_WRAP_MAIN_0_ARM_COREPACK_0_A53_DIVH_CLK4_OBSCLK_OUT_CLK | CLK_STATE_READY | 0 |
修改时钟为1.4GHz:
root@am62xx-evm:~# k3conf set clock 166 3 1400000000
|--------------------------------------------------------------------------------|
| VERSION INFO |
|--------------------------------------------------------------------------------|
| K3CONF | (version v0.1-54-g966a569 built Wed May 4 19:08:04 UTC 2022) |
| SoC | AM62X SR1.0 |
| SYSFW | ABI: 3.1 (firmware version 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi)') |
|--------------------------------------------------------------------------------|

|----------------------------------------------------------------------------------------------------|
| Device ID | Clock ID | Clock Name | Status | Clock Frequency |
|----------------------------------------------------------------------------------------------------|
| 166 | 2 | DEV_A53SS0_A53_DIVH_CLK4_OBSCLK_OUT_CLK | CLK_STATE_READY | 0 |
| 166 | 3 | DEV_A53SS0_COREPAC_ARM_CLK_CLK | CLK_STATE_READY | 1400000000 |
| 166 | 5 | DEV_A53SS0_PLL_CTRL_CLK | CLK_STATE_READY | 500000000 |
|----------------------------------------------------------------------------------------------------|
再次查看主频:
root@am62xx-evm:~# k3conf --cpuinfo
|--------------------------------------------------------------------------------|
| VERSION INFO |
|--------------------------------------------------------------------------------|
| K3CONF | (version v0.1-54-g966a569 built Wed May 4 19:08:04 UTC 2022) |
| SoC | AM62X SR1.0 |
| SYSFW | ABI: 3.1 (firmware version 0x0008 '8.3.2--v08.03.02 (Jolly Jellyfi)') |
|--------------------------------------------------------------------------------|

|--------------------------------------------------------|
| Processor Name | Processor State | Processor Frequency |
|--------------------------------------------------------|
| A53SS0_CORE_0 | DEVICE_STATE_ON | 1400000000 |
| A53SS0_CORE_1 | DEVICE_STATE_ON | 1400000000 |
| A53SS0_CORE_2 | DEVICE_STATE_ON | 1400000000 |
| A53SS0_CORE_3 | DEVICE_STATE_ON | 1400000000 |
|--------------------------------------------------------|


已解决

未解决

只是看看

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 11:46

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部