Skip to content

Commit

Permalink
Move console definitions into a new console.h file
Browse files Browse the repository at this point in the history
The console includes a global variable and several functions that are only
used by a small subset of U-Boot files. Before adding more functions, move
the definitions into their own header file.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 committed Nov 20, 2015
1 parent 3884c98 commit 24b852a
Show file tree
Hide file tree
Showing 100 changed files with 131 additions and 18 deletions.
1 change: 1 addition & 0 deletions arch/blackfin/lib/cmd_cache_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <config.h>
#include <common.h>
#include <command.h>
#include <console.h>

#include <asm/blackfin.h>
#include <asm/mach-common/bits/mpu.h>
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/cpu/mpc8260/ether_fcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#include <common.h>
#include <console.h>
#include <malloc.h>
#include <asm/cpm_8260.h>
#include <mpc8260.h>
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/cpu/mpc8260/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <common.h>
#include <console.h>

#if defined(CONFIG_HARD_I2C)

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/cpu/mpc8xx/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include <common.h>
#include <console.h>

#ifdef CONFIG_HARD_I2C

Expand Down
1 change: 1 addition & 0 deletions arch/sh/lib/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <common.h>
#include <command.h>
#include <console.h>
#include <malloc.h>
#include <stdio_dev.h>
#include <version.h>
Expand Down
1 change: 1 addition & 0 deletions arch/sparc/lib/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <common.h>
#include <command.h>
#include <console.h>
#include <malloc.h>
#include <stdio_dev.h>
#include <config.h>
Expand Down
1 change: 1 addition & 0 deletions board/Arcturus/ucp1020/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <common.h>
#include <console.h>
#include <ns16550.h>
#include <malloc.h>
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions board/amcc/yucca/cmd_yucca.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <common.h>
#include <cli.h>
#include <command.h>
#include <console.h>
#include "yucca.h"
#include <i2c.h>
#include <asm/byteorder.h>
Expand Down
1 change: 1 addition & 0 deletions board/astro/mcf5373l/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/* Altera/Xilinx FPGA configuration support for the ASTRO "URMEL" board */

#include <common.h>
#include <console.h>
#include <watchdog.h>
#include <altera.h>
#include <ACEX1K.h>
Expand Down
1 change: 1 addition & 0 deletions board/cobra5272/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <common.h>
#include <console.h>

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

#include <common.h>
#include <command.h>
#include <console.h>
#if !defined(CONFIG_440)
#include <asm/4xx_pci.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions board/esd/cpci405/cpci405.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <console.h>
#include <libfdt.h>
#include <fdt_support.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/esd/pmc405de/pmc405de.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <common.h>
#include <console.h>
#include <libfdt.h>
#include <fdt_support.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/esd/pmc440/cmd_pmc440.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <asm/io.h>
#include <asm/cache.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/esd/pmc440/pmc440.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <console.h>
#include <libfdt.h>
#include <fdt_support.h>
#include <asm/ppc440.h>
Expand Down
1 change: 1 addition & 0 deletions board/esd/vme8349/caddy.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <common.h>
#include <console.h>
#include <ioports.h>
#include <mpc83xx.h>
#include <asm/mpc8349_pci.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/b4860qds/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <asm/spl.h>
#include <malloc.h>
#include <ns16550.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/c29xpcie/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <ns16550.h>
#include <malloc.h>
#include <mmc.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 <hwconfig.h>
#include <pci.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/p1010rdb/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <ns16550.h>
#include <malloc.h>
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/p1022ds/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <console.h>
#include <ns16550.h>
#include <malloc.h>
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/p1_p2_rdb_pc/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <console.h>
#include <ns16550.h>
#include <malloc.h>
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t102xqds/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <malloc.h>
#include <ns16550.h>
#include <nand.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t102xrdb/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <malloc.h>
#include <ns16550.h>
#include <nand.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t104xrdb/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <malloc.h>
#include <ns16550.h>
#include <nand.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t208xqds/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <malloc.h>
#include <ns16550.h>
#include <nand.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t208xrdb/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <malloc.h>
#include <ns16550.h>
#include <nand.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t4qds/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <common.h>
#include <console.h>
#include <asm/spl.h>
#include <malloc.h>
#include <ns16550.h>
Expand Down
1 change: 1 addition & 0 deletions board/freescale/t4rdb/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <common.h>
#include <console.h>
#include <asm/spl.h>
#include <malloc.h>
#include <ns16550.h>
Expand Down
1 change: 1 addition & 0 deletions board/gdsys/common/cmd_ioloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <common.h>
#include <command.h>
#include <console.h>

