cfi_flash: move include/cfi_flash.c next to driver
This file has no useful things for others than the driver, so move it next to the driver and remove the corresponding include from other files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
582da05383
commit
e6b8bdc0c5
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <fec.h>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <asm/armlinux.h>
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include <asm/armlinux.h>
|
||||
#include <s1d13706fb.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <common.h>
|
||||
#include <errno.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <mach/imx-regs.h>
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <environment.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <mach/imx-regs.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <mach/imx-regs.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <fec.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <mach/netx-regs.h>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <driver.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <mach/mpc5xxx.h>
|
||||
#include <mach/fec.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <mach/imx-regs.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <mach/imx-regs.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <fec.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <asm/mach-types.h>
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
#include <fs.h>
|
||||
|
|
|
@ -40,9 +40,9 @@
|
|||
#include <clock.h>
|
||||
#include <init.h>
|
||||
#include <malloc.h>
|
||||
#include <cfi_flash.h>
|
||||
#include <asm/io.h>
|
||||
#include <errno.h>
|
||||
#include "cfi_flash.h"
|
||||
|
||||
/*
|
||||
* This file implements a Common Flash Interface (CFI) driver for barebox.
|
||||
|
|
|
@ -650,11 +650,5 @@ extern void flash_read_factory_serial(flash_info_t * info, void * buffer, int of
|
|||
#define FLASH_ERASE_TIMEOUT 120000 /* timeout for erasing in ms */
|
||||
#define FLASH_WRITE_TIMEOUT 500 /* timeout for writes in ms */
|
||||
|
||||
struct cfi_platform_data {
|
||||
flash_info_t finfo;
|
||||
};
|
||||
|
||||
int flash_init (void);
|
||||
|
||||
#endif /* __CFI_FLASH_H */
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#include <common.h>
|
||||
#include <stdio.h>
|
||||
#include <cfi_flash.h>
|
||||
#include "cfi_flash.h"
|
||||
|
||||
static void flash_unlock_seq (flash_info_t * info, flash_sect_t sect)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <common.h>
|
||||
#include <cfi_flash.h>
|
||||
#include "cfi_flash.h"
|
||||
|
||||
/*
|
||||
* read jedec ids from device and set corresponding fields in info struct
|
||||
|
|
Loading…
Reference in New Issue