Skip to content

Commit

Permalink
common: Drop flash.h from common header
Browse files Browse the repository at this point in the history
Move this uncommon header out of the common header.

Fix up some style problems in flash.h while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
  • Loading branch information
sjg20 authored and trini committed May 18, 2020
1 parent a595a0e commit b79fdc7
Show file tree
Hide file tree
Showing 45 changed files with 46 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/mach-at91/arm926ejs/eflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* do a read-modify-write for partially programmed pages
*/
#include <common.h>
#include <flash.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/arch/at91_common.h>
Expand Down
1 change: 1 addition & 0 deletions board/AndesTech/adp-ae3xx/adp-ae3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <init.h>
#include <asm/mach-types.h>
#include <common.h>
#include <flash.h>
#if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
#include <netdev.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions board/AndesTech/adp-ag101p/adp-ag101p.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <common.h>
#include <flash.h>
#include <init.h>
#if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
#include <netdev.h>
Expand Down
1 change: 1 addition & 0 deletions board/AndesTech/ax25-ae350/ax25-ae350.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <flash.h>
#include <init.h>
#if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
#include <netdev.h>
Expand Down
1 change: 1 addition & 0 deletions board/Arcturus/ucp1020/cmd_arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <cpu_func.h>
#include <div64.h>
#include <env.h>
#include <flash.h>
#include <malloc.h>
#include <spi_flash.h>
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions board/atmel/at91sam9263ek/at91sam9263ek.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <common.h>
#include <debug_uart.h>
#include <flash.h>
#include <init.h>
#include <net.h>
#include <vsprintf.h>
Expand Down
1 change: 1 addition & 0 deletions board/buffalo/lsxl/lsxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <flash.h>
#include <net.h>
#include <malloc.h>
#include <netdev.h>
Expand Down
2 changes: 2 additions & 0 deletions board/cobra5272/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#include <common.h>
#include <console.h>
#include <cpu_func.h>
#include <flash.h>
#include <irq_func.h>
#include <uuid.h>

#define PHYS_FLASH_1 CONFIG_SYS_FLASH_BASE
#define FLASH_BANK_SIZE 0x200000
Expand Down
1 change: 1 addition & 0 deletions board/freescale/common/fsl_validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <common.h>
#include <dm.h>
#include <flash.h>
#include <fsl_validate.h>
#include <fsl_secboot_err.h>
#include <fsl_sfp.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/m5253demo/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <common.h>
#include <flash.h>
#include <irq_func.h>

#include <asm/immap.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/mpc8568mds/bcsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <flash.h>
#include <asm/io.h>

#include "bcsr.h"
Expand Down
1 change: 1 addition & 0 deletions board/freescale/mpc8568mds/mpc8568mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <common.h>
#include <flash.h>
#include <init.h>
#include <pci.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/mpc8569mds/bcsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <flash.h>
#include <asm/io.h>

#include "bcsr.h"
Expand Down
1 change: 1 addition & 0 deletions board/freescale/mpc8569mds/mpc8569mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <common.h>
#include <console.h>
#include <flash.h>
#include <hwconfig.h>
#include <init.h>
#include <pci.h>
Expand Down
1 change: 1 addition & 0 deletions board/gardena/smart-gateway-mt7688/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <flash.h>
#include <init.h>
#include <led.h>
#include <malloc.h>
Expand Down
1 change: 1 addition & 0 deletions board/gdsys/mpc8308/hrcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <common.h>
#include <env.h>
#include <flash.h>
#include <hwconfig.h>
#include <i2c.h>
#include <init.h>
Expand Down
1 change: 1 addition & 0 deletions board/gdsys/mpc8308/strider.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <common.h>
#include <env.h>
#include <flash.h>
#include <hwconfig.h>
#include <i2c.h>
#include <init.h>
Expand Down
1 change: 1 addition & 0 deletions board/renesas/sh7752evb/sh7752evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <common.h>
#include <env.h>
#include <flash.h>
#include <init.h>
#include <malloc.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/renesas/sh7753evb/sh7753evb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <common.h>
#include <env.h>
#include <flash.h>
#include <init.h>
#include <malloc.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/renesas/sh7757lcr/sh7757lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <common.h>
#include <env.h>
#include <flash.h>
#include <init.h>
#include <malloc.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/siemens/taurus/taurus.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <common.h>
#include <dm.h>
#include <env.h>
#include <flash.h>
#include <init.h>
#include <asm/io.h>
#include <asm/arch/at91sam9260_matrix.h>
Expand Down
1 change: 1 addition & 0 deletions board/socrates/socrates.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <clock_legacy.h>
#include <env.h>
#include <pci.h>
#include <uuid.h>
#include <asm/processor.h>
#include <asm/immap_85xx.h>
#include <ioports.h>
Expand Down
1 change: 1 addition & 0 deletions board/spear/x600/x600.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <common.h>
#include <flash.h>
#include <init.h>
#include <micrel.h>
#include <nand.h>
Expand Down
1 change: 1 addition & 0 deletions cmd/armflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
#include <console.h>
#include <flash.h>
#include <asm/io.h>

