summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/lpc
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2017-10-27 15:54:26 +0200
committerNico Huber <nico.h@gmx.de>2017-11-03 07:54:01 +0000
commitfa7d2a07fec4ecd1564d9b84f366a5f82d967c21 (patch)
treed31b3738d5106bc8850f8705caedc75af75671b6 /src/soc/intel/common/block/lpc
parent64e83409a19f7a10524977442eead72db0bddb49 (diff)
soc/intel/common/block/lpc: Make integer literal unsigned long
``` CC romstage/soc/intel/common/block/*/lpc_lib.o src/soc/intel/common/block/lpc/lpc_lib.c:91:17: warning: The result of the '<<' expression is undefined alignment = 1 << (log2_ceil(window_size)); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Change-Id: I9bf2283e23ca7739a7e5b0993d9b6034ea28fb78 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/22201 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/soc/intel/common/block/lpc')
-rw-r--r--src/soc/intel/common/block/lpc/lpc_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/lpc/lpc_lib.c b/src/soc/intel/common/block/lpc/lpc_lib.c
index 0fcf383ecb..b4b3d1bb52 100644
--- a/src/soc/intel/common/block/lpc/lpc_lib.c
+++ b/src/soc/intel/common/block/lpc/lpc_lib.c
@@ -88,7 +88,7 @@ void lpc_open_pmio_window(uint16_t base, uint16_t size)
window_size = MIN(size, LPC_LGIR_MAX_WINDOW_SIZE);
/* Window size must be a power of two for the AMASK to work. */
- alignment = 1 << (log2_ceil(window_size));
+ alignment = 1UL << (log2_ceil(window_size));
window_size = ALIGN_UP(window_size, alignment);
/* Address[15:2] in LGIR[15:12] and Mask[7:2] in LGIR[23:18]. */