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
					
				|  | @ -83,6 +83,12 @@ struct cpld_data { | ||||||
| #define CPLD_FXS_LED	0x0F | #define CPLD_FXS_LED	0x0F | ||||||
| #define CPLD_SYS_RST	0x00 | #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) | void board_cpld_init(void) | ||||||
| { | { | ||||||
| 	struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); | 	struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue