[U-Boot] [PATCH v2 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion

Mugunthan V N mugunthanvnm at ti.com
Tue Nov 17 08:53:42 CET 2015


On Tuesday 17 November 2015 11:51 AM, Jagan Teki wrote:
> On 4 November 2015 at 13:46, Mugunthan V N <mugunthanvnm at ti.com> wrote:
>> Prepare driver for DM conversion.
>>
>> Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>
>> ---
>>  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



More information about the U-Boot mailing list