diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 12:57:39 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-02 18:24:58 -0500 |
commit | 1eb69ae498567bb0b62ee554647204e8245cdacc (patch) | |
tree | 85471c9088c5a801b3adcf397c2310726fe08fea /drivers/net | |
parent | 3374d28b3443cc5565816d1f58d01ebfa14ea5ae (diff) | |
download | u-boot-1eb69ae498567bb0b62ee554647204e8245cdacc.tar.gz |
common: Move ARM cache operations out of common.h
These functions are CPU-related and do not use driver model. Move them to
cpu_func.h
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/net')
31 files changed, 31 insertions, 0 deletions
diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index 7f1dee4b3e..804d5c20b6 100644 --- a/drivers/net/ag7xxx.c +++ b/drivers/net/ag7xxx.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index fb878d4e63..aabddd6bb6 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -9,6 +9,7 @@ * published by the Free Software Foundation. */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <fdt_support.h> diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c index db3e79ade3..6a25f67c30 100644 --- a/drivers/net/bcm-sf2-eth-gmac.c +++ b/drivers/net/bcm-sf2-eth-gmac.c @@ -11,6 +11,7 @@ #include <config.h> #include <common.h> +#include <cpu_func.h> #include <malloc.h> #include <net.h> #include <asm/io.h> diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 0031370085..5c2d5e5a79 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -10,6 +10,7 @@ #include <common.h> #include <clk.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 455709338c..da5b696c9d 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -28,6 +28,7 @@ */ #include <common.h> #include <clk.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <memalign.h> diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index a34f697461..0946011844 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -30,6 +30,7 @@ tested on both gig copper and gig fiber boards */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <memalign.h> diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 3d43a58d4a..be5d9add61 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <dm/platform_data/net_ethoc.h> #include <linux/io.h> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 131d1998a7..2aa1029d42 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index c980ba4edb..6a9cf51fe4 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -5,6 +5,7 @@ * Copyright 2017-2018 NXP */ #include <common.h> +#include <cpu_func.h> #include <env.h> #include <errno.h> #include <linux/bug.h> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 92c38a81bd..b6b8a93bb5 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -12,6 +12,7 @@ */ #include <clk.h> +#include <cpu_func.h> #include <dm.h> #include <miiphy.h> #include <net.h> diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c index d8f1dde657..24bb45f351 100644 --- a/drivers/net/ftmac100.c +++ b/drivers/net/ftmac100.c @@ -8,6 +8,7 @@ #include <config.h> #include <common.h> +#include <cpu_func.h> #include <env.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/higmacv300.c b/drivers/net/higmacv300.c index 1be8359133..897741ab82 100644 --- a/drivers/net/higmacv300.c +++ b/drivers/net/higmacv300.c @@ -3,6 +3,7 @@ * Copyright (c) 2019, Linaro Limited */ +#include <cpu_func.h> #include <asm/io.h> #include <common.h> #include <console.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index 34253e3924..a3b9c152b2 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <asm/io.h> #include <asm/types.h> #include <malloc.h> diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 1a532b0e5a..f809f3eb07 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -4,6 +4,7 @@ */ #include <common.h> #include <clk.h> +#include <cpu_func.h> #include <dm.h> /* diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c index a1d12f6902..404a046422 100644 --- a/drivers/net/mt7628-eth.c +++ b/drivers/net/mt7628-eth.c @@ -14,6 +14,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <malloc.h> #include <miiphy.h> diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 0ef814c78b..c22e590387 100644 --- a/drivers/net/mtk_eth.c +++ b/drivers/net/mtk_eth.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <malloc.h> #include <miiphy.h> diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 333be8ff28..6f76a6b0dc 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -13,6 +13,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <net.h> #include <netdev.h> diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index bd89725e77..8148c03d22 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -14,6 +14,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c index 2286dd07e9..e4507bf7fd 100644 --- a/drivers/net/pch_gbe.c +++ b/drivers/net/pch_gbe.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index eda6743ec3..b4ad11d3fa 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <malloc.h> #include <net.h> #include <netdev.h> diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c index 39c4b10ab8..3458440b6f 100644 --- a/drivers/net/pic32_eth.c +++ b/drivers/net/pic32_eth.c @@ -4,6 +4,7 @@ * */ #include <common.h> +#include <cpu_func.h> #include <errno.h> #include <dm.h> #include <net.h> diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index 11abe5e0c9..fb4a628d63 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -10,6 +10,7 @@ #include <common.h> #include <clk.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 13309970e2..bb59629f81 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -72,6 +72,7 @@ */ #include <common.h> +#include <cpu_func.h> #include <malloc.h> #include <net.h> #include <netdev.h> diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 521e5909a2..53454f2f21 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -40,6 +40,7 @@ * Modified to use le32_to_cpu and cpu_to_le32 properly */ #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 749f651920..183e8e3083 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -10,6 +10,7 @@ #include <config.h> #include <common.h> +#include <cpu_func.h> #include <env.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/sni_ave.c b/drivers/net/sni_ave.c index ba51ea5e38..6d333e24ee 100644 --- a/drivers/net/sni_ave.c +++ b/drivers/net/sni_ave.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <cpu_func.h> #include <dm.h> #include <fdt_support.h> #include <linux/io.h> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 0629b16e57..9551918796 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -10,6 +10,7 @@ * */ +#include <cpu_func.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/gpio.h> diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 4a990be93e..93d53612b5 100644 --- a/drivers/net/ti/cpsw.c +++ b/drivers/net/ti/cpsw.c @@ -7,6 +7,7 @@ #include <common.h> #include <command.h> +#include <cpu_func.h> #include <net.h> #include <miiphy.h> #include <malloc.h> diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c index 2bd9c51079..9c6bfca5a9 100644 --- a/drivers/net/ti/davinci_emac.c +++ b/drivers/net/ti/davinci_emac.c @@ -23,6 +23,7 @@ */ #include <common.h> #include <command.h> +#include <cpu_func.h> #include <net.h> #include <miiphy.h> #include <malloc.h> diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index 36d651109c..b0450fff56 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -7,6 +7,7 @@ #include <config.h> #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <net.h> #include <malloc.h> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index a7a6ce987f..78f94148b4 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -10,6 +10,7 @@ #include <clk.h> #include <common.h> +#include <cpu_func.h> #include <dm.h> #include <net.h> #include <netdev.h> |