Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

UART driver for other embedded Linux platform

In our project we have the embedded system running Linux on other (than Nios) platform. The FPGA is accessed as memory-mapped region. We need the driver for the Nios UART, but it is absent in official Linux kernel tree. Does this driver exist in universe? If not, is it difficult task to port Altera-provided UART driver to Linux?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It is not difficult to port the NIOS uart to another cpu running Linux. You will need the files in nios2 kernel, drivers/serial/NIOSserial.c and NIOSserial.h . And add your def for some io related headers, for port address and uart regs map.