Changeset 34549


Ignore:
Timestamp:
2012-12-06T23:39:47+01:00 (5 years ago)
Author:
florian
Message:

[adm8668] get rid of the UART defines

Signed-off-by: Florian Fainelli <florian@…>

Location:
trunk/target/linux/adm8668/files/arch/mips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/early_printk.c

    r34547 r34549  
    11#include <linux/io.h> 
    2 #include <linux/serial_core.h> 
     2#include <linux/amba/serial.h> 
    33#include <adm8668.h> 
    44 
     
    1111void prom_putchar(char c) 
    1212{ 
    13         UART_WRITE(c, UART_DR_REG); 
    14         while ((UART_READ(UART_FR_REG) & UART_TX_FIFO_FULL) != 0) 
     13        UART_WRITE(c, UART01x_DR); 
     14        while ((UART_READ(UART01x_FR) & UART01x_FR_TXFF) != 0) 
    1515                ; 
    1616} 
  • trunk/target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/adm8668.h

    r25175 r34549  
    3232/** onboard uart **/ 
    3333#define ADM8668_UARTCLK_FREQ    62500000 
    34 /* registers */ 
    35 #define UART_DR_REG             0x00 
    36 #define UART_RSR_REG            0x04 
    37 #define UART_CR_REG             0x14 
    38 #define UART_FR_REG             0x18 
    39 #define UART_IIR_REG            0x1C 
    40  
    41 /* rsr reg */ 
    42 #define UART_FRAMING_ERR        0x01 
    43 #define UART_PARITY_ERR         0x02 
    44 #define UART_BREAK_ERR          0x04 
    45 #define UART_OVERRUN_ERR        0x08 
    46 #define UART_RX_STATUS_MASK     0x0F 
    47  
    48 /* cr reg */ 
    49 #define UART_RX_INT_EN          0x10 
    50 #define UART_TX_INT_EN          0x20 
    51 #define UART_RX_TIMEOUT_INT_EN  0x40 
    52  
    53 /* fr reg */ 
    54 #define UART_RX_FIFO_EMPTY      0x10 
    55 #define UART_TX_FIFO_FULL       0x20 
    56  
    57 /* iir reg */ 
    58 #define UART_RX_INT             0x02 
    59 #define UART_TX_INT             0x04 
    60 #define UART_RX_TIMEOUT_INT     0x08 
    6134 
    6235/* interrupt controller */ 
Note: See TracChangeset for help on using the changeset viewer.