void native_machine_restart(char *cmd) { /* workaround pull up on cpld / flash pin not being strong enough */ bfin_write_FIO_INEN(~PF0); bfin_write_FIO_DIR(PF0); bfin_write_FIO_FLAG_C(PF0); }
void native_machine_restart(char *cmd) { #if defined(CONFIG_BFIN_SHARED_FLASH_ENET) # define BIT_TO_SET (1 << CONFIG_ENET_FLASH_PIN) bfin_write_FIO_INEN(~BIT_TO_SET); bfin_write_FIO_DIR(BIT_TO_SET); bfin_write_FIO_FLAG_C(BIT_TO_SET); #endif }
static void stamp_led_set(int LED1, int LED2, int LED3) { bfin_write_FIO_INEN(bfin_read_FIO_INEN() & ~(PF2 | PF3 | PF4)); bfin_write_FIO_DIR(bfin_read_FIO_DIR() | (PF2 | PF3 | PF4)); if (LED1 == STATUS_LED_OFF) *pFIO_FLAG_S = PF2; else *pFIO_FLAG_C = PF2; if (LED2 == STATUS_LED_OFF) *pFIO_FLAG_S = PF3; else *pFIO_FLAG_C = PF3; if (LED3 == STATUS_LED_OFF) *pFIO_FLAG_S = PF4; else *pFIO_FLAG_C = PF4; SSYNC(); }
void __led_init(led_id_t mask, int state) { bfin_write_FIO_INEN(bfin_read_FIO_INEN() & ~(PF2 | PF3 | PF4)); bfin_write_FIO_DIR(bfin_read_FIO_DIR() | (PF2 | PF3 | PF4)); }