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.omake[3]: *** No rule to make target `drivers/serial/sx16is752.o', needed by `drivers/serial/built-in.o'. Stop.make[2]: *** [drivers/serial] Error 2make[1]: *** [drivers] Error 2make[1]: Leaving directory `/usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk'make: *** [linux] Error 2Question now is are there more configurations to be updated to add this driver?RegardsMarcel Stumpel
Hi Marcel,
Marcel Stumpel .... obj-$(CONFIG_SERIAL_SC16IS752) += sx16is752.o .... 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.omake[3]: *** No rule to make target `drivers/serial/sx16is752.o', needed by `drivers/serial/built-in.o'. Stop.make[2]: *** [drivers/serial] Error 2make[1]: *** [drivers] Error 2make[1]: Leaving directory `/usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk'make: *** [linux] Error 2
....
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.omake[3]: *** No rule to make target `drivers/serial/sx16is752.o', needed by `drivers/serial/built-in.o'. Stop.make[2]: *** [drivers/serial] Error 2make[1]: *** [drivers] Error 2make[1]: Leaving directory `/usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk'make: *** [linux] Error 2
Your file name should be match with object name, use either SC16is752.c & SC16is752.o or sx16is752.c & sx16is752.o
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Hi,
I am using the chip SC16IS752 with my OMAP-L138 Processor. Please share the 'SC16IS752' driver source code and explain how to integrate this driver with main
kernel. Please let us know the brief steps.
Thanks.,
Francis