Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sdhci/sdhci_xenon.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
#define XENON_ZNR_SHIFT 8 | #define XENON_ZNR_SHIFT 8 | ||||
#define XENON_ZPR_MASK 0x1F | #define XENON_ZPR_MASK 0x1F | ||||
#define XENON_ZNR_DEF_VALUE 0xF | #define XENON_ZNR_DEF_VALUE 0xF | ||||
#define XENON_ZPR_DEF_VALUE 0xF | #define XENON_ZPR_DEF_VALUE 0xF | ||||
#define XENON_EMMC_PHY_LOGIC_TIMING_ADJUST (XENON_EMMC_PHY_REG_BASE + 0x18) | #define XENON_EMMC_PHY_LOGIC_TIMING_ADJUST (XENON_EMMC_PHY_REG_BASE + 0x18) | ||||
#define XENON_LOGIC_TIMING_VALUE 0x00AA8977 | #define XENON_LOGIC_TIMING_VALUE 0x00AA8977 | ||||
DECLARE_CLASS(sdhci_xenon_driver); | |||||
struct sdhci_xenon_softc { | |||||
device_t dev; /* Controller device */ | |||||
int slot_id; /* Controller ID */ | |||||
struct resource *mem_res; /* Memory resource */ | |||||
struct resource *irq_res; /* IRQ resource */ | |||||
void *intrhand; /* Interrupt handle */ | |||||
struct sdhci_slot *slot; /* SDHCI internal data */ | |||||
uint8_t znr; /* PHY ZNR */ | |||||
uint8_t zpr; /* PHY ZPR */ | |||||
bool slow_mode; /* PHY slow mode */ | |||||
bool wp_inverted; | |||||
bool skip_regulators; /* Don't switch regulators */ | |||||
regulator_t vmmc_supply; | |||||
mw: Drop the ifdef - those fields are checked unconditionally and the driver will not compile for ! | |||||
regulator_t vqmmc_supply; | |||||
#ifdef FDT | |||||
struct sdhci_fdt_gpio *gpio; /* GPIO pins for CD detection. */ | |||||
#endif | |||||
}; | |||||
device_attach_t sdhci_xenon_attach; | |||||
device_detach_t sdhci_xenon_detach; | |||||
#endif /* _SDHCI_XENON_H_ */ | #endif /* _SDHCI_XENON_H_ */ |
Drop the ifdef - those fields are checked unconditionally and the driver will not compile for !EXT_RESOURCES case.