Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/mv/mvreg.h
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | |||||
#define MV_GPIO_IN_IRQ_LEVEL (4 << 16) | #define MV_GPIO_IN_IRQ_LEVEL (4 << 16) | ||||
#define MV_GPIO_IN_IRQ_DOUBLE_EDGE (8 << 16) | #define MV_GPIO_IN_IRQ_DOUBLE_EDGE (8 << 16) | ||||
#define MV_GPIO_IN_DEBOUNCE (16 << 16) | #define MV_GPIO_IN_DEBOUNCE (16 << 16) | ||||
#define MV_GPIO_OUT_NONE 0x0 | #define MV_GPIO_OUT_NONE 0x0 | ||||
#define MV_GPIO_OUT_BLINK 0x1 | #define MV_GPIO_OUT_BLINK 0x1 | ||||
#define MV_GPIO_OUT_OPEN_DRAIN 0x2 | #define MV_GPIO_OUT_OPEN_DRAIN 0x2 | ||||
#define MV_GPIO_OUT_OPEN_SRC 0x4 | #define MV_GPIO_OUT_OPEN_SRC 0x4 | ||||
#define IS_GPIO_IRQ(irq) ((irq) >= NIRQ && (irq) < NIRQ + MV_GPIO_MAX_NPINS) | |||||
#define GPIO2IRQ(gpio) ((gpio) + NIRQ) | |||||
#define IRQ2GPIO(irq) ((irq) - NIRQ) | |||||
#if defined(SOC_MV_ORION) | #if defined(SOC_MV_ORION) | ||||
#define SAMPLE_AT_RESET 0x10 | #define SAMPLE_AT_RESET 0x10 | ||||
#elif defined(SOC_MV_KIRKWOOD) | #elif defined(SOC_MV_KIRKWOOD) | ||||
#define SAMPLE_AT_RESET 0x30 | #define SAMPLE_AT_RESET 0x30 | ||||
#endif | #endif | ||||
#define SAMPLE_AT_RESET_ARMADA38X 0x400 | #define SAMPLE_AT_RESET_ARMADA38X 0x400 | ||||
#define SAMPLE_AT_RESET_LO 0x30 | #define SAMPLE_AT_RESET_LO 0x30 | ||||
#define SAMPLE_AT_RESET_HI 0x34 | #define SAMPLE_AT_RESET_HI 0x34 | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |