diff options
author | sw.multimedia <sw.multimedia@starfivetech.com> | 2021-08-16 16:39:59 +0300 |
---|---|---|
committer | Tekkaman Ninja <tekkamanninja@163.com> | 2021-09-29 09:51:22 +0300 |
commit | fda7eff2dbbc129d3b010a3e8971b2ad7649ecbd (patch) | |
tree | 93717edfa2d237aaa75ca06feeb83ffbce7490bf /common/board_f.c | |
parent | 7b587f7703891d55c4f36876997402964126422e (diff) | |
download | u-boot-fda7eff2dbbc129d3b010a3e8971b2ad7649ecbd.tar.xz |
starfive: GPIO pin init
This patch should be removed, once we can do GPIO pin init
in secondboot or ddrinit
Include:
starfive: Add init GPIO for ALSA audio framework
starfive: remove useless gpio operation
Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com>
Signed-off-by: michael.yan <michael.yan@starfivetech.com>
Signed-off-by: andy.hu <andy.hu@starfivetech.com>
Diffstat (limited to 'common/board_f.c')
-rw-r--r-- | common/board_f.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c index f2746537c9..616d87f1ad 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -798,6 +798,9 @@ __weak int arch_cpu_init_dm(void) { return 0; } +#if CONFIG_IS_ENABLED(TARGET_STARFIVE_JH7100) +extern int board_hw_init(void); +#endif __weak int checkcpu(void) { @@ -939,6 +942,9 @@ static const init_fnc_t init_sequence_f[] = { do_elf_reloc_fixups, #endif clear_bss, +#if CONFIG_IS_ENABLED(TARGET_STARFIVE_JH7100) + board_hw_init, +#endif #if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \ !CONFIG_IS_ENABLED(X86_64) jump_to_copy, |