A method and system for driving an i2c controller

A driving method and driving system technology, applied in the direction of instruments, electrical digital data processing, etc., can solve problems such as useless codes and inconvenient maintenance, and achieve the effect of being beneficial to writing and debugging, secondary development, and long-term maintenance.

Active Publication Date: 2021-12-28
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide an I2C controller driving method and system, aiming to solve the problem that the current I2C controller driver sets the hardware description of peripherals in the board-level file, and there are too many useless codes that are inconvenient to maintain, so as to realize the elimination of useless codes. Redundant coding, which is conducive to driving long-term maintenance and secondary development

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for driving an i2c controller
  • A method and system for driving an i2c controller
  • A method and system for driving an i2c controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and / or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. It should be noted that components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted herein to avoid unnecessarily lim...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an I2C controller driving method and system. The method includes: instantiation of the I2C controller structure; realization of a method for sending and receiving data by the I2C bus; and description of a device tree. Through the instantiation of i2c_adapter, the implementation of i2c_algorithm method and the description of the device tree, the I2C controller driver that meets the requirements of the latest Linux kernel is realized, and the hardware resource is described by using the device tree technology to replace the old kernel and using the form of board-level files , remove the hardware information from the hard code, reduce the existence of useless codes, and facilitate the long-term maintenance and secondary development of the driver; because this driver is compatible with the hardware features of I2C controllers on different A3x platforms, a single driver file supports multiple The function of the I2C controller; because the driver strictly abides by the device model, it provides the sys and proc interfaces, and provides enough underlying hardware information for the upper-layer software, which is conducive to the writing and debugging of the upper-layer software.

Description

technical field [0001] The invention relates to the technical field of server driving, in particular to an I2C controller driving method and system. Background technique [0002] The I2C bus is a simple, two-way two-wire synchronous serial bus developed by Philips. It requires only two wires to transfer information between devices connected to the bus. The master device is used to start the bus to transmit data and generate the clock to open the transmitting device. At this time, any addressed device is considered as a slave device. The relationship between master and slave, send and receive on the bus is not constant, but depends on the direction of data transmission at this time. If the host wants to send data to the slave device, the host first addresses the slave device, then actively sends data to the slave device, and finally the host terminates the data transfer; if the host wants to receive data from the slave device, the master device first addresses the slave dev...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/40G06F13/42
CPCG06F13/4072G06F13/4282
Inventor 王鹏
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products