aspeed/smc: Add extra controls to request DMA
authorCédric Le Goater <clg@kaod.org>
Sat, 1 May 2021 08:03:52 +0000 (10:03 +0200)
committerCédric Le Goater <clg@kaod.org>
Sat, 1 May 2021 08:03:52 +0000 (10:03 +0200)
commit1769a70e54181bb3e54783f16350892e847a3a89
tree1fdb3547660794eba99772ffdfd0c138ce7abb1c
parent1c5ee69da5e65cc04055b304a784d82fd04de764
aspeed/smc: Add extra controls to request DMA

The AST2600 SPI controllers have a set of bits to request/grant DMA
access. Add a new SMC feature for these controllers and use it to
check access to the DMA registers.

Cc: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20210407171637.777743-16-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ssi/aspeed_smc.c
include/hw/ssi/aspeed_smc.h