summaryrefslogtreecommitdiff
path: root/tools/src/soc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/soc.h')
-rw-r--r--tools/src/soc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/src/soc.h b/tools/src/soc.h
new file mode 100644
index 0000000..26ddddc
--- /dev/null
+++ b/tools/src/soc.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: MIT */
+
+#ifndef __SOC_H__
+#define __SOC_H__
+
+#include "../config.h"
+
+#define T8103 0x8103
+#define T8112 0x8112
+#define T6000 0x6000
+#define T6001 0x6001
+#define T6002 0x6002
+
+#ifdef TARGET
+
+#if TARGET == T8103
+#define EARLY_UART_BASE 0x235200000
+#elif TARGET == T6000 || TARGET == T6001 || TARGET == T6002
+#define EARLY_UART_BASE 0x39b200000
+#elif TARGET == T8112
+#define EARLY_UART_BASE 0x235200000
+#endif
+
+#endif
+#endif