[U-Boot] [v3 1/4] spi: cadence_qspi: move trigger base configuration in init
vikas
vikas.manocha at st.com
Thu Aug 20 18:27:15 CEST 2015
Hi,
On 08/19/2015 08:46 PM, Marek Vasut wrote:
> On Saturday, August 15, 2015 at 04:15:57 AM, Vikas Manocha wrote:
>> No need to configure indirect trigger address for every read/write.
>>
>> Signed-off-by: Vikas Manocha <vikas.manocha at st.com>
>> ---
>>
>> Changes in v3: added commit message & removed extra bracket.
>> Changes in v2: Rebased to master
>>
>> drivers/spi/cadence_qspi_apb.c | 9 ++-------
>> 1 file changed, 2 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/spi/cadence_qspi_apb.c
>> b/drivers/spi/cadence_qspi_apb.c index d053407..b46e5fe 100644
>> --- a/drivers/spi/cadence_qspi_apb.c
>> +++ b/drivers/spi/cadence_qspi_apb.c
>> @@ -534,6 +534,8 @@ void cadence_qspi_apb_controller_init(struct
>> cadence_spi_platdata *plat)
>>
>> /* Indirect mode configurations */
>> writel((plat->sram_size/2), plat->regbase + CQSPI_REG_SRAMPARTITION);
>> + writel((u32)plat->ahbbase & CQSPI_INDIRECTTRIGGER_ADDR_MASK,
>> + plat->regbase + CQSPI_REG_INDIRECTTRIGGER);
>
> Please drop this (u32) cast, it's misleading and problematic.
ok, will fix in v4.
Rgds,
Vikas
>
> Best regards,
> Marek Vasut
> .
>
More information about the U-Boot
mailing list