On Fri, Oct 18, 2024 at 9:09 AM Peter Maydell wrote:
>
> On Fri, 18 Oct 2024 at 17:05, Daniel P. Berrangé wrote:
> >
> > On Fri, Oct 18, 2024 at 04:38:24PM +0100, Peter Maydell wrote:
> > > On Thu, 10 Oct 2024 at 18:39, Octavian Purdila wrote:
> >
e_path instead of custom search based on qbus_find]
Signed-off-by: Octavian Purdila
---
include/monitor/qdev.h | 3 ++
include/sysemu/sysemu.h | 1 +
monitor/qmp-cmds.c | 3 ++
system/qdev-monitor.c | 103
system/vl.c
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
On Tue, Sep 3, 2024 at 12:14 AM Marc-André Lureau
wrote:
>
>
>
> On Tue, Aug 6, 2024 at 5:09 AM Octavian Purdila wrote:
>>
>> Add path option to the pty char backend which will create a symbolic
>> link to the given path that points to the allocated PTY.
>>
nable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_usart.h | 294
include/hw/char/flexcomm_usart.h| 33
include/hw/misc/flexcomm.h | 2 +
hw/char/flexcomm_usart.c| 288 +++
hw
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 | 43 ++
hw/misc/i2c_tester.c | 109
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
Add flexcomm function selection unit tests.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-test.c | 82 +
tests/qtest/meson.build | 1 +
2 files changed, 83 insertions(+)
create mode 100644 tests/qtest/flexcomm-test.c
diff --git a/tests/qtest
Add qtest APIs to check the device clock frequency.
Signed-off-by: Octavian Purdila
---
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
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 | 329 +
hw/arm/Kconfig | 2 +
h
Add push/pop and peek tests for fifo32.
Signed-off-by: Octavian Purdila
---
tests/unit/test-fifo.c | 50 ++
1 file changed, 50 insertions(+)
diff --git a/tests/unit/test-fifo.c b/tests/unit/test-fifo.c
index 14153c41fa..d0e05ba95c 100644
--- a/tests/unit
build is configured with
--enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/rt500_clkctl0.h | 509 ++
include/hw/arm/svd/rt500_clkctl1.h | 675 +
include/hw/misc/rt500_clk_freqs.h | 18 +
include/hw/misc/rt500_clkctl0.h
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 | 67
hw/misc/Kconfig | 5
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 usart polling and irq unit tests.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-usart-test.c | 316 ++
tests/qtest/meson.build | 3 +-
2 files changed, 318 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
Signed-off-by: Octavian Purdila
---
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
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/qtest/rt500-clkctl-test.c | 195
tests/qtest/meson.build | 1 +
2
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
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 | 145
tests/qtest/meson.build | 2
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/qtest/flexcomm-i2c-test.c | 170
tests/qtest/meson.build | 2 +-
2 files changed, 171 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/flexcomm-i2c-test.c
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, convert to Resettable
interface, add support for migration]
Signed-off-by: Oct
with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm.h | 70 ++
include/hw/misc/flexcomm.h | 49 +
include/hw/misc/flexcomm_function.h | 47
hw/misc/flexcomm.c | 319
hw/arm/meson.
world/armgcc
ARMGCC_DIR=/usr CFLAGS=-I../../../../../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=flex
FLEXCOMM SPI and USART share FIFO functionality. Add common helper
functions to avoid code duplication.
Signed-off-by: Octavian Purdila
---
include/hw/misc/flexcomm.h | 2 +
include/hw/misc/flexcomm_function.h | 8 +++
hw/misc/flexcomm.c | 83
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 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
rs 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,
add options to control which register and fields are ge
On Thu, Sep 19, 2024 at 2:36 AM Peter Maydell wrote:
>
> On Wed, 18 Sept 2024 at 22:31, Corey Minyard wrote:
> > Generally it's frowned upon to have a ton of extra stuff that's not
> > used. I would think some is ok, like defining bits in registers that
> > aren't used yet, but I have no idea ho
On Wed, Sep 18, 2024 at 1:06 PM Corey Minyard wrote:
>
> On Wed, Sep 18, 2024 at 12:22:47PM -0700, Octavian Purdila wrote:
> > 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
On Wed, Sep 18, 2024 at 2:31 PM Corey Minyard wrote:
>
> On Wed, Sep 18, 2024 at 02:04:58PM -0700, Octavian Purdila wrote:
> > On Wed, Sep 18, 2024 at 1:17???PM Corey Minyard wrote:
> > >
> > > On Wed, Sep 18, 2024 at 12:22:36PM -0700, Octavian Purdila wrote:
Add push/pop and peek tests for fifo32.
Signed-off-by: Octavian Purdila
---
tests/unit/test-fifo.c | 50 ++
1 file changed, 50 insertions(+)
diff --git a/tests/unit/test-fifo.c b/tests/unit/test-fifo.c
index 14153c41fa..d0e05ba95c 100644
--- a/tests/unit
On Wed, Sep 18, 2024 at 1:17 PM Corey Minyard wrote:
>
> On Wed, Sep 18, 2024 at 12:22:36PM -0700, Octavian Purdila wrote:
> > Add support for NXP's flexcomm i2c. It does not support slave mode or
> > DMA.
> >
> > The patch includes an automatically gene
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
\
}
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
Add master mode tests for flexcomm i2c.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-i2c-test.c | 170
tests/qtest/meson.build | 2 +-
2 files changed, 171 insertions(+), 1 deletion(-)
create mode 100644 tests/qtest/flexcomm-i2c-test.c
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
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 | 329 +
hw/arm/Kconfig | 2 +
h
Signed-off-by: Octavian Purdila
---
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
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
c-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_i2c.h | 1190 +
include/hw/i2c/flexcomm_i2c.h | 40 +
include/hw/misc/flexcomm.h|2 +
hw/i2c/flexcomm_i2c.c | 250 ++
hw/misc/flexcomm.c|3 +
h
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, convert to Resettable
interface, add support for migration]
Signed-off-by: Oct
Add qtest APIs to check the device clock frequency.
Signed-off-by: Octavian Purdila
---
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
Add flexcomm usart polling and irq unit tests.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-usart-test.c | 316 ++
tests/qtest/meson.build | 3 +-
2 files changed, 318 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
with --enable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm.h | 112 ++
include/hw/misc/flexcomm.h | 49 +
include/hw/misc/flexcomm_function.h | 47
hw/misc/flexcomm.c | 319
hw/arm/meson.
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
FLEXCOMM SPI and USART share FIFO functionality. Add common helper
functions to avoid code duplication.
Signed-off-by: Octavian Purdila
---
include/hw/misc/flexcomm.h | 2 +
include/hw/misc/flexcomm_function.h | 8 +++
hw/misc/flexcomm.c | 83
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 | 67
hw/misc/Kconfig | 5
IR=/usr CFLAGS=-I../../../../../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 Purdil
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 | 145
tests/qtest/meson.build | 2
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
nable-mcux-soc-svd.
Signed-off-by: Octavian Purdila
---
include/hw/arm/svd/flexcomm_usart.h | 1021 +++
include/hw/char/flexcomm_usart.h| 33 +
include/hw/misc/flexcomm.h |2 +
hw/char/flexcomm_usart.c| 288
hw/misc/flexc
Add flexcomm function selection unit tests.
Signed-off-by: Octavian Purdila
---
tests/qtest/flexcomm-test.c | 82 +
tests/qtest/meson.build | 1 +
2 files changed, 83 insertions(+)
create mode 100644 tests/qtest/flexcomm-test.c
diff --git a/tests/qtest
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
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 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 | 109
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 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
-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
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 |
> 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
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:
>
> 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
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
> ---
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 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
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
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
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
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
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
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
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 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
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
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
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
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 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
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
\
}
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
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
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 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
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 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
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 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
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
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.
&
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 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
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
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
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
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
1 - 100 of 157 matches
Mail list logo