summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/include/bitops.h20
-rw-r--r--src/cpu/amd/geode_gx2/cpubug.c1
-rw-r--r--src/cpu/amd/geode_lx/cpubug.c1
-rw-r--r--src/cpu/amd/sc520/sc520.c1
-rw-r--r--src/devices/device.c1
-rw-r--r--src/devices/hypertransport.c2
-rw-r--r--src/devices/pci_device.c1
-rw-r--r--src/devices/pnp_device.c1
-rw-r--r--src/mainboard/emulation/qemu-x86/northbridge.c1
-rw-r--r--src/northbridge/amd/agesa/family10/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family12/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family14/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family15/northbridge.c2
-rw-r--r--src/northbridge/amd/agesa/family15tn/northbridge.c2
-rw-r--r--src/northbridge/amd/amdfam10/misc_control.c2
-rw-r--r--src/northbridge/amd/amdfam10/northbridge.c2
-rw-r--r--src/northbridge/amd/amdk8/misc_control.c2
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c2
-rw-r--r--src/northbridge/amd/gx1/northbridge.c1
-rw-r--r--src/northbridge/amd/gx2/northbridge.c1
-rw-r--r--src/northbridge/amd/gx2/northbridgeinit.c1
-rw-r--r--src/northbridge/amd/lx/northbridge.c1
-rw-r--r--src/northbridge/amd/lx/northbridgeinit.c1
-rw-r--r--src/northbridge/intel/e7501/northbridge.c1
-rw-r--r--src/northbridge/intel/e7505/northbridge.c1
-rw-r--r--src/northbridge/intel/e7520/northbridge.c1
-rw-r--r--src/northbridge/intel/e7525/northbridge.c1
-rw-r--r--src/northbridge/intel/gm45/northbridge.c1
-rw-r--r--src/northbridge/intel/i3100/northbridge.c1
-rw-r--r--src/northbridge/intel/i440bx/northbridge.c1
-rw-r--r--src/northbridge/intel/i440lx/northbridge.c1
-rw-r--r--src/northbridge/intel/i5000/northbridge.c1
-rw-r--r--src/northbridge/intel/i82810/northbridge.c1
-rw-r--r--src/northbridge/intel/i82830/northbridge.c1
-rw-r--r--src/northbridge/intel/i855/northbridge.c1
-rw-r--r--src/northbridge/intel/i945/northbridge.c1
-rw-r--r--src/northbridge/intel/sandybridge/northbridge.c1
-rw-r--r--src/northbridge/intel/sch/northbridge.c1
-rw-r--r--src/northbridge/rdc/r8610/northbridge.c1
-rw-r--r--src/northbridge/via/cn400/northbridge.c2
-rw-r--r--src/northbridge/via/cn400/vga.c1
-rw-r--r--src/northbridge/via/cn700/northbridge.c2
-rw-r--r--src/northbridge/via/cn700/vga.c1
-rw-r--r--src/northbridge/via/cx700/northbridge.c1
-rw-r--r--src/northbridge/via/cx700/vga.c1
-rw-r--r--src/northbridge/via/vt8601/northbridge.c1
-rw-r--r--src/northbridge/via/vt8623/northbridge.c1
-rw-r--r--src/northbridge/via/vt8623/vga.c1
-rw-r--r--src/northbridge/via/vx800/northbridge.c1
-rw-r--r--src/northbridge/via/vx800/vga.c1
-rw-r--r--src/southbridge/amd/agesa/hudson/lpc.c1
-rw-r--r--src/southbridge/amd/agesa/hudson/sm.c1
-rw-r--r--src/southbridge/amd/amd8111/acpi.c2
-rw-r--r--src/southbridge/amd/cimx/sb700/lpc.c1
-rw-r--r--src/southbridge/amd/cimx/sb800/lpc.c1
-rw-r--r--src/southbridge/amd/cs5535/chipsetinit.c1
-rw-r--r--src/southbridge/amd/sb600/lpc.c1
-rw-r--r--src/southbridge/amd/sb600/sm.c1
-rw-r--r--src/southbridge/amd/sb700/lpc.c1
-rw-r--r--src/southbridge/amd/sb700/sm.c1
-rw-r--r--src/southbridge/amd/sb800/lpc.c1
-rw-r--r--src/southbridge/amd/sb800/sm.c1
-rw-r--r--src/southbridge/broadcom/bcm5785/lpc.c1
-rw-r--r--src/southbridge/broadcom/bcm5785/sb_pci_main.c1
-rw-r--r--src/southbridge/nvidia/ck804/lpc.c1
-rw-r--r--src/southbridge/nvidia/ck804/smbus.c1
-rw-r--r--src/southbridge/nvidia/mcp55/lpc.c1
-rw-r--r--src/southbridge/nvidia/mcp55/smbus.c1
-rw-r--r--src/southbridge/sis/sis966/lpc.c1
-rw-r--r--src/southbridge/sis/sis966/sis761.c1
-rw-r--r--src/southbridge/via/k8t890/dram.c2
-rw-r--r--src/superio/nsc/pc8374/superio.c1
-rw-r--r--src/superio/nsc/pc87351/superio.c1
-rw-r--r--src/superio/nsc/pc87360/superio.c1
-rw-r--r--src/superio/nsc/pc87366/superio.c1
-rw-r--r--src/superio/nsc/pc87382/superio.c1
-rw-r--r--src/superio/nsc/pc87384/superio.c1
-rw-r--r--src/superio/nsc/pc87392/superio.c1
-rw-r--r--src/superio/nsc/pc87417/superio.c1
-rw-r--r--src/superio/nsc/pc87427/superio.c1
-rw-r--r--src/superio/nuvoton/wpcm450/superio.c1
-rw-r--r--src/superio/renesas/m3885x/superio.c1
-rw-r--r--src/superio/smsc/kbc1100/superio.c1
-rw-r--r--src/superio/smsc/lpc47b272/superio.c1
-rw-r--r--src/superio/smsc/lpc47b397/superio.c1
-rw-r--r--src/superio/smsc/lpc47m10x/superio.c1
-rw-r--r--src/superio/smsc/lpc47m15x/superio.c1
-rw-r--r--src/superio/smsc/lpc47n217/superio.c1
-rw-r--r--src/superio/smsc/lpc47n227/superio.c1
-rw-r--r--src/superio/smsc/mec1308/superio.c1
-rw-r--r--src/superio/smsc/sch4037/superio.c1
-rw-r--r--src/superio/smsc/sio1036/superio.c1
-rw-r--r--src/superio/winbond/w83627ehg/superio.c1
-rw-r--r--src/superio/winbond/w83627hf/superio.c1
-rw-r--r--src/superio/winbond/w83627thg/superio.c1
-rw-r--r--src/superio/winbond/w83627uhg/superio.c1
-rw-r--r--src/superio/winbond/w83697hf/superio.c2
-rw-r--r--src/superio/winbond/w83977f/superio.c1
-rw-r--r--src/superio/winbond/w83977tf/superio.c1
99 files changed, 15 insertions, 118 deletions
diff --git a/src/arch/x86/include/bitops.h b/src/arch/x86/include/bitops.h
deleted file mode 100644
index 9206465c77..0000000000
--- a/src/arch/x86/include/bitops.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef I386_BITOPS_H
-#define I386_BITOPS_H
-
-/**
- * log2 - Find the truncated log base 2 of x
- */
-
-static inline unsigned long log2(unsigned long x)
-{
- unsigned long r = 0;
- __asm__(
- "bsrl %1, %0\n\t"
- "jnz 1f\n\t"
- "movl $-1, %0\n\t"
- "1:\n\t"
- : "=r" (r) : "r" (x));
- return r;
-
-}
-#endif /* I386_BITOPS_H */
diff --git a/src/cpu/amd/geode_gx2/cpubug.c b/src/cpu/amd/geode_gx2/cpubug.c
index 473766c8a4..54d7e0e8d2 100644
--- a/src/cpu/amd/geode_gx2/cpubug.c
+++ b/src/cpu/amd/geode_gx2/cpubug.c
@@ -6,7 +6,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/amd/gx2def.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/cache.h>
diff --git a/src/cpu/amd/geode_lx/cpubug.c b/src/cpu/amd/geode_lx/cpubug.c
index e3b6e511ee..5b1a7ace04 100644
--- a/src/cpu/amd/geode_lx/cpubug.c
+++ b/src/cpu/amd/geode_lx/cpubug.c
@@ -26,7 +26,6 @@
#include <device/device.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/lxdef.h>
diff --git a/src/cpu/amd/sc520/sc520.c b/src/cpu/amd/sc520/sc520.c
index 382eb877ba..6954f4425e 100644
--- a/src/cpu/amd/sc520/sc520.c
+++ b/src/cpu/amd/sc520/sc520.c
@@ -12,7 +12,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <delay.h>
/*
diff --git a/src/devices/device.c b/src/devices/device.c
index 03e7ea7c63..07bbc7a72a 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -33,7 +33,6 @@
*/
#include <console/console.h>
-#include <bitops.h>
#include <arch/io.h>
#include <device/device.h>
#include <device/pci.h>
diff --git a/src/devices/hypertransport.c b/src/devices/hypertransport.c
index 420054ecb3..a6320fe666 100644
--- a/src/devices/hypertransport.c
+++ b/src/devices/hypertransport.c
@@ -23,7 +23,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <bitops.h>
+#include <lib.h>
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c
index e2a49402c9..d9e6b27738 100644
--- a/src/devices/pci_device.c
+++ b/src/devices/pci_device.c
@@ -26,7 +26,6 @@
#include <console/console.h>
#include <stdlib.h>
#include <stdint.h>
-#include <bitops.h>
#include <string.h>
#include <arch/io.h>
#include <device/device.h>
diff --git a/src/devices/pnp_device.c b/src/devices/pnp_device.c
index fb6c9d6868..19b492db78 100644
--- a/src/devices/pnp_device.c
+++ b/src/devices/pnp_device.c
@@ -24,7 +24,6 @@
#include <console/console.h>
#include <stdlib.h>
#include <stdint.h>
-#include <bitops.h>
#include <string.h>
#include <arch/io.h>
#include <device/device.h>
diff --git a/src/mainboard/emulation/qemu-x86/northbridge.c b/src/mainboard/emulation/qemu-x86/northbridge.c
index 6103229f60..16dcc3b205 100644
--- a/src/mainboard/emulation/qemu-x86/northbridge.c
+++ b/src/mainboard/emulation/qemu-x86/northbridge.c
@@ -7,7 +7,6 @@
#include <device/pci.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <delay.h>
#include <smbios.h>
diff --git a/src/northbridge/amd/agesa/family10/northbridge.c b/src/northbridge/amd/agesa/family10/northbridge.c
index f1ed610e42..4bdc7b4fed 100644
--- a/src/northbridge/amd/agesa/family10/northbridge.c
+++ b/src/northbridge/amd/agesa/family10/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family12/northbridge.c b/src/northbridge/amd/agesa/family12/northbridge.c
index ac3f3082e7..c4b43c5ed9 100644
--- a/src/northbridge/amd/agesa/family12/northbridge.c
+++ b/src/northbridge/amd/agesa/family12/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family14/northbridge.c b/src/northbridge/amd/agesa/family14/northbridge.c
index 74473c065e..5e8d89b46d 100644
--- a/src/northbridge/amd/agesa/family14/northbridge.c
+++ b/src/northbridge/amd/agesa/family14/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family15/northbridge.c b/src/northbridge/amd/agesa/family15/northbridge.c
index 78986e4a0c..abd53b2787 100644
--- a/src/northbridge/amd/agesa/family15/northbridge.c
+++ b/src/northbridge/amd/agesa/family15/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/agesa/family15tn/northbridge.c b/src/northbridge/amd/agesa/family15tn/northbridge.c
index ac605b0304..5659ac6539 100644
--- a/src/northbridge/amd/agesa/family15tn/northbridge.c
+++ b/src/northbridge/amd/agesa/family15tn/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cbmem.h>
diff --git a/src/northbridge/amd/amdfam10/misc_control.c b/src/northbridge/amd/amdfam10/misc_control.c
index 472382c9a7..39750058b3 100644
--- a/src/northbridge/amd/amdfam10/misc_control.c
+++ b/src/northbridge/amd/amdfam10/misc_control.c
@@ -31,7 +31,7 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/amd/model_10xxx_rev.h>
#include "amdfam10.h"
diff --git a/src/northbridge/amd/amdfam10/northbridge.c b/src/northbridge/amd/amdfam10/northbridge.c
index 971051f76a..77dd138940 100644
--- a/src/northbridge/amd/amdfam10/northbridge.c
+++ b/src/northbridge/amd/amdfam10/northbridge.c
@@ -26,7 +26,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
diff --git a/src/northbridge/amd/amdk8/misc_control.c b/src/northbridge/amd/amdk8/misc_control.c
index cc69883007..030c9928c5 100644
--- a/src/northbridge/amd/amdk8/misc_control.c
+++ b/src/northbridge/amd/amdk8/misc_control.c
@@ -16,7 +16,7 @@
#include <device/pci_ops.h>
#include <reset.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/amd/model_fxx_rev.h>
#include "amdk8.h"
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index 4d14efabcc..2f3d778492 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -14,7 +14,7 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include <cpu/x86/lapic.h>
diff --git a/src/northbridge/amd/gx1/northbridge.c b/src/northbridge/amd/gx1/northbridge.c
index fbea3b58a3..83b84e3734 100644
--- a/src/northbridge/amd/gx1/northbridge.c
+++ b/src/northbridge/amd/gx1/northbridge.c
@@ -6,7 +6,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/amd/gx1def.h>
#include <cpu/x86/cache.h>
diff --git a/src/northbridge/amd/gx2/northbridge.c b/src/northbridge/amd/gx2/northbridge.c
index 12096d85fe..80bcdf611a 100644
--- a/src/northbridge/amd/gx2/northbridge.c
+++ b/src/northbridge/amd/gx2/northbridge.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/x86/msr.h>
#include <cpu/x86/cache.h>
diff --git a/src/northbridge/amd/gx2/northbridgeinit.c b/src/northbridge/amd/gx2/northbridgeinit.c
index f51bcc6b36..09f8b00de8 100644
--- a/src/northbridge/amd/gx2/northbridgeinit.c
+++ b/src/northbridge/amd/gx2/northbridgeinit.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/amd/gx2def.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/amd/lx/northbridge.c b/src/northbridge/amd/lx/northbridge.c
index 5f98b4051e..aaaf46b207 100644
--- a/src/northbridge/amd/lx/northbridge.c
+++ b/src/northbridge/amd/lx/northbridge.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/amd/lxdef.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/amd/lx/northbridgeinit.c b/src/northbridge/amd/lx/northbridgeinit.c
index 6288608095..f883900fdf 100644
--- a/src/northbridge/amd/lx/northbridgeinit.c
+++ b/src/northbridge/amd/lx/northbridgeinit.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
#include <cpu/amd/lxdef.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/intel/e7501/northbridge.c b/src/northbridge/intel/e7501/northbridge.c
index c70f032597..e7d7d5ddf5 100644
--- a/src/northbridge/intel/e7501/northbridge.c
+++ b/src/northbridge/intel/e7501/northbridge.c
@@ -6,7 +6,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#if CONFIG_WRITE_HIGH_TABLES
#include <cbmem.h>
diff --git a/src/northbridge/intel/e7505/northbridge.c b/src/northbridge/intel/e7505/northbridge.c
index b6d24fa98b..db0ece2519 100644
--- a/src/northbridge/intel/e7505/northbridge.c
+++ b/src/northbridge/intel/e7505/northbridge.c
@@ -6,7 +6,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "e7505.h"
#if CONFIG_WRITE_HIGH_TABLES
diff --git a/src/northbridge/intel/e7520/northbridge.c b/src/northbridge/intel/e7520/northbridge.c
index 3b92aa82f9..962e8cdda2 100644
--- a/src/northbridge/intel/e7520/northbridge.c
+++ b/src/northbridge/intel/e7520/northbridge.c
@@ -7,7 +7,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "chip.h"
#include "northbridge.h"
diff --git a/src/northbridge/intel/e7525/northbridge.c b/src/northbridge/intel/e7525/northbridge.c
index ab88899641..ceb7afa7c1 100644
--- a/src/northbridge/intel/e7525/northbridge.c
+++ b/src/northbridge/intel/e7525/northbridge.c
@@ -7,7 +7,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "chip.h"
#include "northbridge.h"
diff --git a/src/northbridge/intel/gm45/northbridge.c b/src/northbridge/intel/gm45/northbridge.c
index 8c80f86d1b..1839ec63e0 100644
--- a/src/northbridge/intel/gm45/northbridge.c
+++ b/src/northbridge/intel/gm45/northbridge.c
@@ -26,7 +26,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <boot/tables.h>
#include <arch/acpi.h>
diff --git a/src/northbridge/intel/i3100/northbridge.c b/src/northbridge/intel/i3100/northbridge.c
index db35b85a6d..d90d0b52e3 100644
--- a/src/northbridge/intel/i3100/northbridge.c
+++ b/src/northbridge/intel/i3100/northbridge.c
@@ -29,7 +29,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "chip.h"
#include "i3100.h"
diff --git a/src/northbridge/intel/i440bx/northbridge.c b/src/northbridge/intel/i440bx/northbridge.c
index 39bd6b9aca..ccd5e9cf69 100644
--- a/src/northbridge/intel/i440bx/northbridge.c
+++ b/src/northbridge/intel/i440bx/northbridge.c
@@ -6,7 +6,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <pc80/keyboard.h>
#include "northbridge.h"
diff --git a/src/northbridge/intel/i440lx/northbridge.c b/src/northbridge/intel/i440lx/northbridge.c
index 57fcfcb8a7..c75a4bbe57 100644
--- a/src/northbridge/intel/i440lx/northbridge.c
+++ b/src/northbridge/intel/i440lx/northbridge.c
@@ -27,7 +27,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <pc80/keyboard.h>
#include "northbridge.h"
diff --git a/src/northbridge/intel/i5000/northbridge.c b/src/northbridge/intel/i5000/northbridge.c
index 1548f19366..071616cf26 100644
--- a/src/northbridge/intel/i5000/northbridge.c
+++ b/src/northbridge/intel/i5000/northbridge.c
@@ -25,7 +25,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/acpi.h>
#include <cbmem.h>
diff --git a/src/northbridge/intel/i82810/northbridge.c b/src/northbridge/intel/i82810/northbridge.c
index 4c09d44d95..ed9876fa3d 100644
--- a/src/northbridge/intel/i82810/northbridge.c
+++ b/src/northbridge/intel/i82810/northbridge.c
@@ -27,7 +27,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "northbridge.h"
#include "i82810.h"
diff --git a/src/northbridge/intel/i82830/northbridge.c b/src/northbridge/intel/i82830/northbridge.c
index 95ac2edd5d..f2505bd4c1 100644
--- a/src/northbridge/intel/i82830/northbridge.c
+++ b/src/northbridge/intel/i82830/northbridge.c
@@ -27,7 +27,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "i82830.h"
static void northbridge_init(device_t dev)
diff --git a/src/northbridge/intel/i855/northbridge.c b/src/northbridge/intel/i855/northbridge.c
index 74e2c766a7..b1e150f9bb 100644
--- a/src/northbridge/intel/i855/northbridge.c
+++ b/src/northbridge/intel/i855/northbridge.c
@@ -28,7 +28,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/x86/cache.h>
#include <cpu/cpu.h>
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c
index 684bb7195d..c6c93e540a 100644
--- a/src/northbridge/intel/i945/northbridge.c
+++ b/src/northbridge/intel/i945/northbridge.c
@@ -26,7 +26,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/acpi.h>
#include "i945.h"
diff --git a/src/northbridge/intel/sandybridge/northbridge.c b/src/northbridge/intel/sandybridge/northbridge.c
index 4b5a03a6c5..8652838add 100644
--- a/src/northbridge/intel/sandybridge/northbridge.c
+++ b/src/northbridge/intel/sandybridge/northbridge.c
@@ -31,7 +31,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cbmem.h>
#include "chip.h"
diff --git a/src/northbridge/intel/sch/northbridge.c b/src/northbridge/intel/sch/northbridge.c
index 4c41d68fbd..fe5881c8b3 100644
--- a/src/northbridge/intel/sch/northbridge.c
+++ b/src/northbridge/intel/sch/northbridge.c
@@ -26,7 +26,6 @@
#include <device/hypertransport.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/acpi.h>
#include "sch.h"
diff --git a/src/northbridge/rdc/r8610/northbridge.c b/src/northbridge/rdc/r8610/northbridge.c
index 65fd5ebf72..ebcccff7b4 100644
--- a/src/northbridge/rdc/r8610/northbridge.c
+++ b/src/northbridge/rdc/r8610/northbridge.c
@@ -28,7 +28,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <smbios.h>
#if CONFIG_WRITE_HIGH_TABLES
diff --git a/src/northbridge/via/cn400/northbridge.c b/src/northbridge/via/cn400/northbridge.c
index 61d7345d99..ab9f08445b 100644
--- a/src/northbridge/via/cn400/northbridge.c
+++ b/src/northbridge/via/cn400/northbridge.c
@@ -28,7 +28,7 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include "northbridge.h"
#include "cn400.h"
diff --git a/src/northbridge/via/cn400/vga.c b/src/northbridge/via/cn400/vga.c
index d8c921af89..d87cfcb0b7 100644
--- a/src/northbridge/via/cn400/vga.c
+++ b/src/northbridge/via/cn400/vga.c
@@ -31,7 +31,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/interrupt.h>
#include "northbridge.h"
diff --git a/src/northbridge/via/cn700/northbridge.c b/src/northbridge/via/cn700/northbridge.c
index 837ec8572e..86c11a8d55 100644
--- a/src/northbridge/via/cn700/northbridge.c
+++ b/src/northbridge/via/cn700/northbridge.c
@@ -28,7 +28,7 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <cpu/cpu.h>
#include "northbridge.h"
#include "cn700.h"
diff --git a/src/northbridge/via/cn700/vga.c b/src/northbridge/via/cn700/vga.c
index 0f96b2cbbf..0ad181d176 100644
--- a/src/northbridge/via/cn700/vga.c
+++ b/src/northbridge/via/cn700/vga.c
@@ -31,7 +31,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <arch/interrupt.h>
#include "northbridge.h"
diff --git a/src/northbridge/via/cx700/northbridge.c b/src/northbridge/via/cx700/northbridge.c
index 3d7137e5de..ce5edf8cb8 100644
--- a/src/northbridge/via/cx700/northbridge.c
+++ b/src/northbridge/via/cx700/northbridge.c
@@ -26,7 +26,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
diff --git a/src/northbridge/via/cx700/vga.c b/src/northbridge/via/cx700/vga.c
index 6b60354dd1..ce294faa97 100644
--- a/src/northbridge/via/cx700/vga.c
+++ b/src/northbridge/via/cx700/vga.c
@@ -25,7 +25,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/via/vt8601/northbridge.c b/src/northbridge/via/vt8601/northbridge.c
index f5f084c17a..950d6838a2 100644
--- a/src/northbridge/via/vt8601/northbridge.c
+++ b/src/northbridge/via/vt8601/northbridge.c
@@ -8,7 +8,6 @@
#include <cpu/cpu.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "northbridge.h"
/*
diff --git a/src/northbridge/via/vt8623/northbridge.c b/src/northbridge/via/vt8623/northbridge.c
index 42864e069f..e061155587 100644
--- a/src/northbridge/via/vt8623/northbridge.c
+++ b/src/northbridge/via/vt8623/northbridge.c
@@ -7,7 +7,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/via/vt8623/vga.c b/src/northbridge/via/vt8623/vga.c
index 954ff47873..9bbb54b07f 100644
--- a/src/northbridge/via/vt8623/vga.c
+++ b/src/northbridge/via/vt8623/vga.c
@@ -25,7 +25,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/northbridge/via/vx800/northbridge.c b/src/northbridge/via/vx800/northbridge.c
index 5fcff763fc..4e0a36dae0 100644
--- a/src/northbridge/via/vx800/northbridge.c
+++ b/src/northbridge/via/vx800/northbridge.c
@@ -29,7 +29,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include "vx800.h"
diff --git a/src/northbridge/via/vx800/vga.c b/src/northbridge/via/vx800/vga.c
index 319dbda7de..ee9924dd78 100644
--- a/src/northbridge/via/vx800/vga.c
+++ b/src/northbridge/via/vx800/vga.c
@@ -28,7 +28,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
diff --git a/src/southbridge/amd/agesa/hudson/lpc.c b/src/southbridge/amd/agesa/hudson/lpc.c
index 97f27d0387..b56fa382fb 100644
--- a/src/southbridge/amd/agesa/hudson/lpc.c
+++ b/src/southbridge/amd/agesa/hudson/lpc.c
@@ -25,7 +25,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include "hudson.h"
diff --git a/src/southbridge/amd/agesa/hudson/sm.c b/src/southbridge/amd/agesa/hudson/sm.c
index 36742aa31c..292101c7f3 100644
--- a/src/southbridge/amd/agesa/hudson/sm.c
+++ b/src/southbridge/amd/agesa/hudson/sm.c
@@ -24,7 +24,6 @@
#include <device/pci_ops.h>
#include <device/smbus.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
#include <arch/io.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
diff --git a/src/southbridge/amd/amd8111/acpi.c b/src/southbridge/amd/amd8111/acpi.c
index df57a7e2af..b7348468f3 100644
--- a/src/southbridge/amd/amd8111/acpi.c
+++ b/src/southbridge/amd/amd8111/acpi.c
@@ -5,7 +5,7 @@
#include <device/pci_ops.h>
#include <device/smbus.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
+#include <lib.h>
#include <arch/io.h>
#include "amd8111.h"
#include "amd8111_smbus.h"
diff --git a/src/southbridge/amd/cimx/sb700/lpc.c b/src/southbridge/amd/cimx/sb700/lpc.c
index 7157a5590a..1ee1bbbac9 100644
--- a/src/southbridge/amd/cimx/sb700/lpc.c
+++ b/src/southbridge/amd/cimx/sb700/lpc.c
@@ -19,7 +19,6 @@
#include <device/pci.h>
#include "lpc.h"
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include <console/console.h> /* printk */
diff --git a/src/southbridge/amd/cimx/sb800/lpc.c b/src/southbridge/amd/cimx/sb800/lpc.c
index 59d74c0737..caac5b14d2 100644
--- a/src/southbridge/amd/cimx/sb800/lpc.c
+++ b/src/southbridge/amd/cimx/sb800/lpc.c
@@ -21,7 +21,6 @@
#include <device/pci.h>
#include <arch/ioapic.h>
#include "lpc.h"
-#include <bitops.h>
#include <arch/io.h>
#include <cbmem.h>
diff --git a/src/southbridge/amd/cs5535/chipsetinit.c b/src/southbridge/amd/cs5535/chipsetinit.c
index 2fceefa5eb..7e6ff3abb7 100644
--- a/src/southbridge/amd/cs5535/chipsetinit.c
+++ b/src/southbridge/amd/cs5535/chipsetinit.c
@@ -6,7 +6,6 @@
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>
-#include <bitops.h>
#include "chip.h"
#include "northbridge/amd/gx2/northbridge.h"
#include <cpu/amd/gx2def.h>
diff --git a/src/southbridge/amd/sb600/lpc.c b/src/southbridge/amd/sb600/lpc.c
index 22945a7e8e..7177e4f9fc 100644
--- a/src/southbridge/amd/sb600/lpc.c
+++ b/src/southbridge/amd/sb600/lpc.c
@@ -25,7 +25,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include "sb600.h"
diff --git a/src/southbridge/amd/sb600/sm.c b/src/southbridge/amd/sb600/sm.c
index 8c1dc9029b..8f25549feb 100644
--- a/src/southbridge/amd/sb600/sm.c
+++ b/src/southbridge/amd/sb600/sm.c
@@ -24,7 +24,6 @@
#include <device/pci_ops.h>
#include <device/smbus.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
#include <arch/io.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
diff --git a/src/southbridge/amd/sb700/lpc.c b/src/southbridge/amd/sb700/lpc.c
index be940e3d2f..415b786d37 100644
--- a/src/southbridge/amd/sb700/lpc.c
+++ b/src/southbridge/amd/sb700/lpc.c
@@ -25,7 +25,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include <cbmem.h>
diff --git a/src/southbridge/amd/sb700/sm.c b/src/southbridge/amd/sb700/sm.c
index 05065b6dbe..bd48334a09 100644
--- a/src/southbridge/amd/sb700/sm.c
+++ b/src/southbridge/amd/sb700/sm.c
@@ -24,7 +24,6 @@
#include <device/pci_ops.h>
#include <device/smbus.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
#include <arch/io.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
diff --git a/src/southbridge/amd/sb800/lpc.c b/src/southbridge/amd/sb800/lpc.c
index 3cb0789939..97f0f8404c 100644
--- a/src/southbridge/amd/sb800/lpc.c
+++ b/src/southbridge/amd/sb800/lpc.c
@@ -25,7 +25,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include "sb800.h"
diff --git a/src/southbridge/amd/sb800/sm.c b/src/southbridge/amd/sb800/sm.c
index 50a8f0bca7..7a95feba6a 100644
--- a/src/southbridge/amd/sb800/sm.c
+++ b/src/southbridge/amd/sb800/sm.c
@@ -24,7 +24,6 @@
#include <device/pci_ops.h>
#include <device/smbus.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
#include <arch/io.h>
#include <cpu/x86/lapic.h>
#include <arch/ioapic.h>
diff --git a/src/southbridge/broadcom/bcm5785/lpc.c b/src/southbridge/broadcom/bcm5785/lpc.c
index adf546245f..9956f49987 100644
--- a/src/southbridge/broadcom/bcm5785/lpc.c
+++ b/src/southbridge/broadcom/bcm5785/lpc.c
@@ -26,7 +26,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include "bcm5785.h"
diff --git a/src/southbridge/broadcom/bcm5785/sb_pci_main.c b/src/southbridge/broadcom/bcm5785/sb_pci_main.c
index fe809c4974..955d3c7877 100644
--- a/src/southbridge/broadcom/bcm5785/sb_pci_main.c
+++ b/src/southbridge/broadcom/bcm5785/sb_pci_main.c
@@ -26,7 +26,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <device/smbus.h>
#include "bcm5785.h"
diff --git a/src/southbridge/nvidia/ck804/lpc.c b/src/southbridge/nvidia/ck804/lpc.c
index d37188265f..6ccea6a354 100644
--- a/src/southbridge/nvidia/ck804/lpc.c
+++ b/src/southbridge/nvidia/ck804/lpc.c
@@ -28,7 +28,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include <cpu/x86/lapic.h>
diff --git a/src/southbridge/nvidia/ck804/smbus.c b/src/southbridge/nvidia/ck804/smbus.c
index 011faf8fb4..269340eb91 100644
--- a/src/southbridge/nvidia/ck804/smbus.c
+++ b/src/southbridge/nvidia/ck804/smbus.c
@@ -24,7 +24,6 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <device/smbus.h>
-#include <bitops.h>
#include <arch/io.h>
#include "ck804.h"
#include "smbus.h"
diff --git a/src/southbridge/nvidia/mcp55/lpc.c b/src/southbridge/nvidia/mcp55/lpc.c
index d16e3cc509..1e2155ae73 100644
--- a/src/southbridge/nvidia/mcp55/lpc.c
+++ b/src/southbridge/nvidia/mcp55/lpc.c
@@ -31,7 +31,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include <cpu/x86/lapic.h>
diff --git a/src/southbridge/nvidia/mcp55/smbus.c b/src/southbridge/nvidia/mcp55/smbus.c
index a945f237d0..694918630b 100644
--- a/src/southbridge/nvidia/mcp55/smbus.c
+++ b/src/southbridge/nvidia/mcp55/smbus.c
@@ -27,7 +27,6 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <device/smbus.h>
-#include <bitops.h>
#include <arch/io.h>
#include "mcp55.h"
#include "smbus.h"
diff --git a/src/southbridge/sis/sis966/lpc.c b/src/southbridge/sis/sis966/lpc.c
index 26f60dd3af..9714085959 100644
--- a/src/southbridge/sis/sis966/lpc.c
+++ b/src/southbridge/sis/sis966/lpc.c
@@ -33,7 +33,6 @@
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
#include <pc80/isa-dma.h>
-#include <bitops.h>
#include <arch/io.h>
#include <arch/ioapic.h>
#include <cpu/x86/lapic.h>
diff --git a/src/southbridge/sis/sis966/sis761.c b/src/southbridge/sis/sis966/sis761.c
index 3d7bc470d3..9dd16e8764 100644
--- a/src/southbridge/sis/sis966/sis761.c
+++ b/src/southbridge/sis/sis966/sis761.c
@@ -37,7 +37,6 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
#include <cpu/amd/model_fxx_rev.h>
#include <arch/io.h>
diff --git a/src/southbridge/via/k8t890/dram.c b/src/southbridge/via/k8t890/dram.c
index 11c84812b7..088b3d2676 100644
--- a/src/southbridge/via/k8t890/dram.c
+++ b/src/southbridge/via/k8t890/dram.c
@@ -25,7 +25,7 @@
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <pc80/mc146818rtc.h>
-#include <bitops.h>
+#include <lib.h>
#include "k8x8xx.h"
static void dram_enable(struct device *dev)
diff --git a/src/superio/nsc/pc8374/superio.c b/src/superio/nsc/pc8374/superio.c
index d5060c4d05..a018766f24 100644
--- a/src/superio/nsc/pc8374/superio.c
+++ b/src/superio/nsc/pc8374/superio.c
@@ -24,7 +24,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87351/superio.c b/src/superio/nsc/pc87351/superio.c
index 259430e0f5..35725d654b 100644
--- a/src/superio/nsc/pc87351/superio.c
+++ b/src/superio/nsc/pc87351/superio.c
@@ -24,7 +24,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87360/superio.c b/src/superio/nsc/pc87360/superio.c
index 5da68e2c11..0a67dcfd3e 100644
--- a/src/superio/nsc/pc87360/superio.c
+++ b/src/superio/nsc/pc87360/superio.c
@@ -24,7 +24,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87366/superio.c b/src/superio/nsc/pc87366/superio.c
index b5f28700ec..9b58df69e6 100644
--- a/src/superio/nsc/pc87366/superio.c
+++ b/src/superio/nsc/pc87366/superio.c
@@ -24,7 +24,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87382/superio.c b/src/superio/nsc/pc87382/superio.c
index 9d4bee0f7a..3c714a6574 100644
--- a/src/superio/nsc/pc87382/superio.c
+++ b/src/superio/nsc/pc87382/superio.c
@@ -23,7 +23,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87384/superio.c b/src/superio/nsc/pc87384/superio.c
index 39177fd7d2..4b1963cd5d 100644
--- a/src/superio/nsc/pc87384/superio.c
+++ b/src/superio/nsc/pc87384/superio.c
@@ -23,7 +23,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87392/superio.c b/src/superio/nsc/pc87392/superio.c
index 81c679c36c..8a2e5c80a5 100644
--- a/src/superio/nsc/pc87392/superio.c
+++ b/src/superio/nsc/pc87392/superio.c
@@ -23,7 +23,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <stdlib.h>
#include "pc87392.h"
diff --git a/src/superio/nsc/pc87417/superio.c b/src/superio/nsc/pc87417/superio.c
index 9cd0e6bd4d..a9e8823011 100644
--- a/src/superio/nsc/pc87417/superio.c
+++ b/src/superio/nsc/pc87417/superio.c
@@ -25,7 +25,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/nsc/pc87427/superio.c b/src/superio/nsc/pc87427/superio.c
index 3646fd1e1a..f2e8d9fdb9 100644
--- a/src/superio/nsc/pc87427/superio.c
+++ b/src/superio/nsc/pc87427/superio.c
@@ -24,7 +24,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <stdlib.h>
#include "chip.h"
#include "pc87427.h"
diff --git a/src/superio/nuvoton/wpcm450/superio.c b/src/superio/nuvoton/wpcm450/superio.c
index 879f40591e..5ce1d2a1be 100644
--- a/src/superio/nuvoton/wpcm450/superio.c
+++ b/src/superio/nuvoton/wpcm450/superio.c
@@ -23,7 +23,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/renesas/m3885x/superio.c b/src/superio/renesas/m3885x/superio.c
index 1a5fbe6277..a098493a9d 100644
--- a/src/superio/renesas/m3885x/superio.c
+++ b/src/superio/renesas/m3885x/superio.c
@@ -23,7 +23,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <assert.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/kbc1100/superio.c b/src/superio/smsc/kbc1100/superio.c
index c4fde95960..405b90e343 100644
--- a/src/superio/smsc/kbc1100/superio.c
+++ b/src/superio/smsc/kbc1100/superio.c
@@ -25,7 +25,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/lpc47b272/superio.c b/src/superio/smsc/lpc47b272/superio.c
index f57c306d98..15e486c202 100644
--- a/src/superio/smsc/lpc47b272/superio.c
+++ b/src/superio/smsc/lpc47b272/superio.c
@@ -29,7 +29,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/lpc47b397/superio.c b/src/superio/smsc/lpc47b397/superio.c
index fa549db46b..c83ab3438b 100644
--- a/src/superio/smsc/lpc47b397/superio.c
+++ b/src/superio/smsc/lpc47b397/superio.c
@@ -26,7 +26,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/lpc47m10x/superio.c b/src/superio/smsc/lpc47m10x/superio.c
index 3d6a8ed1d7..b422ea0854 100644
--- a/src/superio/smsc/lpc47m10x/superio.c
+++ b/src/superio/smsc/lpc47m10x/superio.c
@@ -28,7 +28,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/lpc47m15x/superio.c b/src/superio/smsc/lpc47m15x/superio.c
index 222e3c9eec..c3117b23eb 100644
--- a/src/superio/smsc/lpc47m15x/superio.c
+++ b/src/superio/smsc/lpc47m15x/superio.c
@@ -25,7 +25,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/lpc47n217/superio.c b/src/superio/smsc/lpc47n217/superio.c
index 2658831bcd..d6c153d33a 100644
--- a/src/superio/smsc/lpc47n217/superio.c
+++ b/src/superio/smsc/lpc47n217/superio.c
@@ -29,7 +29,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <assert.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/lpc47n227/superio.c b/src/superio/smsc/lpc47n227/superio.c
index a241eb6d36..2f877a0d80 100644
--- a/src/superio/smsc/lpc47n227/superio.c
+++ b/src/superio/smsc/lpc47n227/superio.c
@@ -26,7 +26,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <assert.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/mec1308/superio.c b/src/superio/smsc/mec1308/superio.c
index 070871d106..0de06f8f32 100644
--- a/src/superio/smsc/mec1308/superio.c
+++ b/src/superio/smsc/mec1308/superio.c
@@ -25,7 +25,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
#include "chip.h"
diff --git a/src/superio/smsc/sch4037/superio.c b/src/superio/smsc/sch4037/superio.c
index eebcacd60e..b99d7f7bc6 100644
--- a/src/superio/smsc/sch4037/superio.c
+++ b/src/superio/smsc/sch4037/superio.c
@@ -25,7 +25,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/smsc/sio1036/superio.c b/src/superio/smsc/sio1036/superio.c
index 2522d92403..d1acb90b04 100644
--- a/src/superio/smsc/sio1036/superio.c
+++ b/src/superio/smsc/sio1036/superio.c
@@ -25,7 +25,6 @@
#include <console/console.h>
#include <device/smbus.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/winbond/w83627ehg/superio.c b/src/superio/winbond/w83627ehg/superio.c
index 85747f26eb..f40bec6535 100644
--- a/src/superio/winbond/w83627ehg/superio.c
+++ b/src/superio/winbond/w83627ehg/superio.c
@@ -26,7 +26,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <pc80/mc146818rtc.h>
diff --git a/src/superio/winbond/w83627hf/superio.c b/src/superio/winbond/w83627hf/superio.c
index 1d1b169e83..da286a0e1c 100644
--- a/src/superio/winbond/w83627hf/superio.c
+++ b/src/superio/winbond/w83627hf/superio.c
@@ -26,7 +26,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <pc80/mc146818rtc.h>
diff --git a/src/superio/winbond/w83627thg/superio.c b/src/superio/winbond/w83627thg/superio.c
index 40a232602d..d42f461fa6 100644
--- a/src/superio/winbond/w83627thg/superio.c
+++ b/src/superio/winbond/w83627thg/superio.c
@@ -25,7 +25,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include "chip.h"
diff --git a/src/superio/winbond/w83627uhg/superio.c b/src/superio/winbond/w83627uhg/superio.c
index 933bde6cef..f606948920 100644
--- a/src/superio/winbond/w83627uhg/superio.c
+++ b/src/superio/winbond/w83627uhg/superio.c
@@ -25,7 +25,6 @@
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include "chip.h"
diff --git a/src/superio/winbond/w83697hf/superio.c b/src/superio/winbond/w83697hf/superio.c
index 8f090d0b66..cdf7ecdd1b 100644
--- a/src/superio/winbond/w83697hf/superio.c
+++ b/src/superio/winbond/w83697hf/superio.c
@@ -23,7 +23,7 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
+#include <lib.h>
#include <uart8250.h>
#include <pc80/mc146818rtc.h>
#include <stdlib.h>
diff --git a/src/superio/winbond/w83977f/superio.c b/src/superio/winbond/w83977f/superio.c
index e197b372f2..353d4288c4 100644
--- a/src/superio/winbond/w83977f/superio.c
+++ b/src/superio/winbond/w83977f/superio.c
@@ -23,7 +23,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>
diff --git a/src/superio/winbond/w83977tf/superio.c b/src/superio/winbond/w83977tf/superio.c
index 40952d2a4b..eabf080a54 100644
--- a/src/superio/winbond/w83977tf/superio.c
+++ b/src/superio/winbond/w83977tf/superio.c
@@ -25,7 +25,6 @@
#include <device/pnp.h>
#include <console/console.h>
#include <string.h>
-#include <bitops.h>
#include <uart8250.h>
#include <pc80/keyboard.h>
#include <stdlib.h>