mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-19 01:27:59 +09:00
ARM: UniPhier: reset on-board devices on start-up
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>
This commit is contained in:
parent
325b708a61
commit
b603c68129
@ -24,6 +24,8 @@ int board_postclk_init(void)
|
|||||||
|
|
||||||
sg_init();
|
sg_init();
|
||||||
|
|
||||||
|
uniphier_board_reset();
|
||||||
|
|
||||||
pll_init();
|
pll_init();
|
||||||
|
|
||||||
uniphier_board_init();
|
uniphier_board_init();
|
||||||
|
@ -21,6 +21,8 @@ int board_postclk_init(void)
|
|||||||
|
|
||||||
sg_init();
|
sg_init();
|
||||||
|
|
||||||
|
uniphier_board_reset();
|
||||||
|
|
||||||
pll_init();
|
pll_init();
|
||||||
|
|
||||||
uniphier_board_init();
|
uniphier_board_init();
|
||||||
|
@ -8,14 +8,11 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/sc-regs.h>
|
#include <asm/arch/sc-regs.h>
|
||||||
#include <asm/arch/board.h>
|
|
||||||
|
|
||||||
void reset_cpu(unsigned long ignored)
|
void reset_cpu(unsigned long ignored)
|
||||||
{
|
{
|
||||||
u32 tmp;
|
u32 tmp;
|
||||||
|
|
||||||
uniphier_board_reset();
|
|
||||||
|
|
||||||
writel(5, SC_IRQTIMSET); /* default value */
|
writel(5, SC_IRQTIMSET); /* default value */
|
||||||
|
|
||||||
tmp = readl(SC_SLFRSTSEL);
|
tmp = readl(SC_SLFRSTSEL);
|
||||||
|
Loading…
Reference in New Issue
Block a user