mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
board: freescale: p1_p2_rdb_pc: Implement board_reset()
Do board reset via CPLD's system reset register. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
ae0e7ee886
commit
20fb58fc5a
1 changed files with 6 additions and 0 deletions
|
@ -83,6 +83,12 @@ struct cpld_data {
|
|||
#define CPLD_FXS_LED 0x0F
|
||||
#define CPLD_SYS_RST 0x00
|
||||
|
||||
void board_reset(void)
|
||||
{
|
||||
struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);
|
||||
out_8(&cpld_data->system_rst, 1);
|
||||
}
|
||||
|
||||
void board_cpld_init(void)
|
||||
{
|
||||
struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);
|
||||
|
|
Loading…
Reference in a new issue