diff options
author | Ricardo Quesada <ricardoq@google.com> | 2021-08-10 17:10:14 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-08-23 14:08:47 +0000 |
commit | 954df3d6bf60c750a4f4aaa0f4297260755a234e (patch) | |
tree | db9779b6c723b1b59411e38a3172cc44b5f59af6 /src/drivers/i2c/rx6110sa | |
parent | c8f926addac7f2bf8ea8836a31337430aa63db9f (diff) |
include/bcd: move bcd code to commonlib/bsd/include
Move bcd2bin() / bin2bcd() functions to commonlib/bsd/include/
Also, the license is changed from GPL to BSD.
This is because it is needed from "utils" (see CL in the chain).
For reference bin2bcd() & bcd2bin() are very simple functions.
There are already BSD implementations, like these ones (just to
name a few):
https://chromium.googlesource.com/chromiumos/platform/mosys/+/refs/heads/main/include/lib/math.h#67
http://web.mit.edu/freebsd/head/sys/contrib/octeon-sdk/cvmx-cn3010-evb-hs5.c
BUG=b:172210863
TEST=make (everything compiled Ok).
Change-Id: If2eba82da35838799bcbcf38303de6bd53f7eb72
Signed-off-by: Ricardo Quesada <ricardoq@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56904
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/rx6110sa')
-rw-r--r-- | src/drivers/i2c/rx6110sa/rx6110sa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/i2c/rx6110sa/rx6110sa.c b/src/drivers/i2c/rx6110sa/rx6110sa.c index 3cab8fa1c0..d30963cab6 100644 --- a/src/drivers/i2c/rx6110sa/rx6110sa.c +++ b/src/drivers/i2c/rx6110sa/rx6110sa.c @@ -2,13 +2,13 @@ #include <acpi/acpi_device.h> #include <acpi/acpigen.h> +#include <commonlib/bsd/bcd.h> +#include <console/console.h> #include <device/device.h> #include <device/i2c.h> #include <device/i2c_bus.h> -#include <version.h> -#include <console/console.h> -#include <bcd.h> #include <timer.h> +#include <version.h> #include "chip.h" #include "rx6110sa.h" |