mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-21 01:18:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
Split the current clkrst_init() into two functions: - early_clkrst_init(): called from SPL Deassert the reset signals of the memory controller and some other basic cores. - clkrst_init(): called from main U-boot Deassert the reset signals that are necessary for the access to peripherals etc. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
28 lines
391 B
C
28 lines
391 B
C
/*
|
|
* Copyright (C) 2012-2015 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <mach/led.h>
|
|
#include <mach/board.h>
|
|
|
|
void pin_init(void);
|
|
void clkrst_init(void);
|
|
|
|
int board_early_init_f(void)
|
|
{
|
|
led_write(U, 0, , );
|
|
|
|
pin_init();
|
|
|
|
led_write(U, 1, , );
|
|
|
|
clkrst_init();
|
|
|
|
led_write(U, 2, , );
|
|
|
|
return 0;
|
|
}
|