diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-08-08 13:35:31 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-08-10 01:33:58 +0000 |
commit | 5cf9ccc57d8de19692603fffe4b932475b22091b (patch) | |
tree | f4754b83175f262d22cb5e4823be4775388fdb9e /src/northbridge/amd | |
parent | 6b212d8fcff125a831c0ba068903afd0b22d292c (diff) | |
download | coreboot-5cf9ccc57d8de19692603fffe4b932475b22091b.tar.xz |
src: Include <stdint.h> instead of <inttypes.h>
The <inttypes.h> header currently does nothing but include the
definitions from <stdint.h>, so let's #include that directly instead.
Change-Id: I9d83ad37d0d7300a093001596ce3f0b3830c5701
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34800
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/amd')
41 files changed, 41 insertions, 41 deletions
diff --git a/src/northbridge/amd/amdfam10/amdfam10.h b/src/northbridge/amd/amdfam10/amdfam10.h index 0fbcea687c..321e87d7d0 100644 --- a/src/northbridge/amd/amdfam10/amdfam10.h +++ b/src/northbridge/amd/amdfam10/amdfam10.h @@ -17,7 +17,7 @@ #ifndef AMDFAM10_H #define AMDFAM10_H -#include <inttypes.h> +#include <stdint.h> #include <device/device.h> #include "early_ht.h" diff --git a/src/northbridge/amd/amdfam10/debug.h b/src/northbridge/amd/amdfam10/debug.h index 3710d15b77..01d87d96af 100644 --- a/src/northbridge/amd/amdfam10/debug.h +++ b/src/northbridge/amd/amdfam10/debug.h @@ -16,7 +16,7 @@ #ifndef AMDFAM10_DEBUG_H #define AMDFAM10_DEBUG_H -#include <inttypes.h> +#include <stdint.h> #include "pci.h" void print_debug_addr(const char *str, void *val); diff --git a/src/northbridge/amd/amdfam10/early_ht.c b/src/northbridge/amd/amdfam10/early_ht.c index d8784ac728..3f2b138533 100644 --- a/src/northbridge/amd/amdfam10/early_ht.c +++ b/src/northbridge/amd/amdfam10/early_ht.c @@ -14,7 +14,7 @@ */ #include "early_ht.h" -#include <inttypes.h> +#include <stdint.h> #include <device/pci_ops.h> #include <device/pci_def.h> diff --git a/src/northbridge/amd/amdfam10/pci.h b/src/northbridge/amd/amdfam10/pci.h index 2893949135..21623c1168 100644 --- a/src/northbridge/amd/amdfam10/pci.h +++ b/src/northbridge/amd/amdfam10/pci.h @@ -16,7 +16,7 @@ #ifndef AMDFAM10_PCI_H #define AMDFAM10_PCI_H -#include <inttypes.h> +#include <stdint.h> #include <device/pci_type.h> #include <device/pci_def.h> diff --git a/src/northbridge/amd/amdfam10/raminit_amdmct.c b/src/northbridge/amd/amdfam10/raminit_amdmct.c index 440a02635b..a25a1510c8 100644 --- a/src/northbridge/amd/amdfam10/raminit_amdmct.c +++ b/src/northbridge/amd/amdfam10/raminit_amdmct.c @@ -15,7 +15,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include <arch/acpi.h> #include <arch/cpu.h> #include <device/pci.h> diff --git a/src/northbridge/amd/amdfam10/setup_resource_map.c b/src/northbridge/amd/amdfam10/setup_resource_map.c index 3e6a437934..735d72bbf7 100644 --- a/src/northbridge/amd/amdfam10/setup_resource_map.c +++ b/src/northbridge/amd/amdfam10/setup_resource_map.c @@ -15,7 +15,7 @@ */ #include <arch/io.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <device/pci_ops.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/northbridge/amd/amdht/comlib.h b/src/northbridge/amd/amdht/comlib.h index dbc19f3cfa..98326b280f 100644 --- a/src/northbridge/amd/amdht/comlib.h +++ b/src/northbridge/amd/amdht/comlib.h @@ -17,7 +17,7 @@ #define COMLIB_H #include <assert.h> -#include <inttypes.h> +#include <stdint.h> #include <stdlib.h> #include "porting.h" diff --git a/src/northbridge/amd/amdht/h3ncmn.h b/src/northbridge/amd/amdht/h3ncmn.h index c007089e03..db057c0f1c 100644 --- a/src/northbridge/amd/amdht/h3ncmn.h +++ b/src/northbridge/amd/amdht/h3ncmn.h @@ -17,7 +17,7 @@ #ifndef H3NCMN_H #define H3NCMN_H -#include <inttypes.h> +#include <stdint.h> #include <device/pci.h> #include <cpu/amd/msr.h> diff --git a/src/northbridge/amd/amdht/ht_wrapper.h b/src/northbridge/amd/amdht/ht_wrapper.h index 331c3df5f3..629e08f4fe 100644 --- a/src/northbridge/amd/amdht/ht_wrapper.h +++ b/src/northbridge/amd/amdht/ht_wrapper.h @@ -18,7 +18,7 @@ #include <northbridge/amd/amdfam10/raminit.h> #include <northbridge/amd/amdfam10/amdfam10.h> -#include <inttypes.h> +#include <stdint.h> #include "h3finit.h" void amd_ht_fixup(struct sys_info *sysinfo); diff --git a/src/northbridge/amd/amdmct/mct/mct_d.h b/src/northbridge/amd/amdmct/mct/mct_d.h index 14da928719..b985137987 100644 --- a/src/northbridge/amd/amdmct/mct/mct_d.h +++ b/src/northbridge/amd/amdmct/mct/mct_d.h @@ -22,7 +22,7 @@ #define DQS_TRAIN_DEBUG 0 -#include <inttypes.h> +#include <stdint.h> #include <northbridge/amd/amdfam10/debug.h> #include <northbridge/amd/amdfam10/raminit.h> diff --git a/src/northbridge/amd/amdmct/mct/mct_d_gcc.h b/src/northbridge/amd/amdmct/mct/mct_d_gcc.h index 0b9a7d19f1..993aa21d74 100644 --- a/src/northbridge/amd/amdmct/mct/mct_d_gcc.h +++ b/src/northbridge/amd/amdmct/mct/mct_d_gcc.h @@ -16,7 +16,7 @@ #ifndef MCT_D_GCC_H #define MCT_D_GCC_H -#include <inttypes.h> +#include <stdint.h> void _WRMSR(u32 addr, u32 lo, u32 hi); void _RDMSR(u32 addr, u32 *lo, u32 *hi); diff --git a/src/northbridge/amd/amdmct/mct/mctardk3.c b/src/northbridge/amd/amdmct/mct/mctardk3.c index 4eac790d5c..c36ba8ea7a 100644 --- a/src/northbridge/amd/amdmct/mct/mctardk3.c +++ b/src/northbridge/amd/amdmct/mct/mctardk3.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" static void Get_ChannelPS_Cfg0_D(u8 MAAdimms, u8 Speed, u8 MAAload, diff --git a/src/northbridge/amd/amdmct/mct/mctardk4.c b/src/northbridge/amd/amdmct/mct/mctardk4.c index 2e16a80002..c700593740 100644 --- a/src/northbridge/amd/amdmct/mct/mctardk4.c +++ b/src/northbridge/amd/amdmct/mct/mctardk4.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" static void Get_ChannelPS_Cfg0_D(u8 MAAdimms, u8 Speed, u8 MAAload, diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mct_d.h b/src/northbridge/amd/amdmct/mct_ddr3/mct_d.h index 3cda13fd35..952a66f71a 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mct_d.h +++ b/src/northbridge/amd/amdmct/mct_ddr3/mct_d.h @@ -22,7 +22,7 @@ #define DQS_TRAIN_DEBUG 0 -#include <inttypes.h> +#include <stdint.h> #include <northbridge/amd/amdfam10/raminit.h> /*=========================================================================== diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.c b/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.c index 82911c02d5..ccea732709 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.c @@ -15,7 +15,7 @@ */ #include "mct_d_gcc.h" -#include <inttypes.h> +#include <stdint.h> #include <arch/cpu.h> void _WRMSR(u32 addr, u32 lo, u32 hi) diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.h b/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.h index f0d0f76d69..629e6e639b 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.h +++ b/src/northbridge/amd/amdmct/mct_ddr3/mct_d_gcc.h @@ -17,7 +17,7 @@ #ifndef MCT_D_GCC_H #define MCT_D_GCC_H -#include <inttypes.h> +#include <stdint.h> #include <cpu/x86/cr.h> void _WRMSR(u32 addr, u32 lo, u32 hi); diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctardk5.c b/src/northbridge/amd/amdmct/mct_ddr3/mctardk5.c index 2e5a5009d6..e8116340c4 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctardk5.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctardk5.c @@ -17,7 +17,7 @@ /* AM3/ASB2/C32/G34 DDR3 */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctchi_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctchi_d.c index 55cf3a1eda..d458f3a48e 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctchi_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctchi_d.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" #include <console/console.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctcsi_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctcsi_d.c index 716e419a5d..85e7930b24 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctcsi_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctcsi_d.c @@ -20,7 +20,7 @@ * ;page size), and subtract 8. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" #include <console/console.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctdqs_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctdqs_d.c index 6b31294586..3f4f1bf01d 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctdqs_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctdqs_d.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <cpu/x86/cr.h> #include <string.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctecc_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctecc_d.c index 9aea1d79eb..4c33b9e4b6 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctecc_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctecc_d.c @@ -15,7 +15,7 @@ */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <device/pci_ops.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mcthdi.c b/src/northbridge/amd/amdmct/mct_ddr3/mcthdi.c index 2038af9b6c..c821ec0628 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mcthdi.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mcthdi.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mcthwl.c b/src/northbridge/amd/amdmct/mct_ddr3/mcthwl.c index 57f0e96581..1ee10608b9 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mcthwl.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mcthwl.c @@ -15,7 +15,7 @@ */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <string.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctmtr_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctmtr_d.c index efe1e8f52a..73370e715b 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctmtr_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctmtr_d.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <cpu/amd/mtrr.h> #include <cpu/x86/mtrr.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c index e878649d75..29949e02d4 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctndi_d.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctprob.c b/src/northbridge/amd/amdmct/mct_ddr3/mctprob.c index 6918e9ca9d..3cb75675df 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctprob.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctprob.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c b/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c index 8bed3b7d33..ddaaaab8d5 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctprod.c b/src/northbridge/amd/amdmct/mct_ddr3/mctprod.c index 76e0c5c029..b203942058 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctprod.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctprod.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctrci.c b/src/northbridge/amd/amdmct/mct_ddr3/mctrci.c index d9ae58ec70..93cfb4bf1b 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctrci.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctrci.c @@ -15,7 +15,7 @@ */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctsdi.c b/src/northbridge/amd/amdmct/mct_ddr3/mctsdi.c index d75d1be036..f215695580 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctsdi.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctsdi.c @@ -15,7 +15,7 @@ */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c b/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c index 032152c39d..dbb989fe3d 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c @@ -20,7 +20,7 @@ ******************************************************************************/ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <cpu/x86/cr.h> #include <string.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctsrc1p.c b/src/northbridge/amd/amdmct/mct_ddr3/mctsrc1p.c index 9f9fc80a76..98aadddc6c 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctsrc1p.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctsrc1p.c @@ -15,7 +15,7 @@ */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mcttmrl.c b/src/northbridge/amd/amdmct/mct_ddr3/mcttmrl.c index ec9b8e4327..b6ab65e2f8 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mcttmrl.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mcttmrl.c @@ -18,7 +18,7 @@ * Description: Max Read Latency Training feature for DDR 3 MCT */ -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <cpu/amd/msr.h> #include <cpu/x86/cr.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctwl.c b/src/northbridge/amd/amdmct/mct_ddr3/mctwl.c index 89edf6eee9..82523e01b8 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctwl.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctwl.c @@ -15,7 +15,7 @@ */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mhwlc_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mhwlc_d.c index 42f313ab92..76f72ae917 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mhwlc_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mhwlc_d.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include <northbridge/amd/amdfam10/amdfam10.h> diff --git a/src/northbridge/amd/amdmct/mct_ddr3/modtrd.c b/src/northbridge/amd/amdmct/mct_ddr3/modtrd.c index 2904cfb3ad..954dd6f2ef 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/modtrd.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/modtrd.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. */ -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/modtrdim.c b/src/northbridge/amd/amdmct/mct_ddr3/modtrdim.c index 5157a5ce8f..06bfdba84f 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/modtrdim.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/modtrdim.c @@ -16,7 +16,7 @@ /* This file contains functions for odt setting on registered DDR3 dimms */ -#include <inttypes.h> +#include <stdint.h> #include <console/console.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mport_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mport_d.c index ef99af8c5c..999cb94f24 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mport_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mport_d.c @@ -14,7 +14,7 @@ */ #include <arch/io.h> -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mutilc_d.c b/src/northbridge/amd/amdmct/mct_ddr3/mutilc_d.c index 61a00562f4..0420b660b9 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mutilc_d.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mutilc_d.c @@ -17,7 +17,7 @@ /* This file contains functions for common utility functions */ #include <arch/cpu.h> -#include <inttypes.h> +#include <stdint.h> #include "mct_d.h" #include "mct_d_gcc.h" diff --git a/src/northbridge/amd/amdmct/mct_ddr3/s3utils.c b/src/northbridge/amd/amdmct/mct_ddr3/s3utils.c index d991002f5b..1517398a33 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/s3utils.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/s3utils.c @@ -29,7 +29,7 @@ #include <spi-generic.h> #include <spi_flash.h> #include <pc80/mc146818rtc.h> -#include <inttypes.h> +#include <stdint.h> #include <types.h> #include "mct_d.h" diff --git a/src/northbridge/amd/amdmct/wrappers/mcti.h b/src/northbridge/amd/amdmct/wrappers/mcti.h index 92dc0b853c..cc0e1b29b2 100644 --- a/src/northbridge/amd/amdmct/wrappers/mcti.h +++ b/src/northbridge/amd/amdmct/wrappers/mcti.h @@ -18,7 +18,7 @@ #ifndef MCTI_H #define MCTI_H -#include <inttypes.h> +#include <stdint.h> #include <stdlib.h> #include <pc80/mc146818rtc.h> |