summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/configs/uniphier.h1
-rw-r--r--include/tables_csum.h12
2 files changed, 11 insertions, 2 deletions
diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index 7331d13..5be46e5 100644
--- a/include/configs/uniphier.h
+++ b/include/configs/uniphier.h
@@ -126,7 +126,6 @@
#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
/* USB */
-#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 4
#define CONFIG_FAT_WRITE
#define CONFIG_DOS_PARTITION
diff --git a/include/tables_csum.h b/include/tables_csum.h
index a021efb..27d147b 100644
--- a/include/tables_csum.h
+++ b/include/tables_csum.h
@@ -7,6 +7,16 @@
#ifndef _TABLES_CSUM_H_
#define _TABLES_CSUM_H_
-u8 table_compute_checksum(void *v, int len);
+static inline u8 table_compute_checksum(void *v, int len)
+{
+ u8 *bytes = v;
+ u8 checksum = 0;
+ int i;
+
+ for (i = 0; i < len; i++)
+ checksum -= bytes[i];
+
+ return checksum;
+}
#endif