#include <gdsys_fpga.h>

Expand Down
1 change: 1 addition & 0 deletions board/inka4x0/inkadiag.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <asm/io.h>
#include <common.h>
#include <config.h>
#include <console.h>
#include <mpc5xxx.h>
#include <pci.h>

Expand Down
1 change: 1 addition & 0 deletions board/lwmon5/kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <common.h>
#include <i2c.h>
#include <command.h>
#include <console.h>
#include <post.h>
#include <serial.h>
#include <malloc.h>
Expand Down
1 change: 1 addition & 0 deletions board/mpl/common/kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* linux/drivers/char/pc_keyb.c
*/
#include <common.h>
#include <console.h>
#include <asm/processor.h>
#include <stdio_dev.h>
#include "isa.h"
Expand Down
1 change: 1 addition & 0 deletions board/mpl/pati/pati.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
**********************************************************************************/

#include <common.h>
#include <console.h>
#include <mpc5xx.h>
#include <stdio_dev.h>
#include <pci_ids.h>
Expand Down
1 change: 1 addition & 0 deletions board/renesas/sh7785lcr/selfcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <console.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/pci.h>
Expand Down
1 change: 1 addition & 0 deletions board/tqc/tqm5200/cmd_stk52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <common.h>
#include <command.h>
#include <console.h>

#if defined(CONFIG_CMD_BSP)

Expand Down
1 change: 1 addition & 0 deletions board/tqc/tqm5200/tqm5200.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include <common.h>
#include <console.h>
#include <mpc5xxx.h>
#include <pci.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions board/xes/xpedite1000/xpedite1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <console.h>
#include <asm/processor.h>
#include <spd_sdram.h>
#include <i2c.h>
Expand Down
1 change: 1 addition & 0 deletions common/autoboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <autoboot.h>
#include <bootretry.h>
#include <cli.h>
#include <console.h>
#include <fdtdec.h>
#include <menu.h>
#include <post.h>
Expand Down
1 change: 1 addition & 0 deletions common/board_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <common.h>
#include <linux/compiler.h>
#include <version.h>
#include <console.h>
#include <environment.h>
#include <dm.h>
#include <fdtdec.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 @@ -15,6 +15,7 @@
#if defined(CONFIG_CMD_BEDBUG)
#include <bedbug/type.h>
#endif
#include <console.h>
#ifdef CONFIG_HAS_DATAFLASH
#include <dataflash.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions common/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <common.h>
#include <cli.h>
#include <cli_hush.h>
#include <console.h>
#include <fdtdec.h>
#include <malloc.h>

Expand Down
1 change: 1 addition & 0 deletions common/cli_hush.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
#include <malloc.h> /* malloc, free, realloc*/
#include <linux/ctype.h> /* isalpha, isdigit */
#include <common.h> /* readline */
#include <console.h>
#include <bootretry.h>
#include <cli.h>
#include <cli_hush.h>
Expand Down
1 change: 1 addition & 0 deletions common/cli_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <console.h>
#include <linux/ctype.h>

#define DEBUG_PARSER 0 /* set to 1 to debug */
Expand Down
1 change: 1 addition & 0 deletions common/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 <asm/io.h>

#define MAX_REGIONS 4
Expand Down
1 change: 1 addition & 0 deletions common/cmd_bedbug.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <common.h>
#include <cli.h>
#include <command.h>
#include <console.h>
#include <linux/ctype.h>
#include <net.h>
#include <bedbug/type.h>
Expand Down
1 change: 1 addition & 0 deletions common/cmd_dcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <cli.h>
#include <config.h>
#include <command.h>
#include <console.h>

unsigned long get_dcr (unsigned short);
unsigned long set_dcr (unsigned short, unsigned long);
Expand Down
1 change: 1 addition & 0 deletions common/cmd_dfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <common.h>
#include <watchdog.h>
#include <dfu.h>
#include <console.h>
#include <g_dnl.h>
#include <usb.h>
#include <net.h>
Expand Down
1 change: 1 addition & 0 deletions common/cmd_fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <g_dnl.h>
#include <usb.h>

Expand Down
1 change: 1 addition & 0 deletions common/cmd_fpgad.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <common.h>
#include <command.h>
#include <console.h>

#include <gdsys_fpga.h>

Expand Down
Loading

0 comments on commit 24b852a

Please sign in to comment.