board: ti: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2024-04-30 20:43:02 -06:00
parent 1267f220e2
commit c4083e0184
25 changed files with 16 additions and 22 deletions

View file

@ -7,7 +7,7 @@
* Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/ * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>

View file

@ -10,6 +10,8 @@
#ifndef _BOARD_H_ #ifndef _BOARD_H_
#define _BOARD_H_ #define _BOARD_H_
#include <linux/string.h>
/** /**
* AM335X (EMIF_4D) EMIF REG_COS_COUNT_1, REG_COS_COUNT_2, and * AM335X (EMIF_4D) EMIF REG_COS_COUNT_1, REG_COS_COUNT_2, and
* REG_PR_OLD_COUNT values to avoid LCDC DMA FIFO underflows and Frame * REG_PR_OLD_COUNT values to avoid LCDC DMA FIFO underflows and Frame

View file

@ -13,7 +13,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <common.h> #include <config.h>
#include <asm/arch/sys_proto.h> #include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/mux.h> #include <asm/arch/mux.h>

View file

@ -7,7 +7,7 @@
* Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/ * Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
*/ */
#include <common.h> #include <config.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <dm/uclass.h> #include <dm/uclass.h>
#include <env.h> #include <env.h>

View file

@ -11,6 +11,7 @@
#ifndef _BOARD_H_ #ifndef _BOARD_H_
#define _BOARD_H_ #define _BOARD_H_
#include <linux/string.h>
#include <asm/arch/omap.h> #include <asm/arch/omap.h>
#define DEV_ATTR_MAX_OFFSET 5 #define DEV_ATTR_MAX_OFFSET 5

View file

@ -5,7 +5,6 @@
* Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
*/ */
#include <common.h>
#include <asm/arch/sys_proto.h> #include <asm/arch/sys_proto.h>
#include <asm/arch/mux.h> #include <asm/arch/mux.h>
#include "../common/board_detect.h" #include "../common/board_detect.h"

View file

@ -7,7 +7,7 @@
* Based on board/ti/dra7xx/evm.c * Based on board/ti/dra7xx/evm.c
*/ */
#include <common.h> #include <config.h>
#include <env.h> #include <env.h>
#include <fastboot.h> #include <fastboot.h>
#include <fdt_support.h> #include <fdt_support.h>

View file

@ -7,9 +7,9 @@
* Steve Kipisz * Steve Kipisz
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <net.h> #include <net.h>
#include <linux/types.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/omap_common.h> #include <asm/omap_common.h>
#include <dm/uclass.h> #include <dm/uclass.h>

View file

@ -4,10 +4,11 @@
* Köry Maincent, Bootlin, <kory.maincent@bootlin.com> * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
*/ */
#include <common.h> #include <stdio.h>
#include <malloc.h> #include <malloc.h>
#include <i2c.h> #include <i2c.h>
#include <extension_board.h> #include <extension_board.h>
#include <vsprintf.h>
#include "cape_detect.h" #include "cape_detect.h"

View file

@ -9,7 +9,7 @@
* Aneesh V <aneesh@ti.com> * Aneesh V <aneesh@ti.com>
* Steve Sakoman <steve@sakoman.com> * Steve Sakoman <steve@sakoman.com>
*/ */
#include <common.h> #include <config.h>
#include <env.h> #include <env.h>
#include <fdt_support.h> #include <fdt_support.h>
#include <fastboot.h> #include <fastboot.h>

View file

@ -6,7 +6,7 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h> #include <config.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include "board.h" #include "board.h"
#include <env.h> #include <env.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include <image.h> #include <image.h>
#include <init.h> #include <init.h>
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>

View file

@ -5,7 +5,7 @@
* (C) Copyright 2015 * (C) Copyright 2015
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h> #include <config.h>
#include <env.h> #include <env.h>
#include <hang.h> #include <hang.h>
#include <image.h> #include <image.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include <image.h> #include <image.h>
#include <init.h> #include <init.h>
#include <asm/arch/clock.h> #include <asm/arch/clock.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include <image.h> #include <image.h>
#include <init.h> #include <init.h>
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>
#include "ddr3_cfg.h" #include "ddr3_cfg.h"

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include "ddr3_cfg.h" #include "ddr3_cfg.h"
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include "ddr3_cfg.h" #include "ddr3_cfg.h"
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include "ddr3_cfg.h" #include "ddr3_cfg.h"
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>

View file

@ -6,7 +6,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
*/ */
#include <common.h>
#include "ddr3_cfg.h" #include "ddr3_cfg.h"
#include <asm/arch/ddr3.h> #include <asm/arch/ddr3.h>

View file

@ -10,7 +10,7 @@
* Richard Woodruff <r-woodruff2@ti.com> * Richard Woodruff <r-woodruff2@ti.com>
* Syed Mohammed Khasim <khasim@ti.com> * Syed Mohammed Khasim <khasim@ti.com>
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <env.h> #include <env.h>
#include <init.h> #include <init.h>

View file

@ -4,7 +4,6 @@
* Texas Instruments Incorporated, <www.ti.com> * Texas Instruments Incorporated, <www.ti.com>
* Steve Sakoman <steve@sakoman.com> * Steve Sakoman <steve@sakoman.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>
#include <net.h> #include <net.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2010 Texas Instruments * Copyright (C) 2010 Texas Instruments
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#ifdef CONFIG_CMD_BAT #ifdef CONFIG_CMD_BAT

View file

@ -5,7 +5,6 @@
* Aneesh V <aneesh@ti.com> * Aneesh V <aneesh@ti.com>
* Steve Sakoman <steve@sakoman.com> * Steve Sakoman <steve@sakoman.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <net.h> #include <net.h>
#include <twl6030.h> #include <twl6030.h>

View file

@ -8,6 +8,8 @@
#ifndef __ASM_OMAP_GPMC_H #ifndef __ASM_OMAP_GPMC_H
#define __ASM_OMAP_GPMC_H #define __ASM_OMAP_GPMC_H
#include <linux/types.h>
/* Maximum Number of Chip Selects */ /* Maximum Number of Chip Selects */
#define GPMC_CS_NUM 8 #define GPMC_CS_NUM 8