mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-11 05:23:58 +00:00
b50ff6f524
Implement some GPIO inputs which a board can connect up to set the MMC card status bits in the MCI register. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
19 lines
461 B
C
19 lines
461 B
C
#ifndef PRIMECELL_H
|
|
#define PRIMECELL_H
|
|
|
|
/* Declarations for ARM PrimeCell based periperals. */
|
|
/* Also includes some devices that are currently only used by the
|
|
ARM boards. */
|
|
|
|
/* pl080.c */
|
|
void *pl080_init(uint32_t base, qemu_irq irq, int nchannels);
|
|
|
|
/* arm_sysctl.c */
|
|
void arm_sysctl_init(uint32_t base, uint32_t sys_id, uint32_t proc_id);
|
|
|
|
/* arm_sysctl GPIO lines */
|
|
#define ARM_SYSCTL_GPIO_MMC_WPROT 0
|
|
#define ARM_SYSCTL_GPIO_MMC_CARDIN 1
|
|
|
|
#endif
|