sciphone_g2: Vibrator control in SPL

To inform user that SPL has successfully started, vibrator is turned on
just before loading code from NAND. Vibrator is turned off when code loading is
finished, thanks to which user knows that SPL has loaded code from NAND
to SDRAM and didn't hang up.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
master
Marcin Mielczarczyk 12 years ago
parent cef09789e6
commit 6d41c27d25
  1. 6
      nand_spl/board/mtk/sciphone_g2/Makefile
  2. 5
      nand_spl/nand_boot_detect.c

@ -35,7 +35,7 @@ AFLAGS += -DCONFIG_PRELOADER -DCONFIG_NAND_SPL -DCONFIG_SYS_TEXT_BASE=$(CONFIG_S
CFLAGS += -DCONFIG_PRELOADER -DCONFIG_NAND_SPL -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE)
SOBJS = start.o lowlevel_init.o
COBJS = nand_boot_detect.o mt62xx_nand.o nand_ids.o
COBJS = nand_boot_detect.o mt62xx_nand.o nand_ids.o vibra.o
SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
@ -68,12 +68,16 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
$(obj)%.o: $(SRCTREE)/arch/arm/cpu/arm926ejs/%.S
$(CC) $(AFLAGS) -c -o $@ $<
$(obj)%.o: $(SRCTREE)/arch/arm/cpu/arm926ejs/$(VENDOR)/%.c
$(CC) $(AFLAGS) -c -o $@ $<
$(obj)%.o: $(SRCTREE)/nand_spl/%.c
$(CC) $(CFLAGS) -c -o $@ $<
$(obj)%.o: $(SRCTREE)/drivers/mtd/nand/%.c
$(CC) $(CFLAGS) -c -o $@ $<
# defines $(obj).depend target
include $(SRCTREE)/rules.mk

@ -24,6 +24,7 @@
#include <nand.h>
#include <asm/io.h>
#include <linux/err.h>
#include <asm/arch-mtk/vibra.h>
/*
* SPL has no malloc availble and below are definitions of some temporary
@ -439,6 +440,8 @@ void nand_boot(void)
nand_info_t *mtd = nand_info;
__attribute__((noreturn)) void (*uboot)(void);
vibra_on();
/*
* Init board specific nand support
*/
@ -476,6 +479,8 @@ void nand_boot(void)
if (chip.select_chip)
chip.select_chip(mtd, -1);
vibra_off();
/*
* Jump to U-Boot image
*/

Loading…
Cancel
Save