coreboot-kgpe-d16/src/commonlib
Ricardo Quesada 954df3d6bf 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>
2021-08-23 14:08:47 +00:00
..
bsd include/bcd: move bcd code to commonlib/bsd/include 2021-08-23 14:08:47 +00:00
include/commonlib Move post_codes.h to commonlib/console/ 2021-08-04 15:15:51 +00:00
storage src/commonlib: Drop unneeded empty lines 2020-09-21 15:53:25 +00:00
cbfs.c commonlib/cbfs.c: Remove unuse <console/console.h> 2021-02-15 10:51:24 +00:00
fsp_relocate.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
iobuf.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Makefile.inc Move elog_internal.h to commonlib/bsd/include 2021-08-04 15:15:55 +00:00
mem_pool.c mem_pool: Track the last two allocations (not just one) 2021-04-06 07:50:05 +00:00
region.c commonlib/region: Turn addrspace_32bit into a more official API 2021-04-21 02:06:26 +00:00
sort.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00