/hal_microchip-2.7.6/mec/mec1501/component/ |
D | adc.h | 96 #define MCHP_ADC_STATUS_CHAN(n) BIT(n) argument 102 #define MCHP_ADC_SCS_CH(n) BIT((n) & 0x07) argument 108 #define MCHP_ADC_RCS_CH(n) BIT((n) & 0x07) argument 134 #define MCHP_ADC_CH_VREF_SEL_MASK(n) (0x03u << (((n) & 0x07) << 1)) argument 135 #define MCHP_ADC_CH_VREF_SEL_PAD(n) 0u argument 136 #define MCHP_ADC_CH_VREF_SEL_GPIO(n) (0x01u << (((n) & 0x07) << 1)) argument 178 #define MCHP_ADC_CH_NUM(n) ((n) & MCHP_ADC_MAX_CHAN_MASK) argument 179 #define MCHP_ADC_CH_OFS(n) (MCHP_ADC_CH_NUM(n) << 2) argument 180 #define MCHP_ADC_CH_ADDR(n) (MCHP_ADC_BASE_ADDR + MCHP_ADC_CH_OFS(n)) argument 182 #define MCHP_ADC_RD_CHAN(n) REG32(MCHP_ADC_CH_ADDR(n)) argument
|
D | ecia.h | 67 #define MCHP_NVIC_SET_EN(n) \ argument 70 #define MCHP_NVIC_CLR_EN(n) \ argument 73 #define MCHP_NVIC_SET_PEND(n) \ argument 76 #define MCHP_NVIC_CLR_PEND(n) \ argument 144 #define MCHP_GIRQ_TO_AGGR_NVIC(n) (((n) < 23) ? ((n)-8) : ((n)-9)) argument 147 #define MCHP_GIRQ_SRC_ADDR(n) \ argument 150 #define MCHP_GIRQ_ENSET_ADDR(n) \ argument 153 #define MCHP_GIRQ_RESULT_ADDR(n) \ argument 156 #define MCHP_GIRQ_ENCLR_ADDR(n) \ argument 271 #define MCHP_GIRQ_BLK_SETEN(n) \ argument [all …]
|
D | pwm.h | 51 #define MCHP_PWM_ADDR(n) (MCHP_PWM_BASE_ADDR + \ argument 102 #define MCHP_PWM_CFG_CLK_PRE_DIV(n) ( \ argument 114 #define MCHP_PWM_COUNT_ON(n) \ argument 117 #define MCHP_PWM_COUNT_OFF(n) \ argument 120 #define MCHP_PWM_CONFIG(n) \ argument
|
D | acpi_ec.h | 57 #define MCHP_ACPI_EC_ADDR(n) (MCHP_ACPI_EC_BASE_ADDR +\ argument 95 #define MCHP_ACPI_EC_IBF_NVIC(n) (45u + ((uint32_t)(n) << 1)) argument 96 #define MCHP_ACPI_EC_OBE_NVIC(n) (46u + ((uint32_t)(n) << 1)) argument 97 #define MCHP_ACPI_EC_IBF_GIRQ_POS(n) (5u + ((uint32_t)(n) << 1)) argument 98 #define MCHP_ACPI_EC_OBE_GIRQ_POS(n) (6u + ((uint32_t)(n) << 1)) argument 99 #define MCHP_ACPI_EC_IBF_GIRQ(n) (1u << MCHP_ACPI_EC_IBF_GIRQ_POS(n)) argument 100 #define MCHP_ACPI_EC_OBE_GIRQ(n) (1u << MCHP_ACPI_EC_OBE_GIRQ_POS(n)) argument
|
D | espi_vw.h | 68 #define ESPI_M2SW1_SRC_SEL_POS(n) ((n) << 3) argument 69 #define ESPI_M2SW1_SRC_SEL_MASK(n) ((0x0fu) << (ESPI_M2SW1_SRC_SEL_POS(n))) argument 70 #define ESPI_M2SW1_SRC_SEL_VAL(n, v) (((uint32_t)(v) & 0x0fu) << (ESPI_M2SW1_SRC_SEL_POS(n))) argument 83 #define ESPI_M2SW2_SRC_POS(n) ((n) << 3) argument 84 #define ESPI_M2SW2_SRC_MASK(n) ((ESPI_M2SW2_SRC_MASK0) << (ESPI_M2SW2_SRC_POS(n))) argument 85 #define ESPI_M2SW2_SRC_VAL(n, v) (((uint32_t)(v) & 0x0fu) << (ESPI_M2SW2_SRC_POS(n))) argument 135 #define ESPI_S2MW1_CHG_POS(n) ((n) + 16u) argument 136 #define ESPI_S2MW1_CHG(v, n) (((uint32_t)(v) >> ESPI_S2MW1_CHG_POS(n)) & 0x01) argument 149 #define ESPI_S2MW1_SRC_POS(n) ((n) << 3) argument 150 #define ESPI_S2MW1_SRC(v, n) (((uint32_t)(v) & 0x01) << (ESPI_S2MW1_SRC_POS(n))) argument
|
D | pcr.h | 93 #define MCHP_PCR_SLP_EN_ADDR(n) \ argument 95 #define MCHP_PCR_CLK_REQ_ADDR(n) \ argument 97 #define MCHP_PCR_PERIPH_RESET_ADDR(n) \ argument 339 #define MCHP_PCR_SLP_EN(n) REG32(MCHP_PCR_SLP_EN_ADDR(n)) argument 340 #define MCHP_PCR_CLK_REQ_RO(n) REG32(MCHP_PCR_CLK_REQ_ADDR(n)) argument 351 #define MCHP_PCR_PERIPH_RST(n) REG32(MCHP_PCR_PERIPH_RESET_ADDR(n)) argument 353 #define MCHP_PCR_DEV_SLP_EN_CLR(n, b) \ argument 356 #define MCHP_PCR_DEV_SLP_EN_SET(n, b) \ argument
|
D | qmspi.h | 103 #define MCHP_QMSPI_DESCR_OFS(n) (0x30u + ((uint32_t)(n) * 4U)) argument 118 #define MCHP_QMSPI_DESCR_ADDR(n) \ argument 158 #define MCHP_QMSPI_M_CS(n) \ argument 209 #define MCHP_QMSPI_C_DESCR(n) (((uint32_t)(n) & \ argument 213 #define MCHP_QMSPI_C_NEXT_DESCR(n) (((uint32_t)(n) & \ argument 227 #define MCHP_QMSPI_C_XFR_NUNITS(n) ((uint32_t)(n) << \ argument 229 #define MCHP_QMSPI_C_XFR_NUNITS_GET(n) (((uint32_t)(n) >> \ argument
|
D | timer.h | 57 #define MCHP_B16TMR_ADDR(n) \ argument 64 #define MCHP_B32TMR_ADDR(n) \ argument 185 #define MCHP_HTMR_ADDR(n) \ argument
|
D | gpio.h | 60 #define MCHP_GPIO_CTRL_ADDR(n) \ argument 63 #define MCHP_GPIO_CTRL2_ADDR(n) \ argument 77 #define MCHP_GPIO_PARIN_ADDR(n) ((uintptr_t)(MCHP_GPIO_BASE_ADDR) +\ argument 108 #define MCHP_GPIO_PAROUT_ADDR(n) ((uintptr_t)(MCHP_GPIO_BASE_ADDR) +\ argument
|
D | tach.h | 51 #define MCHP_TACH_ADDR(n) (MCHP_TACH_BASE_ADDR + \ argument
|
D | led.h | 145 #define MCHP_LED_ADDR(n) \ argument
|
D | uart.h | 56 #define MCHP_UART_BASE_ADDR(n) \ argument
|
D | i2c.h | 50 #define MCHP_I2C_BASE_ADDR(n) \ argument
|
D | dma.h | 50 #define MCHP_DMA_CHAN_ADDR(n) ((uintptr_t)(MCHP_DMA_CHAN0_ADDR) +\ argument
|
D | smb.h | 52 #define MCHP_I2C_SMB_BASE_ADDR(n) \ argument
|
/hal_microchip-2.7.6/mec/mec1501/ |
D | MEC1501hsz.h | 318 #define DMA_CHAN_BASE(n) (DMA_BASE + (((n)+1)<<6)) argument 333 #define SMB_BASE(n) (PERIPH_BASE + 0x4000u + ((n)<<10)) argument 339 #define I2C_BASE(n) (PERIPH_BASE + 0x5100u + ((n)<<8)) argument 343 #define PWM_BASE(n) (PERIPH_BASE + 0x5800u + ((n)<<4)) argument 353 #define TACH_BASE(n) (PERIPH_BASE + 0x6000u + ((n)<<4)) argument 389 #define ACPI_EC_BASE(n) (PERIPH_BASE + 0xf0800u + ((n)<<10)) argument 396 #define UART_BASE(n) (PERIPH_BASE + 0xf2400u + ((n)<<10)) argument
|
/hal_microchip-2.7.6/mec/common/ |
D | mec_defs.h | 37 #define BIT(n) (1ul << (n)) argument 41 #define SHLU32(v, n) ((unsigned long)(v) << (n)) argument
|