1*995a3bb7SNava kishore ManneWhat:		/sys/bus/platform/drivers/zynqmp_fpga_manager/firmware:zynqmp-firmware:pcap/status
2*995a3bb7SNava kishore ManneDate:		February 2023
3*995a3bb7SNava kishore ManneKernelVersion:	6.4
4*995a3bb7SNava kishore ManneContact:	Nava kishore Manne <nava.kishore.manne@amd.com>
5*995a3bb7SNava kishore ManneDescription:	(RO) Read fpga status.
6*995a3bb7SNava kishore Manne		Read returns a hexadecimal value that tells the current status
7*995a3bb7SNava kishore Manne		of the FPGA device. Each bit position in the status value is
8*995a3bb7SNava kishore Manne		described Below(see ug570 chapter 9).
9*995a3bb7SNava kishore Manne		https://docs.xilinx.com/v/u/en-US/ug570-ultrascale-configuration
10*995a3bb7SNava kishore Manne
11*995a3bb7SNava kishore Manne		======================  ==============================================
12*995a3bb7SNava kishore Manne		BIT(0)			0: No CRC error
13*995a3bb7SNava kishore Manne					1: CRC error
14*995a3bb7SNava kishore Manne
15*995a3bb7SNava kishore Manne		BIT(1)			0: Decryptor security not set
16*995a3bb7SNava kishore Manne					1: Decryptor security set
17*995a3bb7SNava kishore Manne
18*995a3bb7SNava kishore Manne		BIT(2)			0: MMCMs/PLLs are not locked
19*995a3bb7SNava kishore Manne					1: MMCMs/PLLs are locked
20*995a3bb7SNava kishore Manne
21*995a3bb7SNava kishore Manne		BIT(3)			0: DCI not matched
22*995a3bb7SNava kishore Manne					1: DCI matched
23*995a3bb7SNava kishore Manne
24*995a3bb7SNava kishore Manne		BIT(4)			0: Start-up sequence has not finished
25*995a3bb7SNava kishore Manne					1: Start-up sequence has finished
26*995a3bb7SNava kishore Manne
27*995a3bb7SNava kishore Manne		BIT(5)			0: All I/Os are placed in High-Z state
28*995a3bb7SNava kishore Manne					1: All I/Os behave as configured
29*995a3bb7SNava kishore Manne
30*995a3bb7SNava kishore Manne		BIT(6)			0: Flip-flops and block RAM are write disabled
31*995a3bb7SNava kishore Manne					1: Flip-flops and block RAM are write enabled
32*995a3bb7SNava kishore Manne
33*995a3bb7SNava kishore Manne		BIT(7)			0: GHIGH_B_STATUS asserted
34*995a3bb7SNava kishore Manne					1: GHIGH_B_STATUS deasserted
35*995a3bb7SNava kishore Manne
36*995a3bb7SNava kishore Manne		BIT(8) to BIT(10)	Status of the mode pins
37*995a3bb7SNava kishore Manne
38*995a3bb7SNava kishore Manne		BIT(11)			0: Initialization has not finished
39*995a3bb7SNava kishore Manne					1: Initialization finished
40*995a3bb7SNava kishore Manne
41*995a3bb7SNava kishore Manne		BIT(12)			Value on INIT_B_PIN pin
42*995a3bb7SNava kishore Manne
43*995a3bb7SNava kishore Manne		BIT(13)			0: Signal not released
44*995a3bb7SNava kishore Manne					1: Signal released
45*995a3bb7SNava kishore Manne
46*995a3bb7SNava kishore Manne		BIT(14)			Value on DONE_PIN pin.
47*995a3bb7SNava kishore Manne
48*995a3bb7SNava kishore Manne		BIT(15)			0: No IDCODE_ERROR
49*995a3bb7SNava kishore Manne					1: IDCODE_ERROR
50*995a3bb7SNava kishore Manne
51*995a3bb7SNava kishore Manne		BIT(16)			0: No SECURITY_ERROR
52*995a3bb7SNava kishore Manne					1: SECURITY_ERROR
53*995a3bb7SNava kishore Manne
54*995a3bb7SNava kishore Manne		BIT(17)			System Monitor over-temperature if set
55*995a3bb7SNava kishore Manne
56*995a3bb7SNava kishore Manne		BIT(18) to BIT(20)	Start-up state machine (0 to 7)
57*995a3bb7SNava kishore Manne					Phase 0 = 000
58*995a3bb7SNava kishore Manne					Phase 1 = 001
59*995a3bb7SNava kishore Manne					Phase 2 = 011
60*995a3bb7SNava kishore Manne					Phase 3 = 010
61*995a3bb7SNava kishore Manne					Phase 4 = 110
62*995a3bb7SNava kishore Manne					Phase 5 = 111
63*995a3bb7SNava kishore Manne					Phase 6 = 101
64*995a3bb7SNava kishore Manne					Phase 7 = 100
65*995a3bb7SNava kishore Manne
66*995a3bb7SNava kishore Manne		BIT(25) to BIT(26)	Indicates the detected bus width
67*995a3bb7SNava kishore Manne					00 = x1
68*995a3bb7SNava kishore Manne					01 = x8
69*995a3bb7SNava kishore Manne					10 = x16
70*995a3bb7SNava kishore Manne					11 = x32
71*995a3bb7SNava kishore Manne		======================  ==============================================
72*995a3bb7SNava kishore Manne
73*995a3bb7SNava kishore Manne		The other bits are reserved.
74