mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 01:48:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
If a support card is attached to the main board, the on-board SMSC9118 LAN controller is available. It must be kept in reset state for a while on start-up. When the board is kicked via a debbuger rather than pushing the hardware reset button, on-board chips are not reset; in this case the reset signals should be asserted by software. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
42 lines
573 B
C
42 lines
573 B
C
/*
|
|
* Copyright (C) 2012-2014 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/led.h>
|
|
#include <asm/arch/board.h>
|
|
|
|
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)
|
|
{
|
|
sbc_init();
|
|
|
|
sg_init();
|
|
|
|
uniphier_board_reset();
|
|
|
|
pll_init();
|
|
|
|
uniphier_board_init();
|
|
|
|
led_write(B, 1, , );
|
|
|
|
clkrst_init();
|
|
|
|
led_write(B, 2, , );
|
|
|
|
pin_init();
|
|
|
|
led_write(B, 3, , );
|
|
|
|
return 0;
|
|
}
|