htcleo: added kernel parameter for no nand boot

You have to add nand_boot=0 as boot parameter in haret boot
This commit is contained in:
Markinus 2010-09-27 01:03:08 +02:00
parent 6fada7185d
commit 5731dc5001
2 changed files with 20 additions and 0 deletions

View File

@ -63,6 +63,25 @@
extern int __init htcleo_init_mmc(unsigned debug_uart);
extern void __init htcleo_audio_init(void);
extern unsigned char *get_bt_bd_ram(void);
static unsigned int nand_boot = 1;
///////////////////////////////////////////////////////////////////////
// Nand boot Option
///////////////////////////////////////////////////////////////////////
int htcleo_is_nand_boot(void)
{
return nand_boot;
}
static int __init board_nandboot_setup(char *bootconfig)
{
if (!strncmp(bootconfig, "0", 1))
nand_boot=0;
return 1;
}
__setup("nand_boot=", board_nandboot_setup);
///////////////////////////////////////////////////////////////////////
// SPI

View File

@ -168,5 +168,6 @@
int htcleo_pm_set_vreg(int enable, unsigned id);
int __init htcleo_init_panel(void);
int htcleo_is_nand_boot(void);
#endif /* __ARCH_ARM_MACH_MSM_BOARD_HTCLEO_H */