Re: [PULL 38/96] hw/ssi: Extend SPI model

2024-07-29 Thread Chalapathi V
On 29-07-2024 17:38, Cédric Le Goater wrote: On 7/26/24 01:53, Nicholas Piggin wrote: +static void transfer(PnvSpi *s, PnvXferBuffer *payload) +{ +    uint32_t tx; +    uint32_t rx; +    PnvXferBuffer *rsp_payload = NULL; + +    rsp_payload = pnv_spi_xfer_buffer_new(); +    for (int offset = 0

Re: [PULL 38/96] hw/ssi: Extend SPI model

2024-07-29 Thread Peter Maydell
On Mon, 29 Jul 2024 at 11:33, Cédric Le Goater wrote: > > On 7/26/24 01:53, Nicholas Piggin wrote: > > From: Chalapathi V > > > > In this commit SPI shift engine and sequencer logic is implemented. > > Shift engine performs serialization and de-serialization according to the > > control by the se

Re: [PULL 38/96] hw/ssi: Extend SPI model

2024-07-29 Thread Cédric Le Goater
On 7/26/24 01:53, Nicholas Piggin wrote: +static void transfer(PnvSpi *s, PnvXferBuffer *payload) +{ +uint32_t tx; +uint32_t rx; +PnvXferBuffer *rsp_payload = NULL; + +rsp_payload = pnv_spi_xfer_buffer_new(); +for (int offset = 0; offset < payload->len; offset += s->transfer_l

Re: [PULL 38/96] hw/ssi: Extend SPI model

2024-07-29 Thread Cédric Le Goater
On 7/26/24 01:53, Nicholas Piggin wrote: From: Chalapathi V In this commit SPI shift engine and sequencer logic is implemented. Shift engine performs serialization and de-serialization according to the control by the sequencer and according to the setup defined in the configuration registers. S

[PULL 38/96] hw/ssi: Extend SPI model

2024-07-25 Thread Nicholas Piggin
From: Chalapathi V In this commit SPI shift engine and sequencer logic is implemented. Shift engine performs serialization and de-serialization according to the control by the sequencer and according to the setup defined in the configuration registers. Sequencer implements the main control logic