aboutsummaryrefslogtreecommitdiff
path: root/src/soc/cavium/cn81xx/include/soc/soc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/cavium/cn81xx/include/soc/soc.h')
-rw-r--r--src/soc/cavium/cn81xx/include/soc/soc.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/soc/cavium/cn81xx/include/soc/soc.h b/src/soc/cavium/cn81xx/include/soc/soc.h
new file mode 100644
index 0000000000..a751e64846
--- /dev/null
+++ b/src/soc/cavium/cn81xx/include/soc/soc.h
@@ -0,0 +1,43 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2017-present Facebook, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
+#define __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
+
+#include <inttypes.h>
+#include <types.h>
+
+/* MIO BOOT Registers */
+struct cn81xx_mio_boot {
+ u8 rsvd0[0xb0];
+ u64 thr;
+ u8 rsvd1[0x8];
+ u64 pin_defs;
+ u8 rsvd2[0x8];
+ u64 ap_jump;
+ u64 rom_limit;
+ u8 rsvd3[0x18];
+ u64 bist_stat;
+};
+check_member(cn81xx_mio_boot, bist_stat, 0xf8);
+
+/*
+ * 0 = Board supplies 100MHz to DLM_REF_CLK
+ * 1 = bOard supplies 50MHz to PLL_REFCLK
+ * */
+#define MIO_BOOT_PIN_DEFS_UART0_RTS (1 << 16)
+#define MIO_BOOT_PIN_DEFS_UART1_RTS (1 << 17)
+
+#endif /* ! __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H */