Ignore:
Timestamp:
2021-06-22T19:36:32Z (3 years ago)
Author:
Maurizio Lombardi <mlombard@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b7b7af
Parents:
034ce6bb
git-author:
Maurizio Lombardi <mlombard@…> (2021-06-22 19:21:17)
git-committer:
Maurizio Lombardi <mlombard@…> (2021-06-22 19:36:32)
Message:

raspberrypi: mbox: read the framebuffer size from VideoCore

Get the real framebuffer size, do not assume
it's 640x480

Signed-off-by: Maurizio Lombardi <mlombard@…>

File:
1 edited

Legend:

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

    r034ce6bb r73abf49  
    174174{
    175175#ifdef CONFIG_FB
     176        uint32_t width, height;
    176177        fb_properties_t prop;
    177         if (bcm2835_fb_init(&prop)) {
     178
     179        if (!bcm2835_mbox_get_fb_size(&width, &height)) {
     180                printf("mbox: could not get the framebuffer size\n");
     181                width = 640;
     182                height = 480;
     183        }
     184        if (bcm2835_fb_init(&prop, width, height)) {
    178185                outdev_t *fb_dev = fb_init(&prop);
    179186                if (fb_dev)
Note: See TracChangeset for help on using the changeset viewer.