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>
This commit is contained in:
parent
cef09789e6
commit
6d41c27d25
|
@ -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)
|
CFLAGS += -DCONFIG_PRELOADER -DCONFIG_NAND_SPL -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE)
|
||||||
|
|
||||||
SOBJS = start.o lowlevel_init.o
|
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))
|
SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
|
||||||
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
||||||
|
@ -68,12 +68,16 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
|
||||||
$(obj)%.o: $(SRCTREE)/arch/arm/cpu/arm926ejs/%.S
|
$(obj)%.o: $(SRCTREE)/arch/arm/cpu/arm926ejs/%.S
|
||||||
$(CC) $(AFLAGS) -c -o $@ $<
|
$(CC) $(AFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
$(obj)%.o: $(SRCTREE)/arch/arm/cpu/arm926ejs/$(VENDOR)/%.c
|
||||||
|
$(CC) $(AFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(obj)%.o: $(SRCTREE)/nand_spl/%.c
|
$(obj)%.o: $(SRCTREE)/nand_spl/%.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(obj)%.o: $(SRCTREE)/drivers/mtd/nand/%.c
|
$(obj)%.o: $(SRCTREE)/drivers/mtd/nand/%.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
# defines $(obj).depend target
|
||||||
include $(SRCTREE)/rules.mk
|
include $(SRCTREE)/rules.mk
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <nand.h>
|
#include <nand.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
|
#include <asm/arch-mtk/vibra.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPL has no malloc availble and below are definitions of some temporary
|
* 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;
|
nand_info_t *mtd = nand_info;
|
||||||
__attribute__((noreturn)) void (*uboot)(void);
|
__attribute__((noreturn)) void (*uboot)(void);
|
||||||
|
|
||||||
|
vibra_on();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Init board specific nand support
|
* Init board specific nand support
|
||||||
*/
|
*/
|
||||||
|
@ -476,6 +479,8 @@ void nand_boot(void)
|
||||||
if (chip.select_chip)
|
if (chip.select_chip)
|
||||||
chip.select_chip(mtd, -1);
|
chip.select_chip(mtd, -1);
|
||||||
|
|
||||||
|
vibra_off();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Jump to U-Boot image
|
* Jump to U-Boot image
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue