diff options
Diffstat (limited to 'drivers/net/pfe_eth')
-rw-r--r-- | drivers/net/pfe_eth/pfe_cmd.c | 18 | ||||
-rw-r--r-- | drivers/net/pfe_eth/pfe_driver.c | 2 | ||||
-rw-r--r-- | drivers/net/pfe_eth/pfe_eth.c | 2 | ||||
-rw-r--r-- | drivers/net/pfe_eth/pfe_firmware.c | 3 | ||||
-rw-r--r-- | drivers/net/pfe_eth/pfe_hw.c | 2 | ||||
-rw-r--r-- | drivers/net/pfe_eth/pfe_mdio.c | 2 |
6 files changed, 22 insertions, 7 deletions
diff --git a/drivers/net/pfe_eth/pfe_cmd.c b/drivers/net/pfe_eth/pfe_cmd.c index dd8c68d57d0..1e69525cb71 100644 --- a/drivers/net/pfe_eth/pfe_cmd.c +++ b/drivers/net/pfe_eth/pfe_cmd.c @@ -9,6 +9,10 @@ * @brief PFE utility commands */ +#include <common.h> +#include <command.h> +#include <log.h> +#include <linux/delay.h> #include <net/pfe_eth/pfe_eth.h> static inline void pfe_command_help(void) @@ -16,7 +20,7 @@ static inline void pfe_command_help(void) printf("Usage: pfe [pe | status | expt ] <options>\n"); } -static void pfe_command_pe(int argc, char * const argv[]) +static void pfe_command_pe(int argc, char *const argv[]) { if (argc >= 3 && strcmp(argv[2], "pmem") == 0) { if (argc >= 4 && strcmp(argv[3], "read") == 0) { @@ -271,7 +275,7 @@ static void bmu(int id, void *base) #define PEMBOX_ADDR_TMU 0x290 #define PESTATUS_ADDR_UTIL 0x0 -static void pfe_pe_status(int argc, char * const argv[]) +static void pfe_pe_status(int argc, char *const argv[]) { int do_clear = 0; u32 id; @@ -336,7 +340,7 @@ static void pfe_pe_status(int argc, char * const argv[]) } } -static void pfe_command_status(int argc, char * const argv[]) +static void pfe_command_status(int argc, char *const argv[]) { if (argc >= 3 && strcmp(argv[2], "pe") == 0) { pfe_pe_status(argc, argv); @@ -370,7 +374,7 @@ static const char *register_names[EXPT_REG_COUNT] = { " r12", " r13", " r14", " r15" }; -static void pfe_command_expt(int argc, char * const argv[]) +static void pfe_command_expt(int argc, char *const argv[]) { unsigned int id, i, val, addr; @@ -414,7 +418,7 @@ static void send_dummy_pkt_to_hif(void) writel(buf, TMU_PHY_INQ_PKTINFO); } -static void pfe_command_stop(int argc, char * const argv[]) +static void pfe_command_stop(int argc, char *const argv[]) { int pfe_pe_id, hif_stop_loop = 10; u32 rx_status; @@ -462,8 +466,8 @@ static void pfe_command_stop(int argc, char * const argv[]) } #endif -static int pfe_command(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int pfe_command(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { if (argc == 1 || strcmp(argv[1], "help") == 0) { pfe_command_help(); diff --git a/drivers/net/pfe_eth/pfe_driver.c b/drivers/net/pfe_eth/pfe_driver.c index f70a2352177..6f443b4ea81 100644 --- a/drivers/net/pfe_eth/pfe_driver.c +++ b/drivers/net/pfe_eth/pfe_driver.c @@ -4,7 +4,9 @@ * Copyright 2017 NXP */ +#include <log.h> #include <malloc.h> +#include <linux/delay.h> #include <net/pfe_eth/pfe_eth.h> #include <net/pfe_eth/pfe_firmware.h> diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index 1b5d11ef323..718e24f14d3 100644 --- a/drivers/net/pfe_eth/pfe_eth.c +++ b/drivers/net/pfe_eth/pfe_eth.c @@ -6,9 +6,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <dm/platform_data/pfe_dm_eth.h> #include <net.h> +#include <linux/delay.h> #include <net/pfe_eth/pfe_eth.h> #include <net/pfe_eth/pfe_mdio.h> diff --git a/drivers/net/pfe_eth/pfe_firmware.c b/drivers/net/pfe_eth/pfe_firmware.c index 13112d9c1a3..0493cfe8724 100644 --- a/drivers/net/pfe_eth/pfe_firmware.c +++ b/drivers/net/pfe_eth/pfe_firmware.c @@ -10,7 +10,10 @@ * files. */ +#include <image.h> +#include <log.h> #include <malloc.h> +#include <linux/bitops.h> #include <net/pfe_eth/pfe_eth.h> #include <net/pfe_eth/pfe_firmware.h> #ifdef CONFIG_CHAIN_OF_TRUST diff --git a/drivers/net/pfe_eth/pfe_hw.c b/drivers/net/pfe_eth/pfe_hw.c index 7137ac154a6..722f5c238fa 100644 --- a/drivers/net/pfe_eth/pfe_hw.c +++ b/drivers/net/pfe_eth/pfe_hw.c @@ -3,6 +3,8 @@ * Copyright 2015-2016 Freescale Semiconductor, Inc. * Copyright 2017 NXP */ +#include <log.h> +#include <linux/bitops.h> #include <net/pfe_eth/pfe_eth.h> #include <net/pfe_eth/pfe/pfe_hw.h> diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c index b990e7fbe22..3228b8df49d 100644 --- a/drivers/net/pfe_eth/pfe_mdio.c +++ b/drivers/net/pfe_eth/pfe_mdio.c @@ -5,9 +5,11 @@ */ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <dm/platform_data/pfe_dm_eth.h> #include <net.h> +#include <linux/delay.h> #include <net/pfe_eth/pfe_eth.h> extern struct gemac_s gem_info[]; |