/hal_microchip-latest/mec5/drivers/ |
D | mec_qspi.c | 61 static struct mec_qspi_info const *qspi_get_info(struct mec_qspi_regs *base) in qspi_get_info() 81 static uint32_t qspi_get_freq(struct mec_qspi_regs *base) in qspi_get_freq() 93 uint32_t mec_hal_qspi_get_freq(struct mec_qspi_regs *base) in mec_hal_qspi_get_freq() 102 uint32_t mec_hal_qspi_freq_div(struct mec_qspi_regs *base) in mec_hal_qspi_freq_div() 121 uint16_t mec_hal_qspi_freq_div_raw(struct mec_qspi_regs *base) in mec_hal_qspi_freq_div_raw() 158 static uint32_t qspi_byte_time_ns(struct mec_qspi_regs *base) in qspi_byte_time_ns() 186 int mec_hal_qspi_byte_time_ns(struct mec_qspi_regs *base, uint32_t *btime_ns) in mec_hal_qspi_byte_time_ns() 220 static void qspi_set_freq(struct mec_qspi_regs *base, uint32_t freqhz) in qspi_set_freq() 228 int mec_hal_qspi_set_freq(struct mec_qspi_regs *base, uint32_t freqhz) in mec_hal_qspi_set_freq() 239 static void qspi_intr_clr_dis(struct mec_qspi_regs *base) in qspi_intr_clr_dis() [all …]
|
D | mec_kbc.c | 69 int mec_hal_kbc_init(struct mec_kbc_regs *base, uint32_t flags) in mec_hal_kbc_init() 161 int mec_hal_kbc_activate(struct mec_kbc_regs *base, uint8_t enable, uint8_t flags) in mec_hal_kbc_activate() 199 int mec_hal_kbc_girq_en(struct mec_kbc_regs *base, uint32_t flags) in mec_hal_kbc_girq_en() 216 int mec_hal_kbc_girq_dis(struct mec_kbc_regs *base, uint32_t flags) in mec_hal_kbc_girq_dis() 233 int mec_hal_kbc_girq_clr(struct mec_kbc_regs *base, uint32_t flags) in mec_hal_kbc_girq_clr() 250 uint32_t mec_kbc_girq_result(struct mec_kbc_regs *base) in mec_kbc_girq_result() 273 int mec_hal_kbc_is_enabled(struct mec_kbc_regs *base) in mec_hal_kbc_is_enabled() 288 int mec_hal_kbc_is_irq_gen_enabled(struct mec_kbc_regs *base) in mec_hal_kbc_is_irq_gen_enabled() 303 uint8_t mec_hal_kbc_status(struct mec_kbc_regs *base) in mec_hal_kbc_status() 314 void mec_hal_kbc_status_wr(struct mec_kbc_regs *base, uint8_t val, uint8_t msk) in mec_hal_kbc_status_wr() [all …]
|
D | mec_mailbox.c | 49 int mec_hal_mbox_init(struct mec_mbox_regs *base, uint32_t swi_ien_msk, uint32_t flags) in mec_hal_mbox_init() 79 int mec_hal_mbox_girq_ctrl(struct mec_mbox_regs *base, uint8_t enable) in mec_hal_mbox_girq_ctrl() 92 int mec_hal_mbox_girq_clr(struct mec_mbox_regs *base) in mec_hal_mbox_girq_clr() 105 uint32_t mec_hal_mbox_girq_result(struct mec_mbox_regs *base) in mec_hal_mbox_girq_result() 116 int mec_hal_mbox_sirq_set(struct mec_mbox_regs *base, uint8_t bitmap) in mec_hal_mbox_sirq_set() 129 int mec_hal_mbox_sirq_en_mask(struct mec_mbox_regs *base, uint8_t val, uint8_t mask) in mec_hal_mbox_sirq_en_mask() 142 int mec_hal_mbox_get_host_to_ec(struct mec_mbox_regs *base, uint8_t *data) in mec_hal_mbox_get_host_to_ec() 157 int mec_hal_mbox_set_host_to_ec(struct mec_mbox_regs *base, uint8_t data) in mec_hal_mbox_set_host_to_ec() 168 int mec_hal_mbox_get_ec_to_host(struct mec_mbox_regs *base, uint8_t *data) in mec_hal_mbox_get_ec_to_host() 183 int mec_hal_mbox_set_ec_to_host(struct mec_mbox_regs *base, uint8_t data) in mec_hal_mbox_set_ec_to_host() [all …]
|
D | mec_uart.c | 82 static uint32_t uart_baud_divider_get(struct mec_uart_regs *base) in uart_baud_divider_get() 95 static void uart_prog_fifos(struct mec_uart_regs *base, uint8_t fifo_mode) in uart_prog_fifos() 110 int mec_hal_uart_tx_fifo_size(struct mec_uart_regs *base) in mec_hal_uart_tx_fifo_size() 125 int mec_hal_uart_rx_fifo_size(struct mec_uart_regs *base) in mec_hal_uart_rx_fifo_size() 136 int mec_hal_uart_clock_freq_get(struct mec_uart_regs *base, uint32_t *clock_freq) in mec_hal_uart_clock_freq_get() 160 int mec_hal_uart_parity_set(struct mec_uart_regs *base, uint8_t parity) in mec_hal_uart_parity_set() 177 int mec_hal_uart_parity_get(struct mec_uart_regs *base, uint8_t *parity) in mec_hal_uart_parity_get() 198 int mec_hal_uart_word_len_set(struct mec_uart_regs *base, uint8_t word_len) in mec_hal_uart_word_len_set() 214 int mec_hal_uart_word_len_get(struct mec_uart_regs *base, uint8_t *word_len) in mec_hal_uart_word_len_get() 238 int mec_hal_uart_stop_bits_set(struct mec_uart_regs *base, uint8_t stop_bits) in mec_hal_uart_stop_bits_set() [all …]
|
D | mec_dmac.c | 135 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dmac_reset() local 144 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dmac_enable() local 157 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dmac_is_enabled() local 254 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_init() local 276 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_intr_status() local 307 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_intr_status_clr() local 321 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_intr_en() local 340 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_start() local 378 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_is_busy() local 393 struct mec_dmac_regs *base = MEC_DMAC; in mec_hal_dma_chan_halt() local [all …]
|
D | mec_espi_host_dev.c | 113 int mec_hal_espi_iobar_cfg(struct mec_espi_io_regs *base, uint8_t ldn, in mec_hal_espi_iobar_cfg() 140 int mec_hal_espi_iobar_enable(struct mec_espi_io_regs *base, uint8_t ldn, uint8_t enable) in mec_hal_espi_iobar_enable() 164 int mec_hal_espi_iobar_is_enabled(struct mec_espi_io_regs *base, uint8_t ldn) in mec_hal_espi_iobar_is_enabled() 185 uint32_t mec_hal_espi_iobar_mask(struct mec_espi_io_regs *base, uint8_t ldn) in mec_hal_espi_iobar_mask() 208 int mec_hal_espi_iobar_mask_set(struct mec_espi_io_regs *base, uint8_t ldn, uint8_t mask) in mec_hal_espi_iobar_mask_set() 239 int mec_hal_espi_mbar_cfg(struct mec_espi_mem_regs *base, uint8_t ldn, in mec_hal_espi_mbar_cfg() 268 int mec_hal_espi_sram_bar_cfg(struct mec_espi_mem_regs *base, in mec_hal_espi_sram_bar_cfg() 306 int mec_hal_espi_mbar_extended_addr_set(struct mec_espi_mem_regs *base, uint32_t extended_addr) in mec_hal_espi_mbar_extended_addr_set() 317 int mec_hal_espi_sram_bar_extended_addr_set(struct mec_espi_mem_regs *base, in mec_hal_espi_sram_bar_extended_addr_set() 329 int mec_hal_espi_mbar_enable(struct mec_espi_mem_regs *base, uint8_t ldn, uint8_t enable) in mec_hal_espi_mbar_enable() [all …]
|
D | mec_i2c.c | 126 static struct mec_i2c_info const *get_i2c_smb_info(struct mec_i2c_smb_regs *base) in get_i2c_smb_info() 156 static void i2c_timing(struct mec_i2c_smb_regs *base, const struct mec_i2c_freq_cfg *freq_cfg) in i2c_timing() 168 struct mec_i2c_smb_regs *base = ctx->base; in i2c_config() local 416 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_smb_is_bus_owned() local 432 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_smb_ctrl_set() local 456 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_cmd_ack_ctrl() local 487 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_smb_auto_ack_enable() local 506 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_smb_auto_ack_disable() local 526 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_smb_idle_intr_enable() local 595 struct mec_i2c_smb_regs *base = ctx->base; in mec_hal_i2c_smb_status() local [all …]
|
D | mec_ps2.c | 167 int mec_hal_ps2_girq_ctrl(struct mec_ps2_regs *base, uint8_t enable) in mec_hal_ps2_girq_ctrl() 180 int mec_hal_ps2_girq_clr(struct mec_ps2_regs *base) in mec_hal_ps2_girq_clr() 193 uint32_t mec_hal_ps2_girq_result(struct mec_ps2_regs *base) in mec_hal_ps2_girq_result() 204 int mec_hal_ps2_girq_wake_enable(struct mec_ps2_regs *base, uint8_t port, uint8_t enable) in mec_hal_ps2_girq_wake_enable() 227 uint32_t mec_hal_ps2_girq_wake_result(struct mec_ps2_regs *base, uint8_t port) in mec_hal_ps2_girq_wake_result() 242 void mec_hal_ps2_girq_wake_clr(struct mec_ps2_regs *base, uint8_t port) in mec_hal_ps2_girq_wake_clr()
|
D | mec_emi.c | 65 int mec_hal_emi_girq_ctrl(struct mec_emi_regs *base, uint8_t enable) in mec_hal_emi_girq_ctrl() 78 int mec_hal_emi_girq_clr(struct mec_emi_regs *base) in mec_hal_emi_girq_clr() 91 uint32_t mec_hal_emi_girq_result(struct mec_emi_regs *base) in mec_hal_emi_girq_result()
|
D | mec_pwm.c | 39 uintptr_t base; member 60 static struct mec5_pwm_info const *get_pwm_info(uintptr_t base) in get_pwm_info()
|
D | mec_bclink.c | 53 int mec_hal_bcl_init(struct mec_bcl_regs *base, uint32_t flags) in mec_hal_bcl_init()
|
D | mec_bbled.c | 50 static inline uint32_t bbled_fast_idx(uintptr_t base) in bbled_fast_idx()
|
D | mec_i2c_api.h | 127 struct mec_i2c_smb_regs *base; member
|
D | mec_i3c_api.h | 14 uintptr_t base; member
|
D | mec_i3c.c | 37 static struct mec_i3c_info const *get_i3c_info(uintptr_t base) in get_i3c_info()
|
/hal_microchip-latest/mpfs/mpfs_hal/common/ |
D | mss_mpu.c | 238 uint64_t base, in MSS_MPU_configure() 276 uint64_t* base, in MSS_MPU_get_config() 307 uint64_t base = reg; in pmp_get_napot_base_and_range() local
|
/hal_microchip-latest/mpfs/mpfs_hal/common/nwc/ |
D | mss_ddr_debug.c | 751 void load_ddr_pattern(uint64_t base, uint32_t size, uint8_t pattern_offset) in load_ddr_pattern()
|