Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5c032932 in mainline


Ignore:
Timestamp:
2010-07-01T21:09:26Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
9e19672e
Parents:
f1fc83a
Message:

Set up kernel frame buffer.

File:
1 edited

Legend:

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

    rf1fc83a r5c032932  
    3838#include <arch/mm/page.h>
    3939#include <mm/page.h>
     40#include <genarch/fb/fb.h>
     41#include <genarch/fb/visuals.h>
    4042#include <genarch/drivers/s3c24xx_uart/s3c24xx_uart.h>
     43#include <ddi/ddi.h>
    4144
    4245#define GTA02_MEMORY_START      0x30000000      /* physical */
     
    4649/** GTA02 serial console UART address (UART S3C24XX CPU UART channel 2). */
    4750#define GTA02_SCONS_BASE        0x50008000
     51
     52/** GTA02 framebuffer base address */
     53#define GTA02_FB_BASE           0x08800000
    4854
    4955static void gta02_init(void);
     
    5763
    5864static void *gta02_scons_out;
     65static parea_t fb_parea;
    5966
    6067struct arm_machine_ops gta02_machine_ops = {
     
    103110static void gta02_output_init(void)
    104111{
     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
    105130        outdev_t *scons_dev;
    106131
Note: See TracChangeset for help on using the changeset viewer.