Path: blob/master/arch/sh/include/mach-ecovec24/mach/romimage.h
15160 views
#ifdef __ASSEMBLY__12/* EcoVec board specific boot code:3* converts the "partner-jet-script.txt" script into assembly4* the assembly code is the first code to be executed in the romImage5*/67#include <asm/romimage-macros.h>8#include "partner-jet-setup.txt"910/* execute icbi after enabling cache */11mov.l 1f, r012icbi @r01314/* jump to cached area */15mova 2f, r016jmp @r017nop1819.align 2201 : .long 0xa8000000212 :2223#else /* __ASSEMBLY__ */2425/* Ecovec board specific information:26*27* Set the following to enable MMCIF boot from the MMC card in CN12:28*29* DS1.5 = OFF (SH BOOT pin set to L)30* DS2.6 = OFF (Select MMCIF on CN12 instead of SDHI1)31* DS2.7 = ON (Select MMCIF on CN12 instead of SDHI1)32*33*/34#define HIZCRA 0xa405015835#define PGDR 0xa405012c3637static inline void mmcif_update_progress(int nr)38{39/* disable Hi-Z for LED pins */40__raw_writew(__raw_readw(HIZCRA) & ~(1 << 1), HIZCRA);4142/* update progress on LED4, LED5, LED6 and LED7 */43__raw_writeb(1 << (nr - 1), PGDR);44}4546#endif /* __ASSEMBLY__ */474849