From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Thu, 10 Mar 2016 08:22:53 +0530 Subject: [U-Boot] [RESEND 1/2] stm32: stm32f4: move flash driver to mtd driver location In-Reply-To: <1457565497-9822-1-git-send-email-vikas.manocha@st.com> References: <1457565497-9822-1-git-send-email-vikas.manocha@st.com> Message-ID: <56E0E185.3060709@openedev.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 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? > > Signed-off-by: Vikas Manocha > --- > 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.