Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Problem adding driver to kernel

$
0
0

For our design we need additional Irda uarts. Therefor we added a SC16is752 to I2c.

For adding the driver I added in the drivers/serial.kconfig

config SERIAL_SC16IS752
       tristate "SC16IS752 chips"
       depends on I2C && GPIOLIB
       select SERIAL_CORE
       help
         gpio driver for SC16IS752 I2C UARTs.

in drivers/serial/makefile

obj-$(CONFIG_SERIAL_SC16IS752) += sx16is752.o

in drivers/serial/serial_core.h

#define PORT_SC16IS7X2	20	/* SC16IS7x2 SPI UART */
#define PORT_MAX_8250 20 /* max port ID */

and the SC16is752.c file in the drivers/serial folder.

Then in the config of the evm am3517_evm_defconfig added 'CONFIG_SERIAL_SC16IS752=y'

If I now build the kernel I get following message:

  CC      drivers/serial/8250.o
  CC      drivers/serial/8250_early.o
make[3]: *** No rule to make target `drivers/serial/sx16is752.o', needed by `drivers/serial/built-in.o'.  Stop.
make[2]: *** [drivers/serial] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk'
make: *** [linux] Error 2

Question now is are there more configurations to be updated to add this driver?

Regards
Marcel Stumpel






Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>