arm/km: trigger reconfiguration for the Xilinx FPGA
The Xilinx FPGA must be reconfigured each time the unit reboots. The FPGA is connected to the GPIO pin 39 from kirkwood. This patch triggers this pin for km_kirkwood_pci targets. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Prafulla Wadaskar <prafulla@marvell.com>
This commit is contained in:
committed by
Albert ARIBAUD
parent
66072a8ca0
commit
f0d6425790
@@ -267,7 +267,12 @@ int board_early_init_f(void)
|
||||
kw_gpio_set_valid(KM_KIRKWOOD_ENV_WP, 38);
|
||||
kw_gpio_direction_output(KM_KIRKWOOD_ENV_WP, 1);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_KM_RECONFIG_XLX)
|
||||
/* trigger the reconfiguration of the xilinx fpga */
|
||||
kw_gpio_set_valid(KM_XLX_PROGRAM_B_PIN, 1);
|
||||
kw_gpio_direction_output(KM_XLX_PROGRAM_B_PIN, 0);
|
||||
kw_gpio_direction_input(KM_XLX_PROGRAM_B_PIN);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user