summaryrefslogtreecommitdiff
path: root/platform/drivers/inc/rdc.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/drivers/inc/rdc.h')
-rw-r--r--platform/drivers/inc/rdc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/drivers/inc/rdc.h b/platform/drivers/inc/rdc.h
index 872e39d..1a10975 100644
--- a/platform/drivers/inc/rdc.h
+++ b/platform/drivers/inc/rdc.h
@@ -36,6 +36,13 @@
#include <assert.h>
#include "device_imx.h"
+#define __round_mask(x, y) ((typeof(x))((y)-1))
+#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
+#define round_down(x, y) ((x) & ~__round_mask(x, y))
+
+#define RDC_REGION_RES_MMDC 4096
+#define RDC_REGION_RES_OCRAM 128
+
/*!
* @addtogroup rdc_driver
* @{