Add register access utility functions for device models, like checking
aligned access and reading and writing to a register backstore.
Signed-off-by: Octavian Purdila
---
include/hw/regs.h | 89 +++
1 file changed, 89 insertions(+)
create mode 100644
Add support for NXP's flexcomm usart. It supports interupts and FIFO
access but no DMA.
Signed-off-by: Octavian Purdila
---
hw/arm/svd/meson.build | 4 +
hw/char/flexcomm_usart.c | 302 +++
hw/char/meson.build | 1 +
hw/char/
From: Sebastian Ene
From: Sebastian Ene
Add master and loopback tests for flexcomm spi.
Signed-off-by: Sebastian Ene
Signed-off-by: Octavian Purdila
---
tests/unit/meson.build | 11 ++
tests/unit/test-flexcomm-spi.c | 204 +
2 files changed, 215
comm0
Octavian Purdila (19):
fifo32: add peek function
tests/unit: add fifo test
hw/arm: add SVD file for NXP i.MX RT595
hw: add register access utility functions
hw/misc: add basic flexcomm device model
test/unit: add register access macros and functions
test/unit: add flexcomm unit test
Add basic support for the RT500 SoC. It supports enough peripherals to
run the NXP's microXpresso SDK hello world example.
Signed-off-by: Octavian Purdila
---
hw/arm/Kconfig | 8 +
hw/arm/meson.build | 1 +
hw/arm/rt500.c
Add flexcomm function selection unit tests.
Signed-off-by: Octavian Purdila
---
tests/unit/meson.build | 8 +-
tests/unit/test-flexcomm.c | 215 +
2 files changed, 222 insertions(+), 1 deletion(-)
create mode 100644 tests/unit/test-flexcomm.c
diff
Add polling and irq unit tests for the flexcomm usart device model.
Signed-off-by: Octavian Purdila
---
tests/unit/meson.build | 7 +
tests/unit/test-flexcomm-usart.c | 321 +++
2 files changed, 328 insertions(+)
create mode 100644 tests/unit/test
Picked from:
https://github.com/nxp-mcuxpresso/mcux-soc-svd/blob/main/MIMXRT595S/MIMXRT595S_cm33.xml
NOTE: the file is truncated to keep the email size reasonable. Please
use the link above and download the full file if you want to try out
the patch.
Signed-off-by: Octavian Purdila
---
hw/arm
Add fifo32_peek() that returns the first element from the queue
without popping it.
Signed-off-by: Octavian Purdila
---
include/qemu/fifo32.h | 29 +
1 file changed, 29 insertions(+)
diff --git a/include/qemu/fifo32.h b/include/qemu/fifo32.h
index 4e9fd1b5ef
Add a simple FIFO unit test that test wrap around and push, pop and
peek for both fifo8 and fifo32.
Signed-off-by: Octavian Purdila
---
tests/unit/meson.build | 1 +
tests/unit/test-fifo.c | 98 ++
2 files changed, 99 insertions(+)
create mode 100644
Add a simple SPI peripheral that echoes back received data. Useful for
testing SPI controllers.
Signed-off-by: Octavian Purdila
---
tests/unit/spi_tester.c | 60 +
tests/unit/spi_tester.h | 32 ++
2 files changed, 92 insertions
emory access, aka XIP, for now as simple RAM
memory regions.
Signed-off-by: Octavian Purdila
---
hw/arm/svd/meson.build | 4 +
hw/ssi/Kconfig | 4 +
hw/ssi/flexspi.c | 216 +++
hw/ssi/meson.build | 1 +
hw/ssi/trace-events
controllers.
Signed-off-by: Octavian Purdila
---
hw/arm/svd/meson.build | 8 ++
hw/misc/Kconfig| 3 +
hw/misc/meson.build| 1 +
hw/misc/rt500_rstctl.c | 219 +
hw/misc/trace-events | 4 +
include/hw/misc
(_name) \
const char *_name[sizeof(FLEXCOMM_Type)] = { \
[4088 ... 4091] = "PSELID", \
[4092 ... 4095] = "PID", \
}
Board specific headers contains information about peripheral base
register addresses.
Signed-off-by: Stefan Stanacar
Signed-off-
Add a simple i2c peripheral to be used for testing I2C device
models. The peripheral has a fixed number of registers that can be
read and written.
Signed-off-by: Octavian Purdila
---
tests/unit/i2c_tester.c | 111
tests/unit/i2c_tester.h | 34
upport for accessing 32bit registers with memory transaction
state, e.g.:
/* no register access until a function is selected */
g_assert(reg32_addr_read_raw(f->dev, FLEXCOMM_BASE, &tmp, 4) == MEMTX_ERROR);
Signed-off-by: Octavian Purdila
---
include/hw/regs.h | 2 +-
tests/uni
pport adding the above
mentioned hardware functions in a modular fashion in subsequent
patches as well as switching between functions.
Signed-off-by: Octavian Purdila
---
hw/arm/meson.build | 2 +
hw/arm/svd/meson.build | 4 +
hw/misc/Kconfig| 3 +
hw/misc/flexc
Add test to exercise clocks set and clear, system PLL initialization,
audio PLL initialization, systick and ostimer clock source selection.
Signed-off-by: Octavian Purdila
---
tests/unit/meson.build | 7 +
tests/unit/test-rt500-clkctl.c | 270 +
2 files
Add support for NXP's flexcomm i2c. It does not support slave mode or
DMA.
Signed-off-by: Octavian Purdila
---
hw/arm/svd/meson.build| 4 +
hw/i2c/flexcomm_i2c.c | 224 ++
hw/i2c/meson.build| 1 +
hw/i2c/trace-e
Add master mode tests for flexcomm i2c.
Signed-off-by: Octavian Purdila
---
tests/unit/meson.build | 10 ++
tests/unit/test-flexcomm-i2c.c | 209 +
2 files changed, 219 insertions(+)
create mode 100644 tests/unit/test-flexcomm-i2c.c
diff --git a/tests
It supports system and audio PLL initialization and SYSTICK and
OSTIMER clock source selection.
Signed-off-by: Octavian Purdila
---
hw/arm/svd/meson.build| 8 +
hw/misc/Kconfig | 6 +
hw/misc/meson.build | 2 +
hw/misc/rt500_clkctl0.c
From: Valentin Ghita
From: Valentin Ghita
Add a system bus mock and the necessary memory access functions to be
able to create unit tests for device models.
Signed-off-by: Valentin Ghita
Signed-off-by: Octavian Purdila
---
tests/unit/sysbus-mock.c | 314
Add basic support for the RT595-EVK board, enough to be able to run
the NXP's microXpresso SDK hello world example.
Signed-off-by: Octavian Purdila
---
hw/arm/Kconfig | 5
hw/arm/meson.build | 1 +
hw/arm/rt595-evk.c | 64 ++
3
From: Sebastian Ene
From: Sebastian Ene
Add support for NXP's flexcomm spi. It supports FIFO access,
interrupts and master mode only. It does not support DMA.
Signed-off-by: Sebastian Ene
Signed-off-by: Octavian Purdila
---
hw/arm/svd/meson.build| 4 +
hw/misc/flexc
qmp_capabilities"}
> {"execute": "chardev-add", "arguments": {"id": "bar", "backend": {
"type": "pty", "data": {
Also tested that when a link path is not passed invocations still work,
On Tue, Aug 6, 2024 at 7:06 AM Alex Bennée wrote:
>
> Octavian Purdila writes:
>
> > Picked from:
> >
> > https://github.com/nxp-mcuxpresso/mcux-soc-svd/blob/main/MIMXRT595S/MIMXRT595S_cm33.xml
> >
> > NOTE: the file is truncated to keep the email size re
On Wed, Aug 7, 2024 at 4:24 AM Philippe Mathieu-Daudé wrote:
>
> On 6/8/24 22:31, Octavian Purdila wrote:
> > On Tue, Aug 6, 2024 at 7:06 AM Alex Bennée wrote:
> >>
> >> Octavian Purdila writes:
> >>
> >>> Picked from:
> >>>
On Tue, Aug 6, 2024 at 7:51 AM Philippe Mathieu-Daudé wrote:
>
> Hi Octavian,
>
> Few comments inlined.
>
Hi Philippe,
Thank you for the review!
I have queued fixes for all of the patches in the set where
applicable, I'll wait for more feedback on the rest of the patches
before sending v2.
On Wed, Aug 7, 2024 at 10:11 PM Philippe Mathieu-Daudé
wrote:
>
> Hi Octavian,
>
Hi Philippe,
Thanks for the review!
> On 5/8/24 22:17, Octavian Purdila wrote:
> > This is mostly a stub which completes SPI transactions as noops
> > by masking out the error interrupt
On Thu, Aug 8, 2024 at 2:56 PM John Snow wrote:
>
>
>
> On Mon, Aug 5, 2024 at 4:17 PM Octavian Purdila wrote:
>>
>> From: Stefan Stanacar
>>
>> From: Stefan Stanacar
>>
>> The CMSIS System View Description format(CMSIS-SVD) is an XML based
On Thu, Aug 8, 2024 at 11:34 PM Paolo Bonzini wrote:
>
> On 8/8/24 23:56, John Snow wrote:
> > I haven't read the rest of this series; I'm chiming in solely from the
> > build/python maintainer angle. Do we *always* need pysvd, no matter how
> > QEMU was configured? Adding it to the meson line her
On Fri, Aug 9, 2024 at 2:13 AM Daniel P. Berrangé wrote:
>
> On Tue, Aug 06, 2024 at 01:31:51PM -0700, Octavian Purdila wrote:
> > On Tue, Aug 6, 2024 at 7:06 AM Alex Bennée wrote:
> > >
> > > Octavian Purdila writes:
> > >
> > > > Picked from
On Mon, Aug 12, 2024 at 8:27 AM Peter Maydell wrote:
>
Hi Peter,
Thanks for the review!
> On Mon, 5 Aug 2024 at 21:17, Octavian Purdila wrote:
> >
> > From: Stefan Stanacar
> >
> > From: Stefan Stanacar
> >
> > The CMSIS System View Des
On Mon, Aug 12, 2024 at 9:22 AM Daniel P. Berrangé wrote:
>
> On Mon, Aug 12, 2024 at 05:10:52PM +0100, Peter Maydell wrote:
> > On Mon, 5 Aug 2024 at 21:17, Octavian Purdila wrote:
> > > It also introduces unit tests for device models. To allow accessing
> > > regi
On Mon, Aug 12, 2024 at 8:33 AM Peter Maydell wrote:
>
> On Mon, 5 Aug 2024 at 21:17, Octavian Purdila wrote:
> >
> > Add register access utility functions for device models, like checking
> > aligned access and reading and writing to a register backstore.
>
>
>
On Mon, Aug 12, 2024 at 3:43 PM Richard Henderson
wrote:
>
> On 8/13/24 03:56, Octavian Purdila wrote:
> >>>typedef struct {
> >>> ...
> >>> union {
> >>>uint32_t PSELID; /* 0x0FF8 Peripheral Select and
../../../CMSIS/CMSIS/Core/Include \
sh build_flash_debug.sh
qemu-system-arm --machine rt595-evk -kernel flash_debug/hello_world.elf \
-global armv7m.init-nsvtor=0x08001000 -global
armv7m.init-svtor=0x08001000 \
-chardev stdio,id=flexcomm0
Octavian Purdila (19):
fifo32: add p
: Octavian Purdila
---
tests/unit/sysbus-mock.h | 82 ++
tests/unit/sysbus-mock.c | 312 +++
2 files changed, 394 insertions(+)
create mode 100644 tests/unit/sysbus-mock.h
create mode 100644 tests/unit/sysbus-mock.c
diff --git a/tests/unit/sysbus-mock.h b
Add fifo32_peek() that returns the first element from the queue
without popping it.
Signed-off-by: Octavian Purdila
---
include/qemu/fifo32.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/qemu/fifo32.h b/include/qemu/fifo32.h
index 4e9fd1b5ef
Add register access utility functions for device models, like checking
aligned access.
Signed-off-by: Octavian Purdila
---
include/hw/regs.h | 34 ++
1 file changed, 34 insertions(+)
create mode 100644 include/hw/regs.h
diff --git a/include/hw/regs.h b/include
Add a simple FIFO unit test that test wrap around and push, pop and
peek for both fifo8 and fifo32.
Signed-off-by: Octavian Purdila
---
tests/unit/test-fifo.c | 97 ++
tests/unit/meson.build | 1 +
2 files changed, 98 insertions(+)
create mode 100644
c-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_i2c.h | 1134 +
include/hw/i2c/flexcomm_i2c.h | 27 +
include/hw/misc/flexcomm.h|3 +
hw/i2c/flexcomm_i2c.c | 207 ++
hw/misc/flexcomm.c|6 +
h
Add a simple SPI peripheral that echoes back received data. Useful for
testing SPI controllers.
Signed-off-by: Octavian Purdila
---
tests/unit/spi_tester.h | 32 +++
tests/unit/spi_tester.c | 57 +
2 files changed, 89 insertions
resses.
Signed-off-by: Stefan Stanacar
[tavip: pylint fixes, generate layout with qemu register fields
instead of bitfields, generate register names, wmask and reset values]
Signed-off-by: Octavian Purdila
---
meson.build | 4 +
scripts/svd-gen-header.py | 343 +
Add a simple i2c peripheral to be used for testing I2C device
models. The peripheral has a fixed number of registers that can be
read and written.
Signed-off-by: Octavian Purdila
---
tests/unit/i2c_tester.h | 30 +++
tests/unit/i2c_tester.c | 108
n the
build is configured with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm.h | 109 +
include/hw/misc/flexcomm.h| 70 +
hw/misc/flexcomm.c| 283 ++
hw/arm/meson.build| 2
Add basic support for the RT595-EVK board, enough to be able to run
the NXP's microXpresso SDK hello world example.
Signed-off-by: Octavian Purdila
---
hw/arm/rt595-evk.c | 64 ++
hw/arm/Kconfig | 5
hw/arm/meson.build | 1 +
3
Add flexcomm function selection unit tests.
Signed-off-by: Octavian Purdila
---
tests/unit/test-flexcomm.c | 212 +
tests/unit/meson.build | 8 +-
2 files changed, 219 insertions(+), 1 deletion(-)
create mode 100644 tests/unit/test-flexcomm.c
diff
e, e.g.:
/* no register access until a function is selected */
g_assert(reg32_addr_read_raw(f->dev, FLEXCOMM_BASE, &tmp, 4) == MEMTX_ERROR);
Signed-off-by: Octavian Purdila
---
tests/unit/reg-utils.h | 97 ++
1 file changed, 97 insertions(+)
creat
nable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_usart.h | 959
include/hw/char/flexcomm_usart.h| 20 +
include/hw/misc/flexcomm.h | 5 +
hw/char/flexcomm_usart.c| 292 +
hw/misc/flexc
arget when the
build is configured with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/rt500.h | 44 +
include/hw/arm/svd/rt500.h | 65 +++
hw/arm/rt500.c | 335 +
hw/arm/Kconfig | 8 +
h
controllers.
The patch includes automatically generated headers which contains the
register layout and helpers.
The header can be regenerated with the svd-rstctl0 and svd-rstctl1
targets when the build is configured with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm
Add test to exercise clocks set and clear, system PLL initialization,
audio PLL initialization, systick and ostimer clock source selection.
Signed-off-by: Octavian Purdila
---
tests/unit/test-rt500-clkctl.c | 263 +
tests/unit/meson.build | 7 +
2 files
emory access, aka XIP, for now as simple RAM
memory regions.
The patch includes an automatically generated header which contains
the register layout and helpers.
The header can be regenerated with the svd-flexspi target when the
build is configured with --enable-mcux-soc-svd.
Signed-off-by: Oct
Add polling and irq unit tests for the flexcomm usart device model.
Signed-off-by: Octavian Purdila
---
tests/unit/test-flexcomm-usart.c | 320 +++
tests/unit/meson.build | 7 +
2 files changed, 327 insertions(+)
create mode 100644 tests/unit/test
From: Sebastian Ene
Add master and loopback tests for flexcomm spi.
Signed-off-by: Sebastian Ene
[tavip: add master mode test]
Signed-off-by: Octavian Purdila
---
tests/unit/test-flexcomm-spi.c | 201 +
tests/unit/meson.build | 12 ++
2 files changed
generated. It is
unlikely that already generated headers will be updated, with the
exception of minor hardware revisions.
Also export the rt595 SVD file which is going to be used by subsequent
patches.
TBD: switch to a qemu gitlab fork before merge
Signed-off-by: Octavian Purdila
---
hw/arm/svd
Add master mode tests for flexcomm i2c.
Signed-off-by: Octavian Purdila
---
tests/unit/test-flexcomm-i2c.c | 210 +
tests/unit/meson.build | 10 ++
2 files changed, 220 insertions(+)
create mode 100644 tests/unit/test-flexcomm-i2c.c
diff --git a/tests
xcomm-spi target when
the build is configured with --enable-mcux-soc-svd.
Signed-off-by: Sebastian Ene
[tavip: add suport for CFG.SPOL, CFG.LSBF, TX control flags per FIFO
entry and 8/16 bit access to FIFORD and FIFOWR]
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_spi.h
On Thu, Aug 22, 2024 at 6:28 AM Peter Maydell wrote:
>
> On Sat, 17 Aug 2024 at 11:26, Octavian Purdila wrote:
> >
> > This patch set adds support for NXP's RT500 MCU [1] and the RT595
> > EVK[2]. More RT500 device models will be submitted in future patch sets.
&
-monitor pty
Co-authored-by: Paulo Neves
Signed-off-by: Octavian Purdila
---
chardev/char-pty.c | 34 ++
chardev/char.c | 5 +
qapi/char.json | 4 ++--
qemu-options.hx| 14 ++
4 files changed, 51 insertions(+), 6 deletions(-)
diff --git
tested that when a link path is not passed invocations still work, e.g.:
qemu-system-x86_64 -monitor pty
Co-authored-by: Paulo Neves
Signed-off-by: Paulo Neves
[OP: rebase and address original patch review comments]
Signed-off-by: Octavian Purdila
---
Changes since v1:
* Keep the original
tested that when a link path is not passed invocations still work, e.g.:
qemu-system-x86_64 -monitor pty
Co-authored-by: Paulo Neves
Signed-off-by: Paulo Neves
[OP: rebase and address original patch review comments]
Signed-off-by: Octavian Purdila
Reviewed-by: Marc-André Lureau
---
Changes
xcomm-spi target when
the build is configured with --enable-mcux-soc-svd.
Signed-off-by: Sebastian Ene
[tavip: add suport for CFG.SPOL, CFG.LSBF, TX control flags per FIFO
entry and 8/16 bit access to FIFORD and FIFOWR]
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_spi.h |
Add fifo32_peek() that returns the first element from the queue
without popping it.
Signed-off-by: Octavian Purdila
---
include/qemu/fifo32.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/qemu/fifo32.h b/include/qemu/fifo32.h
index 4e9fd1b5ef
Add master mode tests for flexcomm i2c.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-i2c-test.c | 169
tests/qtest/meson.build | 2 +-
2 files changed, 170 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/flexcomm-i2c-test.c
n the
build is configured with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm.h | 114 +
include/hw/misc/flexcomm.h| 70
hw/misc/flexcomm.c| 302 ++
hw/arm/meson.build| 2
Add basic support for the RT595-EVK board, enough to be able to run
the NXP's microXpresso SDK hello world example.
Signed-off-by: Octavian Purdila
---
hw/arm/rt595-evk.c | 64 ++
hw/arm/Kconfig | 5
hw/arm/meson.build | 1 +
3
Add a simple SPI peripheral that echoes back received data. Useful for
testing SPI controllers.
Signed-off-by: Octavian Purdila
---
include/hw/misc/spi_tester.h | 32 ++
hw/misc/spi_tester.c | 52
hw/misc/Kconfig | 5
Add a simple FIFO unit test that test wrap around and push, pop and
peek for both fifo8 and fifo32.
Signed-off-by: Octavian Purdila
---
tests/unit/test-fifo.c | 97 ++
tests/unit/meson.build | 1 +
2 files changed, 98 insertions(+)
create mode 100644
Signed-off-by: tavip
---
hw/ssi/ssi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c
index 3f357e8f16..d1f3ce7c22 100644
--- a/hw/ssi/ssi.c
+++ b/hw/ssi/ssi.c
@@ -105,7 +105,9 @@ static void ssi_peripheral_realize(DeviceState *dev, Error
**errp
Add test to exercise clocks set and clear, system PLL initialization,
audio PLL initialization, systick and ostimer clock source selection.
Signed-off-by: Octavian Purdila
---
tests/qtest/rt500-clkctl-test.c | 195
tests/qtest/meson.build | 1 +
2
\
}
Board specific headers contains information about peripheral base
register addresses.
Signed-off-by: Stefan Stanacar
[tavip: pylint fixes, generate layout with qemu register fields
instead of bitfields, generate register names, romask and reset values]
Signed-off-by: Octavian Purdi
emory access, aka XIP, for now as simple RAM
memory regions.
The patch includes an automatically generated header which contains
the register layout and helpers.
The header can be regenerated with the svd-flexspi target when the
build is configured with --enable-mcux-soc-svd.
Signed-off-by: Oct
Add utility macros for accessing register or register bit fields in
tests, e.g.:
REG32_WRITE(FLEXCOMM, PSELID, persel);
g_assert(REG32_READ_FIELD(FLEXCOMM, PSELID, PERSEL) == persel);
Signed-off-by: Octavian Purdila
---
tests/qtest/reg-utils.h | 70
controllers.
The patch includes automatically generated headers which contains the
register layout and helpers.
The header can be regenerated with the svd-rstctl0 and svd-rstctl1
targets when the build is configured with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm
Add flexcomm function selection unit tests.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-test.c | 86 +
tests/qtest/meson.build | 1 +
2 files changed, 87 insertions(+)
create mode 100644 tests/qtest/flexcomm-test.c
diff --git a/tests/qtest
c-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_i2c.h | 1192 +
include/hw/i2c/flexcomm_i2c.h | 27 +
include/hw/misc/flexcomm.h|3 +
hw/i2c/flexcomm_i2c.c | 222 ++
hw/misc/flexcomm.c|6 +
h
arget when the
build is configured with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/rt500.h | 44 +
include/hw/arm/svd/rt500.h | 63 +++
hw/arm/rt500.c | 335 +
hw/arm/Kconfig | 2 +
h
Add a simple i2c peripheral to be used for testing I2C device
models. The peripheral has a fixed number of registers that can be
read and written.
Signed-off-by: Octavian Purdila
---
include/hw/misc/i2c_tester.h | 30
hw/misc/i2c_tester.c | 94
generated. It is
unlikely that already generated headers will be updated, with the
exception of minor hardware revisions.
Also export the rt595 SVD file which is going to be used by subsequent
patches.
TBD: switch to a qemu gitlab fork before merge
Signed-off-by: Octavian Purdila
---
hw/arm/svd
Add qtest APIs to check the device clock frequency.
Signed-off-by: tavip
---
include/hw/qdev-clock.h | 10 +++
tests/qtest/libqtest-single.h | 24 +
tests/qtest/libqtest.h| 22 +++
hw/core/qdev-clock.c | 2 +-
system/qtest.c
nable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_usart.h | 1023 +++
include/hw/char/flexcomm_usart.h| 20 +
include/hw/misc/flexcomm.h |5 +
hw/char/flexcomm_usart.c| 306
hw/misc/flexc
From: Sebastian Ene
Add master and loopback tests for flexcomm spi.
Signed-off-by: Sebastian Ene
[tavip: add master mode test, convert to qtest]
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-spi-test.c | 144
tests/qtest/meson.build | 2
debug.sh
qemu-system-arm --machine rt595-evk -kernel flash_debug/hello_world.elf \
-global armv7m.init-nsvtor=0x08001000 -global
armv7m.init-svtor=0x08001000 \
-chardev stdio,id=flexcomm0
Octavian Purdila (21):
fifo32: add peek function
tests/unit: add fifo test
Add mcux-soc
Add flexcomm usart polling and irq unit tests.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-usart-test.c | 314 ++
tests/qtest/meson.build | 3 +-
2 files changed, 316 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/flexcomm-usart
Add read*/write*_fail qtest APIs to check for memory access failures.
Signed-off-by: Octavian Purdila
---
tests/qtest/libqtest-single.h | 92 +++
tests/qtest/libqtest.h| 76 +
system/qtest.c| 44
internal FIFO buffer.
>
> Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
> util/fifo8.c | 7 ---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/util/fifo8.c b/util/fifo8.c
> index 61bce9d9a0..5faa814a6e 100644
> --- a/util
On Wed, Aug 28, 2024 at 5:23 AM Mark Cave-Ayland
wrote:
>
> This allows uses to peek the byte at the current head of the FIFO.
>
> Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
> include/qemu/fifo8.h | 11 +++
> util/fifo8.c |
On Wed, Aug 28, 2024 at 5:23 AM Mark Cave-Ayland
wrote:
>
> This is to emphasise that the function returns a pointer to the internal FIFO
> buffer.
>
> Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
> util/fifo8.c | 8
> 1 file cha
On Wed, Aug 28, 2024 at 5:23 AM Mark Cave-Ayland
wrote:
>
> The skip parameter specifies the number of bytes to be skipped from the
> current
> FIFO head before the peek or pop operation.
>
> Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
> util/fifo8.c | 8 +++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/util/fifo8.c b/util/fifo8.c
> index efe0117b1f..5453cbc1b0 100644
> --- a/util/fifo8.c
> +++ b/util/fifo8.c
>
On Wed, Aug 28, 2024 at 5:23 AM Mark Cave-Ayland
wrote:
>
> This tests the Fifo8 implementation for basic operations as well as testing
> for
> the correct *_bufptr() including handling wraparound of the internal FIFO
> buffer.
>
> Signed-off-by: Mark Cave-Ayland
Reviewed
On Wed, Aug 28, 2024 at 5:23 AM Mark Cave-Ayland
wrote:
>
> The upcoming peek functionality will require passing a non-zero value to
> fifo8_peekpop_bufptr().
>
> Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
> util/fifo8.c | 4 ++--
> 1 file cha
> Signed-off-by: Mark Cave-Ayland
Reviewed-by: Octavian Purdila
> ---
> util/fifo8.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/util/fifo8.c b/util/fifo8.c
> index 5453cbc1b0..1031ffbe7e 100644
> --- a/util/fifo8.c
> +++ b/util/fif
-Ayland
Reviewed-by: Octavian Purdila
> ---
> include/qemu/fifo8.h | 14 ++
> util/fifo8.c | 5 +
> 2 files changed, 19 insertions(+)
>
> diff --git a/include/qemu/fifo8.h b/include/qemu/fifo8.h
> index d1d06754d8..d09984b146 100644
> --- a/incl
e
On Fri, Sep 6, 2024 at 4:53 AM Philippe Mathieu-Daudé wrote:
>
> Hi Octavian,
>
Hi Philippe,
> On 27/8/24 08:45, Octavian Purdila wrote:
> > Add fifo32_peek() that returns the first element from the queue
> > without popping it.
> >
>
On Thu, Jul 18, 2024 at 3:22 AM Markus Armbruster wrote:
>
> Daniel P. Berrangé writes:
>
> > On Thu, Jul 18, 2024 at 08:15:01AM +0200, Markus Armbruster wrote:
> >> Looks like this one fell through the cracks.
> >>
> >> Octavian Purdila writes:
&
On Tue, Oct 8, 2024 at 4:27 AM Mark Cave-Ayland
wrote:
>
> On 08/10/2024 02:18, Octavian Purdila wrote:
>
> > Add fifo32_peek() that returns the first element from the queue
> > without popping it.
> >
> > Signed-off-by: Octavian Purdila
> &g
c-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_i2c.h | 229 +++
include/hw/i2c/flexcomm_i2c.h | 40 +
include/hw/misc/flexcomm.h| 2 +
hw/i2c/flexcomm_i2c.c | 250 ++
hw/misc/flexc
1 - 100 of 157 matches
Mail list logo