hw/ssi: Introduce a ssi_get_cs() helper
commit8a211fa3b2189735177f3c529dabc8ebc37042fa
authorCédric Le Goater <clg@kaod.org>
Wed, 7 Jun 2023 04:39:36 +0000 (7 06:39 +0200)
committerCédric Le Goater <clg@kaod.org>
Fri, 1 Sep 2023 09:40:04 +0000 (1 11:40 +0200)
tree841d2d2d2cd898bb1aa37c4b2b2374023e71f54a
parent243975c0553a61646e7c24beaa12f4451536ea6b
hw/ssi: Introduce a ssi_get_cs() helper

Simple routine to retrieve a DeviceState object on a SPI bus using its
CS index. It will be useful for the board to wire the CS lines.

Cc: Alistair Francis <alistair@alistair23.me>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ssi/ssi.c
include/hw/ssi/ssi.h