summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobert Rosengren <robert.rosengren@stericsson.com>2010-12-14 09:12:41 +0100
committerMichael BRANDT <michael.brandt@stericsson.com>2010-12-15 09:53:31 +0100
commitc0d5e1d2461f8135492a79f3e5259ac324ee1a96 (patch)
tree485a730652f6ff122f269f3583130dbbd29a68df /include
parenta7d22caa0320025442cb8c275bd70d034f5eb308 (diff)
U8500: Move itp and cspsa into SoC directory
itp.c and cspsa_fp.c is SoC specific, not board specific. Other db8500 based boards need it as well, therefore move it into the SoC directory. ST-Ericsson ID: WP275634 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I386c0d84e9f44f18ded0d9059fc2dae4c27974f2 Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10894 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com> Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/arch-db8500/cspsa_fp.h31
-rw-r--r--include/asm-arm/arch-db8500/itp.h28
2 files changed, 59 insertions, 0 deletions
diff --git a/include/asm-arm/arch-db8500/cspsa_fp.h b/include/asm-arm/arch-db8500/cspsa_fp.h
new file mode 100644
index 000000000..13ddd1e69
--- /dev/null
+++ b/include/asm-arm/arch-db8500/cspsa_fp.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) ST-Ericsson SA 2010
+ *
+ * Author: Martin Lundholm <martin.xa.lundholm@stericsson.com>
+ *
+ * License terms: GNU General Public License (GPL), version 2.
+ *
+ * cspsa_fp.h
+ *
+ * API for CSPSA Fast Parameters
+ *
+ */
+
+#ifndef __CSPSA_FP_H__
+#define __CSPSA_FP_H__
+
+/* -------------------------------------------------------------------------- */
+
+#include <common.h>
+#include <part.h>
+
+/* -------------------------------------------------------------------------- */
+
+#define CSPSA_NBR_OF_FAST_PARAMETERS 4
+#define CSPSA_PARTITION_NAME "CSPSA0"
+
+/* -------------------------------------------------------------------------- */
+
+int cspsa_fp_read(block_dev_desc_t *block_dev, u32 key, u32 *value);
+
+#endif
diff --git a/include/asm-arm/arch-db8500/itp.h b/include/asm-arm/arch-db8500/itp.h
new file mode 100644
index 000000000..e1faf0db0
--- /dev/null
+++ b/include/asm-arm/arch-db8500/itp.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) ST-Ericsson SA 2010
+ *
+ * Author: Mikael Larsson <mikael.xt.larsson@stericsson.com> for ST-Ericsson.
+ *
+ * License terms: GNU General Public License (GPL), version 2.
+ */
+#ifndef __ITP_H__
+#define __ITP_H__
+
+#include <part.h>
+
+/* These values are reserved and should not be removed or changed */
+#define ITP_LOAD_KERNEL 0x01
+#define ITP_LOAD_MODEM 0x02
+#define ITP_LOAD_ITP 0x04
+
+#define ITP_TOC_ITP_NAME "ITP"
+#define ITP_TOC_MODEM_NAME "MODEM"
+#define ITP_TOC_IPL_NAME "IPL"
+
+#define ITP_CSPSA_KEY 0
+
+int itp_is_itp_in_config(void);
+int itp_read_config(block_dev_desc_t *block_dev);
+int itp_load_itp_and_modem(block_dev_desc_t *block_dev);
+
+#endif /* __ITP_H__ */