source: trunk/target/linux/ar71xx/patches-2.6.37/500-ar933x-uart-driver.patch @ 27065

Last change on this file since 27065 was 27065, checked in by juhosg, 6 years ago

ar71xx: add serial driver for the AR933X UART

File size: 1.6 KB
  • drivers/serial/Kconfig

    commit 24920fbc58c0183013db148f8be6fbc12d3bba9a
    Author: Gabor Juhos <juhosg@openwrt.org>
    Date:   Sun Mar 27 12:04:36 2011 +0200
    
        serial: add driver for the built-in UART of the AR933X SoC
        
        Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
    
    a b config SERIAL_ALTERA_UART_CONSOLE 
    16321632        help 
    16331633          Enable a Altera UART port to be the system console. 
    16341634 
     1635config SERIAL_AR933X 
     1636        bool "AR933X serial port support" 
     1637        depends on SOC_AR933X 
     1638        select SERIAL_CORE 
     1639        help 
     1640          If you have an Atheros AR933X SOC based board and want to use the 
     1641          built-in UART of the SoC, say Y to this option. 
     1642 
     1643config SERIAL_AR933X_CONSOLE 
     1644        bool "Console on AR933X serial port" 
     1645        depends on SERIAL_AR933X=y 
     1646        select SERIAL_CORE_CONSOLE 
     1647        help 
     1648          Enable a built-in UART port of the AR933X to be the system console. 
     1649 
     1650config SERIAL_AR933X_NR_UARTS 
     1651        int "Maximum number of AR933X serial ports" 
     1652        depends on SERIAL_AR933X 
     1653        default "2" 
     1654        help 
     1655          Set this to the number of serial ports you want the driver 
     1656          to support. 
     1657 
    16351658endmenu 
  • drivers/serial/Makefile

    a b obj-$(CONFIG_SERIAL_ALTERA_UART) += alte 
    8989obj-$(CONFIG_SERIAL_MRST_MAX3110)       += mrst_max3110.o 
    9090obj-$(CONFIG_SERIAL_MFD_HSU)    += mfd.o 
    9191obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o 
     92obj-$(CONFIG_SERIAL_AR933X)     += ar933x_uart.o 
     93 
  • include/linux/serial_core.h

    a b  
    199199/* TI OMAP-UART */ 
    200200#define PORT_OMAP       96 
    201201 
     202/* Atheros AR933X SoC */ 
     203#define PORT_AR933X     98 
     204 
    202205#ifdef __KERNEL__ 
    203206 
    204207#include <linux/compiler.h> 
Note: See TracBrowser for help on using the repository browser.