[U-Boot] [PATCH 2/6] ram: stm32: get base address from DT

Patrice CHOTARD patrice.chotard at st.com
Tue Jul 18 14:38:17 UTC 2017


Hi Simon

On 07/18/2017 04:00 PM, Simon Glass wrote:
> On 13 July 2017 at 06:49,  <patrice.chotard at st.com> wrote:
>> From: Patrice Chotard <patrice.chotard at st.com>
>>
>> Retrieve RAM base address from DT instead of using STM32_SDRAM_FMC
>>
>> For STM32F7, FMC block base address is 0xA0000000, but SDRAM
>> registers are located at offset 0x140 inside FMC block.
>> Update the stm32_fmc_regs fields with all FMC registers
>> to map SDRAM registers at the right address.
>>
>> These additionals registers will be used later.
>>
>> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
>> Reviewed-by: Vikas Manocha <vikas.manocha at st.com>
>> ---
>>   drivers/ram/stm32_sdram.c | 92 ++++++++++++++++++++++++++++++++---------------
>>   1 file changed, 64 insertions(+), 28 deletions(-)
> 
> Reviewed-by: Simon Glass <sjg at chromium.org>
> 
> Can you use dev_read_addr instead of devfdt_get_addr()?

Yes, i will update  this

Thanks
> 


More information about the U-Boot mailing list