2018-05-04 18:47:05 +01:00
|
|
|
#ifndef __APB_MISC_H__
|
|
|
|
#define __APB_MISC_H__
|
|
|
|
|
|
|
|
/* FIXME: clean up */
|
|
|
|
|
|
|
|
#define MISC_BASE (0x70000000UL)
|
|
|
|
#define PINMUX_BASE (MISC_BASE + 0x3000)
|
|
|
|
#define PINMUX_AUX_GPIO_PZ1_0 (*(volatile uint32_t *)(PINMUX_BASE + 0x280))
|
|
|
|
|
|
|
|
#define APB_MISC_GP_VGPIO_GPIO_MUX_SEL_0 MAKE_REG32(MISC_BASE + 0xb74)
|
|
|
|
#define APB_MISC_GP_SDMMC1_PAD_CFGPADCTRL_0 MAKE_REG32(MISC_BASE + 0xa98)
|
|
|
|
#define APB_MISC_GP_EMMC4_PAD_CFGPADCTRL_0 MAKE_REG32(MISC_BASE + 0xab4)
|
|
|
|
|
2018-06-05 18:07:14 +01:00
|
|
|
#define SDMMC1_PAD_CAL_DRVUP_SHIFT (20)
|
|
|
|
#define SDMMC1_PAD_CAL_DRVDN_SHIFT (12)
|
|
|
|
#define SDMMC1_PAD_CAL_DRVUP_MASK (0x7Fu << SDMMC1_PAD_CAL_DRVUP_SHIFT)
|
|
|
|
#define SDMMC1_PAD_CAL_DRVDN_MASK (0x7Fu << SDMMC1_PAD_CAL_DRVDN_SHIFT)
|
|
|
|
|
|
|
|
#define CFG2TMC_EMMC4_PAD_DRVUP_COMP_SHIFT (8)
|
|
|
|
#define CFG2TMC_EMMC4_PAD_DRVDN_COMP_SHIFT (2)
|
|
|
|
#define CFG2TMC_EMMC4_PAD_DRVUP_COMP_MASK (0x3Fu << CFG2TMC_EMMC4_PAD_DRVUP_COMP_SHIFT)
|
|
|
|
#define CFG2TMC_EMMC4_PAD_DRVDN_COMP_MASK (0x3Fu << CFG2TMC_EMMC4_PAD_DRVDN_COMP_SHIFT)
|
|
|
|
|
2018-05-04 18:47:05 +01:00
|
|
|
#endif
|