Changeset f1fc83a in mainline
- Timestamp:
- 2010-06-28T21:58:31Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c032932
- Parents:
- 6250c37
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r6250c37 rf1fc83a 387 387 % Output device class 388 388 @ "generic" Monitor or serial line 389 ! [PLATFORM=arm32& MACHINE=integratorcp] CONFIG_HID_OUT (choice)389 ! [PLATFORM=arm32&(MACHINE=gta02|MACHINE=integratorcp)] CONFIG_HID_OUT (choice) 390 390 391 391 % Output device class … … 434 434 % Support for NS16550 controller 435 435 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=serial)&PLATFORM=ia64&MACHINE=i460GX] CONFIG_NS16550 (y/n) 436 437 % Support for Samsung S3C24XX on-chip UART 438 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&MACHINE=gta02] CONFIG_S3C24XX_UART (y/n) 436 439 437 440 % Support for Z8530 controller -
boot/arch/arm32/include/main.h
r6250c37 rf1fc83a 42 42 /** GTA02 serial console UART register addresses. 43 43 * 44 * This is UART channel 2 of the S3C24 4x CPU44 * This is UART channel 2 of the S3C24xx CPU 45 45 */ 46 46 #define GTA02_SCONS_UTRSTAT 0x50008010 … … 48 48 49 49 /* Bits in UTXH register */ 50 #define S3C24 4X_UTXH_TX_EMPTY 0x0000000450 #define S3C24XX_UTXH_TX_EMPTY 0x00000004 51 51 52 52 -
boot/arch/arm32/src/putchar.c
r6250c37 rf1fc83a 56 56 57 57 /* Wait until transmitter is empty. */ 58 while ((*utrstat & S3C24 4X_UTXH_TX_EMPTY) == 0)58 while ((*utrstat & S3C24XX_UTXH_TX_EMPTY) == 0) 59 59 ; 60 60 -
defaults/arm32/gta02/Makefile.config
r6250c37 rf1fc83a 8 8 CONFIG_UDEBUG = n 9 9 10 # Kernel console support11 CONFIG_KCONSOLE = n12 13 # Kernel symbol information14 CONFIG_SYMTAB = n15 16 10 # Compile kernel tests 17 11 CONFIG_TEST = n -
kernel/arch/arm32/src/mach/gta02/gta02.c
r6250c37 rf1fc83a 37 37 #include <arch/mach/gta02/gta02.h> 38 38 #include <arch/mm/page.h> 39 #include <mm/page.h> 40 #include <genarch/drivers/s3c24xx_uart/s3c24xx_uart.h> 39 41 40 42 #define GTA02_MEMORY_START 0x30000000 /* physical */ 41 43 #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 43 48 44 49 static void gta02_init(void); … … 50 55 static void gta02_output_init(void); 51 56 static void gta02_input_init(void); 57 58 static void *gta02_scons_out; 52 59 53 60 struct arm_machine_ops gta02_machine_ops = { … … 64 71 static void gta02_init(void) 65 72 { 73 gta02_scons_out = (void *) hw_map(GTA02_SCONS_BASE, PAGE_SIZE); 66 74 } 67 75 … … 95 103 static void gta02_output_init(void) 96 104 { 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); 97 110 } 98 111 -
kernel/arch/arm32/src/mm/page.c
r6250c37 rf1fc83a 68 68 #error "Only high exception vector supported now" 69 69 #endif 70 cur = ALIGN_DOWN(0x50008010, FRAME_SIZE); 71 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 70 72 71 73 page_table_unlock(AS_KERNEL, true); -
kernel/genarch/Makefile.inc
r6250c37 rf1fc83a 90 90 endif 91 91 92 ifeq ($(CONFIG_S3C24XX_UART),y) 93 GENARCH_SOURCES += \ 94 genarch/src/drivers/s3c24xx_uart/s3c24xx_uart.c 95 endif 96 92 97 ifeq ($(CONFIG_Z8530),y) 93 98 GENARCH_SOURCES += \
Note:
See TracChangeset
for help on using the changeset viewer.