28#define EEFC0 EEFC0_BASE
29#define EEFC1 EEFC1_BASE
32#define EEFC_FMR(port) MMIO32((port) + 0x00)
33#define EEFC_FCR(port) MMIO32((port) + 0x04)
34#define EEFC_FSR(port) MMIO32((port) + 0x08)
35#define EEFC_FRR(port) MMIO32((port) + 0x0C)
41#define EEFC_FMR_FAM (0x01 << 24)
43#define EEFC_FMR_FWS_MASK (0x0F << 8)
45#define EEFC_FMR_FRDY (0x01 << 0)
48#define EEFC_FCR_FKEY (0x5A << 24)
49#define EEFC_FCR_FARG_MASK (0xFFFF << 8)
50#define EEFC_FCR_FCMD_MASK (0xFF << 0)
51#define EEFC_FCR_FCMD_GETD (0x00 << 0)
52#define EEFC_FCR_FCMD_WP (0x01 << 0)
53#define EEFC_FCR_FCMD_WPL (0x02 << 0)
54#define EEFC_FCR_FCMD_EWP (0x03 << 0)
55#define EEFC_FCR_FCMD_EWPL (0x04 << 0)
56#define EEFC_FCR_FCMD_EA (0x05 << 0)
57#define EEFC_FCR_FCMD_SLB (0x08 << 0)
58#define EEFC_FCR_FCMD_CLB (0x09 << 0)
59#define EEFC_FCR_FCMD_GLB (0x0A << 0)
60#define EEFC_FCR_FCMD_SGPB (0x0B << 0)
61#define EEFC_FCR_FCMD_CGPB (0x0C << 0)
62#define EEFC_FCR_FCMD_GGPB (0x0D << 0)
63#define EEFC_FCR_FCMD_STUI (0x0E << 0)
64#define EEFC_FCR_FCMD_SPUI (0x0F << 0)
68#define EEFC_FSR_FLOCKE (0x01 << 2)
69#define EEFC_FSR_FCMDE (0x01 << 1)
70#define EEFC_FSR_FRDY (0x01 << 0)
74#if defined(SAM3A) || defined(SAM3U) || defined(SAM3X)
77#elif defined(SAM3N) || defined(SAM3S)
static void eefc_set_latency(uint8_t wait)