Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/mv/mvreg.h
| Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | |||||
| #define IS_GPIO_IRQ(irq) ((irq) >= NIRQ && (irq) < NIRQ + MV_GPIO_MAX_NPINS) | #define IS_GPIO_IRQ(irq) ((irq) >= NIRQ && (irq) < NIRQ + MV_GPIO_MAX_NPINS) | ||||
| #define GPIO2IRQ(gpio) ((gpio) + NIRQ) | #define GPIO2IRQ(gpio) ((gpio) + NIRQ) | ||||
| #define IRQ2GPIO(irq) ((irq) - 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 | ||||
| #elif defined(SOC_MV_ARMADA38X) | |||||
| #define SAMPLE_AT_RESET 0x400 | |||||
| #endif | #endif | ||||
| #if defined(SOC_MV_DISCOVERY) || defined(SOC_MV_ARMADAXP) | #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 | ||||
| #endif | |||||
| /* | /* | ||||
| * Clocks | * Clocks | ||||
| */ | */ | ||||
| #if defined(SOC_MV_ORION) | #if defined(SOC_MV_ORION) | ||||
| #define TCLK_MASK 0x00000300 | #define TCLK_MASK 0x00000300 | ||||
| #define TCLK_SHIFT 0x08 | #define TCLK_SHIFT 0x08 | ||||
| #elif defined(SOC_MV_DISCOVERY) | #elif defined(SOC_MV_DISCOVERY) | ||||
| #define TCLK_MASK 0x00000180 | #define TCLK_MASK 0x00000180 | ||||
| #define TCLK_SHIFT 0x07 | #define TCLK_SHIFT 0x07 | ||||
| #elif defined(SOC_MV_ARMADA38X) | |||||
| #define TCLK_MASK 0x00008000 | |||||
| #define TCLK_SHIFT 15 | |||||
| #endif | #endif | ||||
| #define TCLK_MASK_ARMADA38X 0x00008000 | |||||
| #define TCLK_SHIFT_ARMADA38X 15 | |||||
| #define TCLK_100MHZ 100000000 | #define TCLK_100MHZ 100000000 | ||||
| #define TCLK_125MHZ 125000000 | #define TCLK_125MHZ 125000000 | ||||
| #define TCLK_133MHZ 133333333 | #define TCLK_133MHZ 133333333 | ||||
| #define TCLK_150MHZ 150000000 | #define TCLK_150MHZ 150000000 | ||||
| #define TCLK_166MHZ 166666667 | #define TCLK_166MHZ 166666667 | ||||
| #define TCLK_200MHZ 200000000 | #define TCLK_200MHZ 200000000 | ||||
| #define TCLK_250MHZ 250000000 | #define TCLK_250MHZ 250000000 | ||||
| ▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines | |||||