Changeset 5c032932 in mainline
- Timestamp:
- 2010-07-01T21:09:26Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e19672e
- Parents:
- f1fc83a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/gta02/gta02.c
rf1fc83a r5c032932 38 38 #include <arch/mm/page.h> 39 39 #include <mm/page.h> 40 #include <genarch/fb/fb.h> 41 #include <genarch/fb/visuals.h> 40 42 #include <genarch/drivers/s3c24xx_uart/s3c24xx_uart.h> 43 #include <ddi/ddi.h> 41 44 42 45 #define GTA02_MEMORY_START 0x30000000 /* physical */ … … 46 49 /** GTA02 serial console UART address (UART S3C24XX CPU UART channel 2). */ 47 50 #define GTA02_SCONS_BASE 0x50008000 51 52 /** GTA02 framebuffer base address */ 53 #define GTA02_FB_BASE 0x08800000 48 54 49 55 static void gta02_init(void); … … 57 63 58 64 static void *gta02_scons_out; 65 static parea_t fb_parea; 59 66 60 67 struct arm_machine_ops gta02_machine_ops = { … … 103 110 static void gta02_output_init(void) 104 111 { 112 #ifdef CONFIG_FB 113 fb_properties_t prop = { 114 .addr = GTA02_FB_BASE, 115 .offset = 0, 116 .x = 480, 117 .y = 640, 118 .scan = 960, 119 .visual = VISUAL_RGB_5_6_5_LE 120 }; 121 122 outdev_t *fb_dev = fb_init(&prop); 123 if (fb_dev) { 124 stdout_wire(fb_dev); 125 fb_parea.pbase = GTA02_FB_BASE; 126 fb_parea.frames = 150; 127 ddi_parea_register(&fb_parea); 128 } 129 #endif 105 130 outdev_t *scons_dev; 106 131
Note:
See TracChangeset
for help on using the changeset viewer.