diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-03-10 15:05:10 +0800 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-04-29 15:00:32 +0800 |
commit | eefcd91b30a0ee7ae2f0f3d03d4f4e667374443b (patch) | |
tree | d79e3b140ff257a3da4a39e028e32e7d46c65f52 /common/board_r.c | |
parent | b7f153c8b55c4ccccf792de9dd63ece243c72435 (diff) | |
download | u-boot-imx-eefcd91b30a0ee7ae2f0f3d03d4f4e667374443b.zip u-boot-imx-eefcd91b30a0ee7ae2f0f3d03d4f4e667374443b.tar.gz u-boot-imx-eefcd91b30a0ee7ae2f0f3d03d4f4e667374443b.tar.bz2 |
MLK-10774-33 imx:mx6 add udc and fastboot support
Add udc and fastboot support
We did not use the upstream way.
Currently use CI_UDC and USB_GAGDET of upstream can make fastboot work,
but lack of flash operation, so we still use our way.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index 0335f6b..ceccb80 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -58,6 +58,9 @@ #ifdef CONFIG_AVR32 #include <asm/arch/mmu.h> #endif +#ifdef CONFIG_FASTBOOT +#include <fastboot.h> +#endif DECLARE_GLOBAL_DATA_PTR; @@ -673,6 +676,20 @@ static int initr_kbd(void) } #endif +#ifdef CONFIG_FASTBOOT +static int initr_fastboot_setup(void) +{ + fastboot_setup(); + return 0; +} + +static int initr_check_fastboot(void) +{ + check_fastboot(); + return 0; +} +#endif + static int run_main_loop(void) { #ifdef CONFIG_SANDBOX @@ -848,6 +865,9 @@ init_fnc_t init_sequence_r[] = { #ifdef CONFIG_BOARD_LATE_INIT board_late_init, #endif +#ifdef CONFIG_FASTBOOT + initr_fastboot_setup, +#endif #ifdef CONFIG_CMD_SCSI INIT_FUNC_WATCHDOG_RESET initr_scsi, @@ -891,6 +911,9 @@ init_fnc_t init_sequence_r[] = { #ifdef CONFIG_PS2KBD initr_kbd, #endif +#ifdef CONFIG_FASTBOOT + initr_check_fastboot, +#endif run_main_loop, }; |