Home
last modified time | relevance | path

Searched refs:litex_write8 (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/drivers/mdio/
Dmdio_litex_liteeth.c47 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/
Dlitex_timer.c42 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/
Duart_litex.c60 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/
Dpwm_litex.c31 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/
Deth_litex_liteeth.c64 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/
Dwdt_litex.c58 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/
Dreboot.c19 litex_write8(BIT(0), LITEX_CTRL_RESET); in sys_arch_reboot()
Dsoc.h71 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/
Di2c_litex.c47 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/
Di2s_litex.c34 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/
Dspi_litex.c105 litex_write8(((config->operation & SPI_MODE_LOOP) ? 0x1 : 0x0), in spi_config()