#define MAX_REGIONS 4
Expand Down
1 change: 1 addition & 0 deletions cmd/cros_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <command.h>
#include <cros_ec.h>
#include <dm.h>
#include <flash.h>
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>

Expand Down
1 change: 1 addition & 0 deletions cmd/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
#include <common.h>
#include <command.h>
#include <uuid.h>

#if defined(CONFIG_CMD_MTDPARTS)
#include <jffs2/jffs2.h>
Expand Down
1 change: 1 addition & 0 deletions cmd/jffs2.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <flash.h>
#include <image.h>
#include <malloc.h>
#include <jffs2/jffs2.h>
Expand Down
1 change: 1 addition & 0 deletions cmd/mvebu/bubt.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <flash.h>
#include <image.h>
#include <vsprintf.h>
#include <errno.h>
Expand Down
1 change: 1 addition & 0 deletions cmd/sf.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <common.h>
#include <div64.h>
#include <dm.h>
#include <flash.h>
#include <malloc.h>
#include <mapmem.h>
#include <spi.h>
Expand Down
1 change: 1 addition & 0 deletions common/board_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <api.h>
#include <cpu_func.h>
#include <exports.h>
#include <flash.h>
#include <hang.h>
#include <image.h>
#include <irq_func.h>
Expand Down
1 change: 1 addition & 0 deletions common/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <common.h>
#include <flash.h>
#include <uuid.h>

#include <mtd/cfi_flash.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/dfu/dfu_sf.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <flash.h>
#include <malloc.h>
#include <errno.h>
#include <div64.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/fastboot/fb_command.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <fastboot-internal.h>
#include <fb_mmc.h>
#include <fb_nand.h>
#include <flash.h>
#include <part.h>
#include <stdlib.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/fastboot/fb_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <fastboot.h>
#include <fastboot-internal.h>
#include <fb_mmc.h>
#include <flash.h>
#include <image-sparse.h>
#include <part.h>
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/fastboot/fb_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <config.h>
#include <common.h>
#include <flash.h>

#include <fastboot.h>
#include <image-sparse.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/misc/cros_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <common.h>
#include <command.h>
#include <dm.h>
#include <flash.h>
#include <i2c.h>
#include <cros_ec.h>
#include <fdtdec.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/mtd/cfi_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <env.h>
#include <errno.h>
#include <fdt_support.h>
#include <flash.h>
#include <irq_func.h>
#include <asm/processor.h>
#include <asm/io.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/mtd/jedec_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/*#define DEBUG*/

#include <common.h>
#include <flash.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/byteorder.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/mtd/spi/sf_dataflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#include <flash.h>
#include <spi.h>
#include <spi_flash.h>
#include <div64.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/mtd/spi/sf_mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <flash.h>
#include <malloc.h>
#include <linux/errno.h>
#include <linux/mtd/mtd.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/mtd/stm32_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <flash.h>
#include <asm/io.h>
#include <asm/arch/stm32.h>
#include "stm32_flash.h"
Expand Down
2 changes: 2 additions & 0 deletions env/sf.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
#include <dm.h>
#include <env.h>
#include <env_internal.h>
#include <flash.h>
#include <malloc.h>
#include <spi.h>
#include <spi_flash.h>
#include <search.h>
#include <errno.h>
#include <uuid.h>
#include <dm/device-internal.h>
#include <u-boot/crc.h>

Expand Down
1 change: 1 addition & 0 deletions fs/cramfs/cramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

#include <common.h>
#include <flash.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <linux/stat.h>
Expand Down
1 change: 1 addition & 0 deletions fs/jffs2/jffs2_1pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@

#include <common.h>
#include <config.h>
#include <flash.h>
#include <malloc.h>
#include <div64.h>
#include <linux/compiler.h>
Expand Down
1 change: 0 additions & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <stdio.h>
#include <linux/kernel.h>
#include <part.h>
#include <flash.h>
#include <image.h>
#include <log.h>
#include <asm/u-boot.h> /* boot information for Linux kernel */
Expand Down

0 comments on commit b79fdc7

Please sign in to comment.