Changeset 1590e23 in mainline for boot/arch/arm32/include/main.h


Ignore:
Timestamp:
2010-06-25T19:53:13Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7ef14b
Parents:
adf6607
Message:

Drive the gta02 UART properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/include/main.h

    radf6607 r1590e23  
    11/*
    22 * Copyright (c) 2007 Michal Kebrt
     3 * Copyright (c) 2010 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    3940/** Address where characters to be printed are expected. */
    4041
    41 #ifdef MACHINE_gta02
    42         /* FIXME: Need real S3C244x UART driver. */
    43         #define VIDEORAM_ADDRESS  0x50008020
    44 #endif
     42/** GTA02 serial console UART register addresses.
     43 *
     44 * This is UART channel 2 of the S3C244x CPU
     45 */
     46#define GTA02_SCONS_UTRSTAT     0x50008010
     47#define GTA02_SCONS_UTXH        0x50008020
    4548
    46 #ifdef MACHINE_testarm
    47         #define VIDEORAM_ADDRESS  0x10000000
    48 #endif
     49/* Bits in UTXH register */
     50#define S3C244X_UTXH_TX_EMPTY   0x00000004
    4951
    50 #ifdef MACHINE_integratorcp
    51         #define VIDEORAM_ADDRESS  0x16000000
    52 #endif
     52
     53/** GXemul testarm serial console output register */
     54#define TESTARM_SCONS_ADDR      0x10000000
     55
     56/** IntegratorCP serial console output register */
     57#define ICP_SCONS_ADDR          0x16000000
    5358
    5459extern void bootstrap(void);
Note: See TracChangeset for help on using the changeset viewer.