Skip to content

Commit

Permalink
修改fastboot重启后文字显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liwei committed Nov 22, 2012
1 parent cbce2fc commit 21cb37e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion board/samsung/smdkc110/smdkc110.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void if_start_fastboot()

if (!(val & 0x08))
{
strcpy((char *)CFG_FASTBOOT_KEY_BOOT_BUFFER, (char *)FASTBOOT_KEY_BOOT_MAGIC);
strcpy((char *)CFG_FASTBOOT_TRANSFER_BUFFER, (char *)FASTBOOT_REBOOT_MAGIC);
}
}

Expand Down
1 change: 0 additions & 1 deletion common/cmd_fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ static int rx_handler (const unsigned char *buffer, unsigned int buffer_size)
if (!strcmp(cmdbuf + 6, "-bootloader"))
{
strcpy((char *)interface.transfer_buffer, (char *)FASTBOOT_REBOOT_MAGIC);
strcpy((char *)CFG_FASTBOOT_KEY_BOOT_BUFFER, (char *)FASTBOOT_KEY_BOOT_MAGIC);
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions cpu/s5pc11x/fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -2553,8 +2553,8 @@ int fastboot_preboot(void)
/* It seems that we require a little time before reading keypad */
printf("checking mode for fastboot ...\n");

if (memcmp((const char *)CFG_FASTBOOT_KEY_BOOT_BUFFER,
FASTBOOT_KEY_BOOT_MAGIC, FASTBOOT_KEY_BOOT_MAGIC_SIZE) == 0)
if (memcmp((const char *)CFG_FASTBOOT_TRANSFER_BUFFER,
FASTBOOT_REBOOT_MAGIC, FASTBOOT_REBOOT_MAGIC_SIZE) == 0)
{
return 1;
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/video/cfb_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,8 @@ static int video_init (void)
#endif

memset((void*)CFG_LCD_FBUFFER_BK,0,VIDEO_SIZE);
if(memcmp((const char *)CFG_FASTBOOT_KEY_BOOT_BUFFER,
FASTBOOT_KEY_BOOT_MAGIC, FASTBOOT_KEY_BOOT_MAGIC_SIZE) == 0)
if(memcmp((const char *)CFG_FASTBOOT_TRANSFER_BUFFER,
FASTBOOT_REBOOT_MAGIC, FASTBOOT_REBOOT_MAGIC_SIZE) == 0)
{
udelay(750000);
}
Expand Down
1 change: 0 additions & 1 deletion include/configs/smdkv210single.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@

/* Fastboot variables */
#define CFG_FASTBOOT_TRANSFER_BUFFER (0x30000000)
#define CFG_FASTBOOT_KEY_BOOT_BUFFER (0x30000010)
#define CFG_FASTBOOT_TRANSFER_BUFFER_SIZE (0x8000000) /* 128MB */
#define CFG_FASTBOOT_ADDR_KERNEL (0xC0008000)
#define CFG_FASTBOOT_ADDR_RAMDISK (0x30A00000)
Expand Down
4 changes: 0 additions & 4 deletions include/fastboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ struct fastboot_ptentry
#define FASTBOOT_BOOT_NAME_SIZE 16
#define FASTBOOT_BOOT_ARGS_SIZE 512

/* Enable fastboot for pressing a key */
#define FASTBOOT_KEY_BOOT_MAGIC "KEYBOOT"
#define FASTBOOT_KEY_BOOT_MAGIC_SIZE 7

/* Input of fastboot_tx_status */
#define FASTBOOT_TX_ASYNC 0
#define FASTBOOT_TX_SYNC 1
Expand Down

0 comments on commit 21cb37e

Please sign in to comment.