Re: [PATCH v2 10/10] spi: atmel-quadspi: add support for sam9x60 qspi controller
From: <hidden>
Date: 2019-02-01 14:49:35
Also in:
linux-devicetree, linux-spi, lkml
From: <hidden>
Date: 2019-02-01 14:49:35
Also in:
linux-devicetree, linux-spi, lkml
On 02/01/2019 09:57 AM, Boris Brezillon wrote:
On Fri, 1 Feb 2019 07:07:40 +0000 [off-list ref] wrote:quoted
quoted
quoted
#define QSPI_IFR_TFRTYP_MASK GENMASK(13, 12) #define QSPI_IFR_TFRTYP_TRSFR_READ (0 << 12) #define QSPI_IFR_TFRTYP_TRSFR_READ_MEM (1 << 12)Looks like the read/write flag is on bit 13. Can we just addfor sama5d2 onlyFeel free to prefix macros with the SoC name to make it clear: #define QSPI_IFR_SAMA5D2_WRITE_TRSFR BIT(13)
agreed
cut
quoted
quoted
quoted
+#define QSPI_IFR_APBTFRTYP_READ BIT(24)And this one would be define QSPI_IFR_SAM9X60_READ_TRSFR BIT(24)
I prefer letting this bit named as in the datasheet, QSPI_IFR_APBTFRTYP_READ, and change it if future versions of the IP will modify its sense. It is a READ transfer done on APB, it is more generic this way. If you have a strong opinion on this, please let me know. ta _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel