Changeset 19000


Ignore:
Timestamp:
2010-01-02T16:07:34+01:00 (8 years ago)
Author:
juhosg
Message:

adm5120: move early-printk support into a separate file

Location:
trunk/target/linux/adm5120/files/arch/mips/adm5120/common
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/common/Makefile

    r15245 r19000  
    55obj-y   := adm5120.o setup.o prom.o irq.o memory.o clock.o \ 
    66           gpio.o platform.o 
     7 
     8obj-$(CONFIG_EARLY_PRINTK)      += early-printk.o 
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/common/prom.c

    r17564 r19000  
    1414#include <linux/string.h> 
    1515#include <linux/mm.h> 
    16 #include <linux/io.h> 
    17  
    18 #include <asm/addrspace.h> 
     16 
    1917#include <asm/bootinfo.h> 
    2018#include <asm/mips_machine.h> 
    2119 
    2220#include <asm/mach-adm5120/adm5120_info.h> 
    23 #include <asm/mach-adm5120/adm5120_defs.h> 
    24 #include <asm/mach-adm5120/adm5120_uart.h> 
    2521 
    2622#include <prom/cfe.h> 
     
    255251#endif /* CONFIG_IMAGE_CMDLINE_HACK */ 
    256252 
    257 #define UART_READ(r) \ 
    258         __raw_readl((void __iomem *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))) 
    259 #define UART_WRITE(r, v) \ 
    260         __raw_writel((v), (void __iomem *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))) 
    261  
    262 void __init prom_putchar(char ch) 
    263 { 
    264         while ((UART_READ(UART_REG_FLAG) & UART_FLAG_TXFE) == 0); 
    265         UART_WRITE(UART_REG_DATA, ch); 
    266         while ((UART_READ(UART_REG_FLAG) & UART_FLAG_TXFE) == 0); 
    267 } 
    268  
    269253void __init prom_init(void) 
    270254{ 
Note: See TracChangeset for help on using the changeset viewer.