/Zephyr-latest/drivers/mdio/ |
D | mdio_litex_liteeth.c | 47 litex_write8(LITEX_MDIO_CLK, dev_cfg->w_addr); in mdio_litex_read() 49 litex_write8(0, dev_cfg->w_addr); in mdio_litex_read() 68 litex_write8(LITEX_MDIO_DO | LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() 70 litex_write8(LITEX_MDIO_CLK | LITEX_MDIO_DO | LITEX_MDIO_OE, in mdio_litex_write() 73 litex_write8(LITEX_MDIO_DO | LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() 75 litex_write8(LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() 77 litex_write8(LITEX_MDIO_CLK | LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() 79 litex_write8(LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() 89 litex_write8(LITEX_MDIO_CLK, dev_cfg->w_addr); in mdio_litex_turnaround() 91 litex_write8(0, dev_cfg->w_addr); in mdio_litex_turnaround() [all …]
|
/Zephyr-latest/drivers/timer/ |
D | litex_timer.c | 42 litex_write8(TIMER_EV, TIMER_EV_PENDING_ADDR); in litex_timer_irq_handler() 54 litex_write8(TIMER_UPTIME_LATCH, TIMER_UPTIME_LATCH_ADDR); in sys_clock_cycle_get_32() 68 litex_write8(TIMER_UPTIME_LATCH, TIMER_UPTIME_LATCH_ADDR); in sys_clock_cycle_get_64() 88 litex_write8(TIMER_DISABLE, TIMER_EN_ADDR); in sys_clock_driver_init() 93 litex_write8(TIMER_ENABLE, TIMER_EN_ADDR); in sys_clock_driver_init() 94 litex_write8(litex_read8(TIMER_EV_PENDING_ADDR), TIMER_EV_PENDING_ADDR); in sys_clock_driver_init() 95 litex_write8(TIMER_EV, TIMER_EV_ENABLE_ADDR); in sys_clock_driver_init()
|
/Zephyr-latest/drivers/serial/ |
D | uart_litex.c | 60 litex_write8(c, config->rxtx_addr); in uart_litex_poll_out() 81 litex_write8(UART_EV_RX, config->ev_pending_addr); in uart_litex_poll_in() 101 litex_write8(enable | UART_EV_TX, config->ev_enable_addr); in uart_litex_irq_tx_enable() 124 litex_write8(enable & ~(UART_EV_TX), config->ev_enable_addr); in uart_litex_irq_tx_disable() 138 litex_write8(enable | UART_EV_RX, config->ev_enable_addr); in uart_litex_irq_rx_enable() 152 litex_write8(enable & ~(UART_EV_RX), config->ev_enable_addr); in uart_litex_irq_rx_disable() 208 litex_write8(tx_data[i], config->rxtx_addr); in uart_litex_fifo_fill() 235 litex_write8(UART_EV_RX, config->ev_pending_addr); in uart_litex_fifo_read() 291 litex_write8(UART_EV_RX, config->ev_pending_addr); in uart_litex_irq_handler() 329 litex_write8(UART_EV_TX | UART_EV_RX, config->ev_pending_addr); in uart_litex_init()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_litex.c | 31 litex_write8(REG_EN_ENABLE, cfg->reg_en); in pwm_litex_init() 45 litex_write8(REG_EN_DISABLE, cfg->reg_en); in pwm_litex_set_cycles() 48 litex_write8(REG_EN_ENABLE, cfg->reg_en); in pwm_litex_set_cycles()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_litex_liteeth.c | 64 litex_write8(0, config->tx_ev_enable_addr); in eth_initialize() 88 litex_write8(context->txslot, config->tx_slot_addr); in eth_tx() 100 litex_write8(1, config->tx_start_addr); in eth_tx() 171 litex_write8(BIT(0), config->tx_ev_pending_addr); in eth_irq_handler() 179 litex_write8(BIT(0), config->rx_ev_pending_addr); in eth_irq_handler() 206 litex_write8(1, config->rx_ev_enable_addr); in eth_start() 208 litex_write8(BIT(0), config->tx_ev_pending_addr); in eth_start() 209 litex_write8(BIT(0), config->rx_ev_pending_addr); in eth_start() 218 litex_write8(0, config->rx_ev_enable_addr); in eth_stop()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_litex.c | 58 litex_write8(BIT(0), config->ev_pending_addr); in wdt_litex_irq_enable() 60 litex_write8(BIT(0), config->ev_enable_addr); in wdt_litex_irq_enable() 93 litex_write8(0, config->ev_enable_addr); in wdt_litex_disable() 111 litex_write8(CONTROL_FEED_BIT, config->control_addr); in wdt_litex_feed() 188 litex_write8(BIT(0), config->ev_pending_addr); in wdt_litex_isr()
|
/Zephyr-latest/soc/litex/litex_vexriscv/ |
D | reboot.c | 19 litex_write8(BIT(0), LITEX_CTRL_RESET); in sys_arch_reboot()
|
D | soc.h | 71 static inline void litex_write8(unsigned char value, unsigned long addr) in litex_write8() function 136 litex_write8(value, addr); in litex_write()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_litex.c | 47 litex_write8(litex_read8(addr) | mask, addr); in set_bit() 49 litex_write8(litex_read8(addr) & ~mask, addr); in set_bit() 98 litex_write8(litex_read8(config->write_addr) | HIGH_STATE_ON_I2C_LINES, config->write_addr); in i2c_litex_init()
|
/Zephyr-latest/drivers/i2s/ |
D | i2s_litex.c | 34 litex_write8(reg_data | I2S_ENABLE, reg + I2S_CONTROL_OFFSET); in i2s_enable() 46 litex_write8(reg_data & ~(I2S_ENABLE), reg + I2S_CONTROL_OFFSET); in i2s_disable() 58 litex_write8(reg_data | I2S_FIFO_RESET, reg + I2S_CONTROL_OFFSET); in i2s_reset_fifo() 124 litex_write8(reg_data | irq_type, reg + I2S_EV_ENABLE_OFFSET); in i2s_irq_enable() 139 litex_write8(reg_data & ~(irq_type), reg + I2S_EV_ENABLE_OFFSET); in i2s_irq_disable() 151 litex_write8(reg_data, reg + I2S_EV_PENDING_OFFSET); in i2s_clear_pending_irq()
|
/Zephyr-latest/drivers/spi/ |
D | spi_litex.c | 105 litex_write8(((config->operation & SPI_MODE_LOOP) ? 0x1 : 0x0), in spi_config()
|