File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
board/imgtec/pistachio_bub Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -315,3 +315,16 @@ void mfio_setup_usb_pwr(void)
315
315
__raw_writel (val , USBPHYCONTROL0_ADDR );
316
316
}
317
317
#endif
318
+
319
+ #if defined(CONFIG_TARGET_PISTACHIO_MARDUK )
320
+ /*
321
+ * On Marduk, gpio 76 controls the heartbeat led.
322
+ * This function configures it as an output and sets it to 1.
323
+ */
324
+ void mfio_setup_led (void )
325
+ {
326
+ pistachio_configure_gpio (76 , 1 );
327
+
328
+ pistachio_set_gpio_output_state (76 , 1 );
329
+ }
330
+ #endif
Original file line number Diff line number Diff line change @@ -185,3 +185,7 @@ void mfio_setup_i2c(u8 interface);
185
185
defined(CONFIG_TARGET_PISTACHIO_BEETLE )
186
186
void mfio_setup_usb_pwr (void );
187
187
#endif
188
+
189
+ #if defined(CONFIG_TARGET_PISTACHIO_MARDUK )
190
+ void mfio_setup_led (void );
191
+ #endif
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ void spl_lowlevel_init(void) {
65
65
*/
66
66
setup_clk_gate_defaults ();
67
67
68
+ #if defined(CONFIG_TARGET_PISTACHIO_MARDUK )
69
+ /* Setup LED */
70
+ mfio_setup_led ();
71
+ #endif
72
+
68
73
/* Setup SPIM1 MFIOs */
69
74
mfio_setup_spim1 ();
70
75
You can’t perform that action at this time.
0 commit comments