summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Sniatkiwicz <davidsn@marvell.com>2017-11-28 13:45:58 +0200
committerKostya Porotchkin <kostap@marvell.com>2018-01-04 18:42:16 +0200
commitb30be098b3f868ffc58ae1ed72af7c03694a369b (patch)
treecb01c2ff01a831f18ef6156ec9619b0efdd069ed /include
parentf2efb19617882f36625af7a19d456f214be35a40 (diff)
icu: restore needed ICU driver to CP-110
Currently, SEI (System Error Interrupt) And REI (Ram Error Interrupt) interrupts don't work. This patch restores the needed parts of the ICU driver in order to configure staticlly the SEI and REI interrupts. Change-Id: Ia8d173cab361988ad909ca7f30e7891dc72c0033 Signed-off-by: David Sniatkiwicz <davidsn@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/46961 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Hanna Hawa <hannah@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Diffstat (limited to 'include')
-rw-r--r--include/drivers/marvell/icu.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/drivers/marvell/icu.h b/include/drivers/marvell/icu.h
new file mode 100644
index 00000000..1aec3880
--- /dev/null
+++ b/include/drivers/marvell/icu.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2017 Marvell International Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ * https://spdx.org/licenses
+ */
+
+#ifndef _ICU_H_
+#define _ICU_H_
+
+#define MVEBU_ICU_REG_OFFSET (0x1E0000)
+
+struct icu_irq {
+ uint8_t icu_id;
+ uint8_t spi_id;
+ uint8_t is_edge;
+};
+
+struct icu_config_entry {
+ const struct icu_irq *map;
+ int size;
+};
+
+struct icu_config {
+ struct icu_config_entry sei;
+ struct icu_config_entry rei;
+};
+
+void icu_init(uintptr_t cp_base, const struct icu_config *config);
+
+#endif /* _ICU_H_ */
+