[U-Boot] [RESEND 1/2] stm32: stm32f4: move flash driver to mtd driver location

Vikas MANOCHA vikas.manocha at st.com
Thu Mar 10 05:18:39 CET 2016


Hi Jagan ,

> On Mar 9, 2016, at 6:53 PM, Jagan Teki <jteki at openedev.com> wrote:
> 
>> On Thursday 10 March 2016 04:48 AM, Vikas Manocha wrote:
>> Same flash driver can be used by other stm32 families like stm32f7.
>> Better place for this driver would be mtd driver location.
> 
> What kind of flash is it, parallel or serial NOR?

It is embedded 256 bit NOR flash.

Cheers,
Vikas 

> 
>> 
>> Signed-off-by: Vikas Manocha <vikas.manocha at st.com>
>> ---
>>  arch/arm/include/asm/arch-stm32f4/stm32.h          | 31 ++++++-------------
>>  arch/arm/mach-stm32/stm32f4/Makefile               |  2 +-
>>  arch/arm/mach-stm32/stm32f4/clock.c                | 10 +------
>>  drivers/mtd/Makefile                               |  1 +
>>  .../stm32f4/flash.c => drivers/mtd/stm32_flash.c   | 35 +++++++++++-----------
>>  drivers/mtd/stm32_flash.h                          | 27 +++++++++++++++++
>>  include/configs/stm32f429-discovery.h              |  1 +
>>  include/flash.h                                    |  2 +-
>>  8 files changed, 59 insertions(+), 50 deletions(-)
>>  rename arch/arm/mach-stm32/stm32f4/flash.c => drivers/mtd/stm32_flash.c (82%)
>>  create mode 100644 drivers/mtd/stm32_flash.h
> 
> --
> Jagan.


More information about the U-Boot mailing list