~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sh/include/mach-ecovec24/mach/romimage.h

Version: ~ [ linux-5.7 ] ~ [ linux-5.6.15 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.43 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.125 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.182 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.225 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.225 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.84 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifdef __ASSEMBLY__
  2 
  3 /* EcoVec board specific boot code:
  4  * converts the "partner-jet-script.txt" script into assembly
  5  * the assembly code is the first code to be executed in the romImage
  6  */
  7 
  8 #include <asm/romimage-macros.h>
  9 #include <mach/partner-jet-setup.txt>
 10 
 11         /* execute icbi after enabling cache */
 12         mov.l   1f, r0
 13         icbi    @r0
 14 
 15         /* jump to cached area */
 16         mova    2f, r0
 17         jmp     @r0
 18         nop
 19 
 20         .align 2
 21 1 :     .long 0xa8000000
 22 2 :
 23 
 24 #else /* __ASSEMBLY__ */
 25 
 26 /* Ecovec board specific information:
 27  *
 28  * Set the following to enable MMCIF boot from the MMC card in CN12:
 29  *
 30  * DS1.5 = OFF (SH BOOT pin set to L)
 31  * DS2.6 = OFF (Select MMCIF on CN12 instead of SDHI1)
 32  * DS2.7 = ON  (Select MMCIF on CN12 instead of SDHI1)
 33  *
 34  */
 35 #define HIZCRA          0xa4050158
 36 #define PGDR            0xa405012c
 37 
 38 static inline void mmcif_update_progress(int nr)
 39 {
 40         /* disable Hi-Z for LED pins */
 41         __raw_writew(__raw_readw(HIZCRA) & ~(1 << 1), HIZCRA);
 42 
 43         /* update progress on LED4, LED5, LED6 and LED7 */
 44         __raw_writeb(1 << (nr - 1), PGDR);
 45 }
 46 
 47 #endif /* __ASSEMBLY__ */
 48 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp