arm: kirkwood: Remove Synology DS109 board reset_misc
Remove DS109 board reset_misc() function. U-Boot generic reset is enough. Signed-off-by: Tony Dinh <mibodhi@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
@@ -97,24 +97,6 @@ int board_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Synology reset uses UART */
|
|
||||||
#include <ns16550.h>
|
|
||||||
#define SOFTWARE_SHUTDOWN 0x31
|
|
||||||
#define SOFTWARE_REBOOT 0x43
|
|
||||||
#define CFG_SYS_NS16550_COM2 KW_UART1_BASE
|
|
||||||
void reset_misc(void)
|
|
||||||
{
|
|
||||||
int b_d;
|
|
||||||
printf("Synology reset...");
|
|
||||||
udelay(50000);
|
|
||||||
|
|
||||||
b_d = ns16550_calc_divisor((struct ns16550 *)CFG_SYS_NS16550_COM2,
|
|
||||||
CFG_SYS_NS16550_CLK, 9600);
|
|
||||||
ns16550_init((struct ns16550 *)CFG_SYS_NS16550_COM2, b_d);
|
|
||||||
ns16550_putc((struct ns16550 *)CFG_SYS_NS16550_COM2,
|
|
||||||
SOFTWARE_REBOOT);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_RESET_PHY_R
|
#ifdef CONFIG_RESET_PHY_R
|
||||||
/* Configure and enable MV88E1116 PHY */
|
/* Configure and enable MV88E1116 PHY */
|
||||||
void reset_phy(void)
|
void reset_phy(void)
|
||||||
|
Reference in New Issue
Block a user