summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-19 09:00:18 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-09 14:03:33 +0100
commitb79f98f68a1492048f6ca40835f5f7b3096e6367 (patch)
tree4feabf92a57fb152af29f261bc7cbec9cc5d6fc3 /c/src/lib/libbsp/shared
parentbsps/mpc83xx: Fix warnings (diff)
downloadrtems-b79f98f68a1492048f6ca40835f5f7b3096e6367.tar.bz2
bsps/u-boot: Update due to API changes
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/include/u-boot.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/shared/include/u-boot.h b/c/src/lib/libbsp/shared/include/u-boot.h
index a6daa29e56..866cd9bbb0 100644
--- a/c/src/lib/libbsp/shared/include/u-boot.h
+++ b/c/src/lib/libbsp/shared/include/u-boot.h
@@ -7,10 +7,10 @@
*/
/*
- * Copyright (c) 2010 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2010-2014 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
- * Obere Lagerstr. 30
+ * Dornierstr. 4
* 82178 Puchheim
* Germany
* <rtems@embedded-brains.de>
@@ -25,9 +25,20 @@
#include <bsp/u-boot-config.h>
-typedef unsigned long phys_size_t;
+#include <sys/types.h>
+#include <stdint.h>
-#include <bsp/u-boot-board-info.h>
+#ifdef U_BOOT_64_BIT_PHYS_SIZE
+ typedef uint64_t phys_size_t;
+#else
+ typedef unsigned long phys_size_t;
+#endif
+
+#ifdef U_BOOT_GENERIC_BOARD_INFO
+ #include <bsp/u-boot-generic-board-info.h>
+#else
+ #include <bsp/u-boot-board-info.h>
+#endif
#ifdef __cplusplus
extern "C" {