coreboot/src/cpu
Martin Roth 0fa4f6f23d cpu/allwinner/a10: Fix I2c speed calculation
Looking at the A10 datasheet, N should go in bits 2:0, but
was being cleared by shifting it left by three bits, then
anding it with 7.

Fixes coverity warning:
CID 1241888 (#1 of 1): Wrong operator used (CONSTANT_EXPRESSION_RESULT)
operator_confusion: (n << 3) & (7U /* 7 << 0 */) is always 0 regardless
of the values of its operands. This occurs as the bitwise second operand
of '|'.

Change-Id: I17e71a73adf37a62607e8e5865b1da749d7278aa
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12779
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2015-12-25 21:51:23 +01:00
..
allwinner cpu/allwinner/a10: Fix I2c speed calculation 2015-12-25 21:51:23 +01:00
amd drivers/pc80: Add optional spinlock for nvram CBFS access 2015-12-18 19:47:01 +01:00
armltd vboot2: add verstage 2015-01-27 01:41:40 +01:00
dmp tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
intel Remove #ifdef checks on Kconfig symbols 2015-12-06 18:46:12 +01:00
qemu-x86 qemu-x86: Enable SMP support 2015-12-08 15:54:27 +01:00
ti tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
via tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
x86 x86/smm: Initialize SMM on some CPUs one-by-one 2015-12-02 00:38:45 +01:00
Kconfig cpu: Add a way to use microcode .h files back to the build 2015-11-10 19:22:40 +01:00
Makefile.inc cpu: Add a way to use microcode .h files back to the build 2015-11-10 19:22:40 +01:00