mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
arm, am335x: make mpu pll config configurable
upcoming support for siemens boards switches mpu pll clk in board code. So make this configurable. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Tom Rini <trini@ti.com>
This commit is contained in:
parent
49f7836500
commit
7b9c5d0bfd
2 changed files with 8 additions and 2 deletions
|
@ -246,7 +246,7 @@ static void enable_per_clocks(void)
|
|||
;
|
||||
}
|
||||
|
||||
static void mpu_pll_config(void)
|
||||
void mpu_pll_config_val(int mpull_m)
|
||||
{
|
||||
u32 clkmode, clksel, div_m2;
|
||||
|
||||
|
@ -260,7 +260,7 @@ static void mpu_pll_config(void)
|
|||
;
|
||||
|
||||
clksel = clksel & (~CLK_SEL_MASK);
|
||||
clksel = clksel | ((MPUPLL_M << CLK_SEL_SHIFT) | MPUPLL_N);
|
||||
clksel = clksel | ((mpull_m << CLK_SEL_SHIFT) | MPUPLL_N);
|
||||
writel(clksel, &cmwkup->clkseldpllmpu);
|
||||
|
||||
div_m2 = div_m2 & ~CLK_DIV_MASK;
|
||||
|
@ -274,6 +274,11 @@ static void mpu_pll_config(void)
|
|||
;
|
||||
}
|
||||
|
||||
static void mpu_pll_config(void)
|
||||
{
|
||||
mpu_pll_config_val(CONFIG_SYS_MPUCLK);
|
||||
}
|
||||
|
||||
static void core_pll_config(void)
|
||||
{
|
||||
u32 clkmode, clksel, div_m4, div_m5, div_m6;
|
||||
|
|
|
@ -32,6 +32,7 @@ extern struct ctrl_stat *cstat;
|
|||
u32 get_device_type(void);
|
||||
void save_omap_boot_params(void);
|
||||
void setup_clocks_for_console(void);
|
||||
void mpu_pll_config_val(int mpull_m);
|
||||
void ddr_pll_config(unsigned int ddrpll_M);
|
||||
|
||||
void sdelay(unsigned long);
|
||||
|
|
Loading…
Add table
Reference in a new issue