Ignore:
Timestamp:
2010-06-28T21:58:31Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c032932
Parents:
6250c37
Message:

Add s3c24xx_uart driver to kernel for serial console output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mach/gta02/gta02.c

    r6250c37 rf1fc83a  
    3737#include <arch/mach/gta02/gta02.h>
    3838#include <arch/mm/page.h>
     39#include <mm/page.h>
     40#include <genarch/drivers/s3c24xx_uart/s3c24xx_uart.h>
    3941
    4042#define GTA02_MEMORY_START      0x30000000      /* physical */
    4143#define GTA02_MEMORY_SIZE       0x08000000      /* 128 MB */
    42 #define GTA02_MEMORY_SKIP       0x8000          /* 2 pages */
     44#define GTA02_MEMORY_SKIP       0x8000
     45
     46/** GTA02 serial console UART address (UART S3C24XX CPU UART channel 2). */
     47#define GTA02_SCONS_BASE        0x50008000
    4348
    4449static void gta02_init(void);
     
    5055static void gta02_output_init(void);
    5156static void gta02_input_init(void);
     57
     58static void *gta02_scons_out;
    5259
    5360struct arm_machine_ops gta02_machine_ops = {
     
    6471static void gta02_init(void)
    6572{
     73        gta02_scons_out = (void *) hw_map(GTA02_SCONS_BASE, PAGE_SIZE);
    6674}
    6775
     
    95103static void gta02_output_init(void)
    96104{
     105        outdev_t *scons_dev;
     106
     107        scons_dev = s3c24xx_uart_init((ioport8_t *) gta02_scons_out);
     108        if (scons_dev)
     109                stdout_wire(scons_dev);
    97110}
    98111
Note: See TracChangeset for help on using the changeset viewer.