Data-modul/dmec: Dmo Embedded Controller Linux Driver - GitHub
Có thể bạn quan tâm
DMEC is a linux driver for the embedded controllers found on the DMO CPU modules.
About DMEC DriverThe dmec driver has support for the following DMO embedded controller(EC) features:
- I2C
- GPIO
- Watchdog
- 2 x UART
- RTM (Real Time Monitor)
- ACPI-HWMON
- PWM (Pulse Width Modulation)
The features have to be enabled in BIOS. The I2C, UARTs and GPIO need an irq number assigned in order to function properly. As an example:
- I2C: IRQ 5
- GPIO: IRQ 7
- UART1: IRQ 10
- UART2: IRQ 15
For PWM0 and PWM1, GPIO4(COMe GPO0) and GPIO5(COMe GPO1) should be set respectively.
The UARTs are supported by the standard linux serial driver 8250/16550.
I2C features
The missing i2c driver feature is:
- 10-bit addresses
GPIO features
The GPIO driver provides digital inputs and outputs. The inputs can be configured to generate an interrupt on different events. This can be done either using sysfs or the new gpio api character device. For more information check [[1]][[2]].
Watchdog features
The watchdog can operate in two modes standard and window. The driver should be loaded with the win_mode parameter set to one when window mode is used. When the watchdog driver is loaded and the watchdog is active, the watchdog is being automatically pinged. Please note that this does not work with kernel versions below 4.6. The driver does not use the locking feature of the watchdog.
NOTE: some features may not be supported. It depends on the board EC.
Driver compilation
Prerequisites
- GNU/GCC compiler and related tools such as make are needed to compile the DMEC driver. For this purpose, it is required to install the following package.
The installation can be verified by the following syntax:
$ gcc -v $ make -v- The linux kernel headers have to be installed in order to build the kernel module. Most of the distribution provide packages for the kernel headers.
- The kernel build directory can also be set using the environment variable KERNEL_SRC
Check out
The source of DMEC driver contains three branches for DMEC driver:
- backport-for-v4.4 => DMEC driver for kernel 4.4
- backport-for-v4.6 => DMEC driver for kernel 4.6
- rya/backport-v4.14 => DMEC driver for kernel 4.14
- kernel_4.15 => DMEC driver for kernel 4.15
- master => DMEC driver for kernel 5.1x and above
Compilation
All steps below have to be executed in the directory where the driver source code was downloaded or checked out.
$ make $ make install $ depmod -aLoading
The driver should be auto-loaded on next boot. In case the I2C device nodes are missing, i2c-dev and i2c-mux are also should be loaded.
$ modprobe i2c-dev $ modprove i2c-muxTo check whether the modules are loaded or not, use the below command:
$ lsmod |grep dmecThe output would be list of all dmec drivers: dmec, gpio_dmec, i2c_dmec, wdt_dmec, rtm_dmec, acpi_dmec, pwm_dmec
Từ khóa » Cổng Dmec
-
Trang Thiết Bị Y Tế: Trang Chủ
-
Cổng Công Khai Y Tế
-
Vụ Trang Thiết Bị Và Công Trình Y Tế
-
Công Khai Kết Quả Thầu
-
Công Bố đủ điều Kiện Tư Vấn Về Kỹ Thuật Trang Thiết Bị Y Tế - Dichvucong
-
Organizational Members - Absence Management | DMEC
-
DMEC Welcomes Danish Delegation At Marine Energy Hub
-
Marine Contracts - Mumbai Port Trust
-
[PDF] Workforce Retention, Absence And Disability Management
-
Công Bố đủ điều Kiện Mua Bán Trang Thiết Bị Y Tế Loại B, C, D
-
Trang Chủ - Trang Thiết Bị Y Tế
-
| CỔNG THÔNG TIN DỊCH VỤ CÔNG TRỰC TUYẾN TỈNH HÀ TĨNH
-
Kymberly Clay, CPDM CLMS - HR Consultant & Trainer - LinkedIn