diff options
author | Tom Rini <trini@ti.com> | 2014-11-11 15:49:10 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-11 15:49:10 -0500 |
commit | 63f7af9a4cfb4a3b9136674c6612c6d13957c2cd (patch) | |
tree | b8046bd85f78115819982cb7a587bec6e8e60250 /arch/arm/cpu/armv7/uniphier/board_postclk_init.c | |
parent | f888cf5d942e63f29322cd21c00f11663fbf303a (diff) | |
parent | b67932e3e72b6214cde75c7e2f796d0c70ff3ffb (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
Diffstat (limited to 'arch/arm/cpu/armv7/uniphier/board_postclk_init.c')
-rw-r--r-- | arch/arm/cpu/armv7/uniphier/board_postclk_init.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/uniphier/board_postclk_init.c b/arch/arm/cpu/armv7/uniphier/board_postclk_init.c new file mode 100644 index 0000000000..89e44bb95b --- /dev/null +++ b/arch/arm/cpu/armv7/uniphier/board_postclk_init.c @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2012-2014 Panasonic Corporation + * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <linux/compiler.h> +#include <asm/arch/led.h> +#include <asm/arch/board.h> + +void __weak bcu_init(void) +{ +}; +void sbc_init(void); +void sg_init(void); +void pll_init(void); +void pin_init(void); +void clkrst_init(void); + +int board_postclk_init(void) +{ +#ifdef CONFIG_SOC_INIT + bcu_init(); + + sbc_init(); + + sg_init(); + + uniphier_board_reset(); + + pll_init(); + + uniphier_board_init(); + + led_write(B, 1, , ); + + clkrst_init(); + + led_write(B, 2, , ); +#endif + pin_init(); + + led_write(B, 3, , ); + + return 0; +} |