-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: i2c: spi: litex: support interrupts #91050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
drivers: i2c: spi: litex: support interrupts #91050
Conversation
ea1b19b
to
1b0c030
Compare
drivers/spi/spi_litex_litespi.c
Outdated
}; | ||
|
||
struct spi_litex_data { | ||
struct spi_context ctx; | ||
uint8_t dfs; /* dfs in bytes: 1,2 or 4 */ | ||
#if SPI_LITEX_ANY_HAS_IRQ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it above dfs
drivers/spi/spi_litex_litespi.c
Outdated
const struct spi_litex_dev_config *dev_config = dev->config; | ||
|
||
if (litex_read8(dev_config->core_master_ev_pending_addr) & BIT(0)) { | ||
k_sem_give(&data->sem_rx_ready); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should handle Rx directly in isr mode, it will be much faster, no need of any smartphone then.
1b0c030
to
3a14073
Compare
0e3ee4c
to
8755b51
Compare
support interrupts for rx_ready, so we can use the time we are waiting for other stuff. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
remove warnings from CI. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
LiteSPI now has support for multiple CS. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
remove `core_` prefix from code and register names, got dropped in litex in enjoy-digital/litex#2253 Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
support interrupts for rx_ready, so we can use the time we are waiting for other stuff. implement async spi transfers. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
4dbaa33
to
e027a83
Compare
|
support interrupts for rx_ready, so we can use the
time we are waiting for other stuff.