From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mugunthan V N Date: Tue, 17 Nov 2015 13:23:42 +0530 Subject: [U-Boot] [PATCH v2 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion In-Reply-To: References: <1446624984-11033-1-git-send-email-mugunthanvnm@ti.com> <1446624984-11033-4-git-send-email-mugunthanvnm@ti.com> Message-ID: <564ADD06.9020207@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 17 November 2015 11:51 AM, Jagan Teki wrote: > On 4 November 2015 at 13:46, Mugunthan V N wrote: >> Prepare driver for DM conversion. >> >> Signed-off-by: Mugunthan V N >> --- >> drivers/spi/ti_qspi.c | 287 ++++++++++++++++++++++++++++---------------------- >> 1 file changed, 161 insertions(+), 126 deletions(-) >> >> diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c >> index 44c5762..003df80 100644 >> --- a/drivers/spi/ti_qspi.c >> +++ b/drivers/spi/ti_qspi.c >> @@ -28,6 +28,7 @@ >> #define QSPI_3_PIN BIT(18) >> #define QSPI_RD_SNGL BIT(16) >> #define QSPI_WR_SNGL (2 << 16) >> +#define QSPI_RD_DUAL (7 << 16) >> #define QSPI_INVAL (4 << 16) >> #define QSPI_RD_QUAD (7 << 16) >> /* device control */ >> @@ -89,46 +90,16 @@ struct ti_qspi_regs { >> struct ti_qspi_priv { >> struct spi_slave slave; >> struct ti_qspi_regs *base; >> + void *ctrl_mod_mmap; > > Looks like this patch manages to prepare for non-dm addition by using > dm functions is it? and other than that some new things got added like > RD_DUAL or ctrl_mod_mmap, please add them separately add do the dm > conversion only on existing code. > Will move all DM variables under #ifdef. Regards Mugunthan V N