|
@@ -7,9 +7,16 @@
|
|
|
|
|
|
/* EMU clusters */
|
|
/* EMU clusters */
|
|
#define NR_CLUSTERS 4
|
|
#define NR_CLUSTERS 4
|
|
|
|
+/* Maximum cores per cluster,
|
|
|
|
+ * varies based on partname
|
|
|
|
+ */
|
|
#define AE_CORES_PER_CLUSTER 20
|
|
#define AE_CORES_PER_CLUSTER 20
|
|
#define SE_CORES_PER_CLUSTER 16
|
|
#define SE_CORES_PER_CLUSTER 16
|
|
|
|
|
|
|
|
+#define AE_MAX_CORES (AE_CORES_PER_CLUSTER * NR_CLUSTERS)
|
|
|
|
+#define SE_MAX_CORES (SE_CORES_PER_CLUSTER * NR_CLUSTERS)
|
|
|
|
+#define ZIP_MAX_CORES 5
|
|
|
|
+
|
|
/* BIST registers */
|
|
/* BIST registers */
|
|
#define EMU_BIST_STATUSX(_i) (0x1402700 + ((_i) * 0x40000))
|
|
#define EMU_BIST_STATUSX(_i) (0x1402700 + ((_i) * 0x40000))
|
|
#define UCD_BIST_STATUS 0x12C0070
|
|
#define UCD_BIST_STATUS 0x12C0070
|
|
@@ -111,6 +118,9 @@
|
|
#define LBC_ELM_VF65_128_INT 0x120C000
|
|
#define LBC_ELM_VF65_128_INT 0x120C000
|
|
#define LBC_ELM_VF65_128_INT_ENA_W1S 0x120F000
|
|
#define LBC_ELM_VF65_128_INT_ENA_W1S 0x120F000
|
|
|
|
|
|
|
|
+#define RST_BOOT 0x10C1600
|
|
|
|
+#define FUS_DAT1 0x10C1408
|
|
|
|
+
|
|
/* PEM registers */
|
|
/* PEM registers */
|
|
#define PEM0_INT 0x1080428
|
|
#define PEM0_INT 0x1080428
|
|
|
|
|
|
@@ -1082,4 +1092,105 @@ union lbc_inval_status {
|
|
} s;
|
|
} s;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * struct rst_boot: RST Boot Register
|
|
|
|
+ * @jtcsrdis: when set, internal CSR access via JTAG TAP controller
|
|
|
|
+ * is disabled
|
|
|
|
+ * @jt_tst_mode: JTAG test mode
|
|
|
|
+ * @io_supply: I/O power supply setting based on IO_VDD_SELECT pin:
|
|
|
|
+ * 0x1 = 1.8V
|
|
|
|
+ * 0x2 = 2.5V
|
|
|
|
+ * 0x4 = 3.3V
|
|
|
|
+ * All other values are reserved
|
|
|
|
+ * @pnr_mul: clock multiplier
|
|
|
|
+ * @lboot: last boot cause mask, resets only with PLL_DC_OK
|
|
|
|
+ * @rboot: determines whether core 0 remains in reset after
|
|
|
|
+ * chip cold or warm or soft reset
|
|
|
|
+ * @rboot_pin: read only access to REMOTE_BOOT pin
|
|
|
|
+ */
|
|
|
|
+union rst_boot {
|
|
|
|
+ u64 value;
|
|
|
|
+ struct {
|
|
|
|
+#if (defined(__BIG_ENDIAN_BITFIELD))
|
|
|
|
+ u64 raz_63 : 1;
|
|
|
|
+ u64 jtcsrdis : 1;
|
|
|
|
+ u64 raz_59_61 : 3;
|
|
|
|
+ u64 jt_tst_mode : 1;
|
|
|
|
+ u64 raz_40_57 : 18;
|
|
|
|
+ u64 io_supply : 3;
|
|
|
|
+ u64 raz_30_36 : 7;
|
|
|
|
+ u64 pnr_mul : 6;
|
|
|
|
+ u64 raz_12_23 : 12;
|
|
|
|
+ u64 lboot : 10;
|
|
|
|
+ u64 rboot : 1;
|
|
|
|
+ u64 rboot_pin : 1;
|
|
|
|
+#else
|
|
|
|
+ u64 rboot_pin : 1;
|
|
|
|
+ u64 rboot : 1;
|
|
|
|
+ u64 lboot : 10;
|
|
|
|
+ u64 raz_12_23 : 12;
|
|
|
|
+ u64 pnr_mul : 6;
|
|
|
|
+ u64 raz_30_36 : 7;
|
|
|
|
+ u64 io_supply : 3;
|
|
|
|
+ u64 raz_40_57 : 18;
|
|
|
|
+ u64 jt_tst_mode : 1;
|
|
|
|
+ u64 raz_59_61 : 3;
|
|
|
|
+ u64 jtcsrdis : 1;
|
|
|
|
+ u64 raz_63 : 1;
|
|
|
|
+#endif
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * struct fus_dat1: Fuse Data 1 Register
|
|
|
|
+ * @pll_mul: main clock PLL multiplier hardware limit
|
|
|
|
+ * @pll_half_dis: main clock PLL control
|
|
|
|
+ * @efus_lck: efuse lockdown
|
|
|
|
+ * @zip_info: ZIP information
|
|
|
|
+ * @bar2_sz_conf: when zero, BAR2 size conforms to
|
|
|
|
+ * PCIe specification
|
|
|
|
+ * @efus_ign: efuse ignore
|
|
|
|
+ * @nozip: ZIP disable
|
|
|
|
+ * @pll_alt_matrix: select alternate PLL matrix
|
|
|
|
+ * @pll_bwadj_denom: select CLKF denominator for
|
|
|
|
+ * BWADJ value
|
|
|
|
+ * @chip_id: chip ID
|
|
|
|
+ */
|
|
|
|
+union fus_dat1 {
|
|
|
|
+ u64 value;
|
|
|
|
+ struct {
|
|
|
|
+#if (defined(__BIG_ENDIAN_BITFIELD))
|
|
|
|
+ u64 raz_57_63 : 7;
|
|
|
|
+ u64 pll_mul : 3;
|
|
|
|
+ u64 pll_half_dis : 1;
|
|
|
|
+ u64 raz_43_52 : 10;
|
|
|
|
+ u64 efus_lck : 3;
|
|
|
|
+ u64 raz_26_39 : 14;
|
|
|
|
+ u64 zip_info : 5;
|
|
|
|
+ u64 bar2_sz_conf : 1;
|
|
|
|
+ u64 efus_ign : 1;
|
|
|
|
+ u64 nozip : 1;
|
|
|
|
+ u64 raz_11_17 : 7;
|
|
|
|
+ u64 pll_alt_matrix : 1;
|
|
|
|
+ u64 pll_bwadj_denom : 2;
|
|
|
|
+ u64 chip_id : 8;
|
|
|
|
+#else
|
|
|
|
+ u64 chip_id : 8;
|
|
|
|
+ u64 pll_bwadj_denom : 2;
|
|
|
|
+ u64 pll_alt_matrix : 1;
|
|
|
|
+ u64 raz_11_17 : 7;
|
|
|
|
+ u64 nozip : 1;
|
|
|
|
+ u64 efus_ign : 1;
|
|
|
|
+ u64 bar2_sz_conf : 1;
|
|
|
|
+ u64 zip_info : 5;
|
|
|
|
+ u64 raz_26_39 : 14;
|
|
|
|
+ u64 efus_lck : 3;
|
|
|
|
+ u64 raz_43_52 : 10;
|
|
|
|
+ u64 pll_half_dis : 1;
|
|
|
|
+ u64 pll_mul : 3;
|
|
|
|
+ u64 raz_57_63 : 7;
|
|
|
|
+#endif
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
#endif /* __NITROX_CSR_H */
|
|
#endif /* __NITROX_CSR_H */
|