s3c6410_drivers_simples
所属分类:嵌入式Linux
开发工具:Unix_Linux
文件大小:5KB
下载次数:21
上传日期:2011-09-23 17:58:44
上 传 者:
yoda221
说明: s3c6410简单GPIO、LED、PWR驱动示例及使用说明。
(s3c6410 simple GPIO, LED, PWR-driven examples and instructions.)
文件列表:
drivers\s3c6410_buttons.c (3925, 2011-01-17)
drivers\s3c6410_leds.c (3866, 2011-01-17)
drivers\s3c6410_pwm.c (3193, 2011-01-17)
drivers (0, 2011-01-17)
你要在/drivers/char/Kconfig中添加如下内容
config S3C***10_LEDS
tristate "LED Support for S3C***10 GPIO LEDs"
depends on CPU_S3C***10
default y
help
This option enables support for LEDs connected to GPIO lines
on S3C***10 boards.
config S3C***10_BUTTONS
tristate "Buttons driver for S3C***10 development boards"
depends on CPU_S3C***10
default y
help
this is buttons driver for S3C***10 development boards
config S3C***10_PWR
tristate "PWR Support for S3C***10 GPIO Pin"
depends on CPU_S3C***10
default y
help
This option enables support for PWR Pin connected to GPIO lines
on S3C***10 boards.
在/drivers/char/Makefile中添加如下内容
obj-$(CONFIG_S3C***10_LEDS) += s3c***10_leds.o
#obj-$(CONFIG_S3C***10_LEDS_MODULE) += s3c***10_leds.o
obj-$(CONFIG_S3C***10_BUTTONS) += s3c***10_buttons.o
#obj-$(CONFIG_S3C***10_BUTTONS_MODULE) += s3c***10_buttons.o
obj-$(CONFIG_S3C***10_PWR) += s3c***10_pwr.o
#obj-$(CONFIG_S3C***10_PWR_MODULE) += s3c***10_pwr.o
在/.config中添加如下内容
CONFIG_S3C***10_LEDS=y
CONFIG_S3C***10_BUTTONS=y
CONFIG_S3C***10_PWR=y
就可以将驱动加到内核中
--
近期下载者:
相关文件:
收藏者: