arm: bootm: use flushc() to flush console data before linux
Remove GD_FLG_OS_RUN definition. Change-Id: Ib78d4adf58dfea5e40ec79fcb9603020651c6daa Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
7c86130655
commit
91cbfde1a2
|
|
@ -97,20 +97,11 @@ static void announce_and_cleanup(int fake)
|
|||
udc_disconnect();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
/* Enable this flag, call putc to flush console(ns16550_serial_putc)*/
|
||||
gd->flags |= GD_FLG_OS_RUN;
|
||||
/*
|
||||
* This putc is only for calling ns16550_serial_putc() to flush console.
|
||||
* Console uclass framework is quite complicated, it's not easy to
|
||||
* flush console by privoding a new interface which must provide a
|
||||
* udevice here, so we use an easy way to achieve that.
|
||||
*/
|
||||
putc('\n');
|
||||
#endif
|
||||
|
||||
board_quiesce_devices();
|
||||
|
||||
/* Flush all console data */
|
||||
flushc();
|
||||
|
||||
/*
|
||||
* Call remove function of all devices with a removal flag set.
|
||||
* This may be useful for last-stage operations, like cancelling
|
||||
|
|
|
|||
|
|
@ -171,8 +171,6 @@ typedef struct global_data {
|
|||
#define GD_FLG_LOG_READY 0x08000 /* Log system is ready for use */
|
||||
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
/* Currently, we use it to indicate console can be flushed before jump to OS */
|
||||
#define GD_FLG_OS_RUN 0x10000
|
||||
/* BL32 is enabled */
|
||||
#define GD_FLG_BL32_ENABLED 0x20000
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue