Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
[platform]: Add code to enable display initialization only in fastboo…
Browse files Browse the repository at this point in the history
…t mode.

Add code for all targets to enable display only in fastboot mode.
Enable FB-debugging for qsd8k surf to see messages in fastboot mode.
  • Loading branch information
Chandan Uddaraju committed Dec 14, 2009
1 parent a0d26dd commit 2412050
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
2 changes: 2 additions & 0 deletions app/aboot/aboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ void aboot_init(const struct app_descriptor *app)
"to fastboot mode.\n");

fastboot:
display_init();
dprintf(INFO, "Diplay initialized\n");
udc_init(&surf_udc_device);

fastboot_register("boot", cmd_boot);
Expand Down
3 changes: 3 additions & 0 deletions platform/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ __WEAK void platform_init(void)
{
}

__WEAK void display_init(void)
{
}
3 changes: 3 additions & 0 deletions platform/msm7k/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ void platform_init(void)
dprintf(INFO, "platform_init()\n");

acpu_clock_init();
}

void display_init(void)
{
#if DISPLAY_TYPE_MDDI
mddi_clock_init(0, 122880000);
fb_config = mddi_init();
Expand Down
4 changes: 4 additions & 0 deletions platform/msm7x30/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ void platform_init(void)

dprintf(INFO, "platform_init()\n");
acpu_clock_init();
}

void display_init(void)
{
//fb_cfg = lcdc_init();
//fbcon_setup(fb_cfg);
}
16 changes: 9 additions & 7 deletions platform/qsd8k/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ void platform_early_init(void)

void platform_init(void)
{
struct fbcon_config *fb_cfg;

dprintf(INFO, "platform_init()\n");

acpu_clock_init();
dprintf(INFO, "platform_init()\n");
acpu_clock_init();
}

fb_cfg = lcdc_init();
fbcon_setup(fb_cfg);
void display_init(void)
{
struct fbcon_config *fb_cfg;
fb_cfg = lcdc_init();
fbcon_setup(fb_cfg);
}

2 changes: 1 addition & 1 deletion project/qsd8250_surf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ MODULES += app/aboot

#DEFINES += WITH_DEBUG_DCC=1
#DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
DEFINES += WITH_DEBUG_FBCON=1

0 comments on commit 2412050

Please sign in to comment.