Skip to content

TommHeaven/gpio-dw-linux-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPIO-dw-linux-adapter

Under the cross-kernel driver framework, the Linux driver adaptation layer implemented for designware apb GPIO

Clone repo

In your linux directory, clone this project

cd `path to your kernel`/drivers/gpio
git clone git@github.com:happy-thw/gpio-dw-linux-adapter.git

Linux support Cargo

The cross-kernel driver framework follows a componentized design and uses cargo to resolve component dependencies, so it is necessary to add R4L support for cargo construction. reference link: https://github.com/guoweikang/osl

Add Makefile for adapter dir

Add this line into linux/drivers/gpio/Makefile

obj-$(CONFIG_GPIO_DWAPB_RUST)	+= gpio-dw-linux-adapter/

you can also replace CONFIG_RUST with your own defin, like this from original GPIO_DWAPB Kconfig

config GPIO_DWAPB_RUST
	tristate "Synopsys DesignWare APB GPIO driver in RUST"
	depends on RUST && !GPIO_DWAPB
	select GPIO_GENERIC
	select GPIOLIB_IRQCHIP
	help
	  Say Y or M here to build support for the Synopsys DesignWare APB
	  GPIO block.   

note: if you want to use RUST driver,remeber disable C driver

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published