spi: cadence-qspi: add an info message for DAC enabled
Signed-off-by: Heinrich Toews <ht@twx-software.de>
This commit is contained in:
@@ -290,6 +290,15 @@ struct cqspi_driver_platdata {
|
||||
|
||||
#define CQSPI_REG_VERSAL_DMA_VAL 0x602
|
||||
|
||||
bool cqspi_dac_enabled(struct cqspi_st *cqspi)
|
||||
{
|
||||
u32 reg;
|
||||
|
||||
reg = readl(cqspi->iobase + CQSPI_REG_CONFIG);
|
||||
|
||||
return (reg & CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL) ? true : false;
|
||||
}
|
||||
|
||||
static int cqspi_wait_for_bit(void __iomem *reg, const u32 mask, bool clr)
|
||||
{
|
||||
u32 val;
|
||||
@@ -1877,6 +1886,9 @@ static int cqspi_probe(struct platform_device *pdev)
|
||||
goto probe_setup_failed;
|
||||
}
|
||||
|
||||
dev_info(dev, "Direct Access Controller (DAC) is %s.\n",
|
||||
cqspi_dac_enabled(cqspi) ? "enabled" : "disabled");
|
||||
|
||||
return 0;
|
||||
probe_setup_failed:
|
||||
cqspi_controller_enable(cqspi, 0);
|
||||
|
||||
Reference in New Issue
Block a user