Realization method of I2C bus for multi-hardware platform FT server
An implementation method and technology of a hardware platform, applied in the direction of instruments, electrical digital data processing, etc., can solve the problems that the I2C bus cannot be universal, reduce the user experience of the Feiteng server, and the GPIO driver is not the same. Experience, the effect of low implementation costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Such as figure 1 As shown, the implementation steps of the implementation method for the I2C bus of the multi-hardware platform Feiteng server in this embodiment are as follows:
[0029] 1) Among the on-chip GPIO ports of the PCIe switching unit on the Feiteng server, the two idle GPIO ports are respectively connected with external pull-up resistors and used as the data line interface and clock line interface of the I2C bus interface;
[0030] 2) Map the PCI memory space of the PCIe switching unit to the CPU virtual address space when initializing the hardware;
[0031] 3) Obtain the type information of the PCIe switching unit, and obtain the mapping port addresses of the aforementioned two GPIO ports in the CPU virtual address space according to the type information of the PCIe switching unit;
[0032] 4) Establish and register the GPIO driver module for operating the aforementioned two GPIO ports corresponding to the mapped port address in the operating system;
[0...
Embodiment 2
[0047] Such as image 3 As shown, this embodiment is basically the same as Embodiment 1. The difference is that the PCIe switching unit of the Phytium server is implemented using the PEX8648 chip. By applying the I2C bus implementation method of this embodiment to the Phytium installed with the Galaxy Kylin Phytium version of the operating system On the server, the I2C bus interface simulated by the two GPIO ports is connected with a shutdown controller used to control the shutdown of the Phytium server. It has been verified that the I2C bus interface simulated by the two GPIO ports can output the correct shutdown control pulse timing, and the Phytium server has been successfully implemented. power off.
Embodiment 3
[0049] Such as Figure 4 As shown, this embodiment is basically the same as Embodiment 1. The difference is that the PCIe switching unit of the Phytium server is implemented using the PEX8632 chip. By applying the I2C bus implementation method of this embodiment to the Phytium installed with the Galaxy Kylin Phytium version of the operating system On the server, the I2C bus interface simulated by the two GPIO ports is connected with a shutdown controller used to control the shutdown of the Phytium server. It has been verified that the I2C bus interface simulated by the two GPIO ports can output the correct shutdown control pulse timing, and the Phytium server has been successfully implemented. power off.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 