| 1 |
|
| 2 |
|
| 3 |
#include <console/console.h> |
| 4 |
#include <device/mmio.h> |
| 5 |
#include <soc/dcc.h> |
| 6 |
|
| 7 |
void dcc_init(void) |
| 8 |
{ |
| 9 |
|
| 10 |
clrbits32p(BUS_PLLDIV_CFG1, GENMASK(20, 16)); |
| 11 |
|
| 12 |
clrbits32p(CPU_PLLDIV_0_CFG1, GENMASK(20, 16)); |
| 13 |
|
| 14 |
clrsetbits32p(CPU_PLLDIV_1_CFG1, GENMASK(20, 16), BIT(20) | GENMASK(18, 16)); |
| 15 |
|
| 16 |
clrsetbits32p(CPU_PLLDIV_2_CFG1, GENMASK(20, 16), GENMASK(17, 16) | GENMASK(20, 19)); |
| 17 |
|
| 18 |
printk(BIOS_DEBUG, "[DCC] DSU=%#x, LCPU=%#x, MCPU=%#x, BCPU=%#x\n", |
| 19 |
(read32p(BUS_PLLDIV_CFG1) >> 16) & 0x1F, |
| 20 |
(read32p(CPU_PLLDIV_0_CFG1) >> 16) & 0x1F, |
| 21 |
(read32p(CPU_PLLDIV_1_CFG1) >> 16) & 0x1F, |
| 22 |
(read32p(CPU_PLLDIV_2_CFG1) >> 16) & 0x1F); |
| 23 |
} |