~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-shmobile/include/mach/mmcif-ap4eb.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef MMCIF_AP4EB_H
2
 
#define MMCIF_AP4EB_H
3
 
 
4
 
#define PORT185CR      (void __iomem *)0xe60520b9
5
 
#define PORT186CR      (void __iomem *)0xe60520ba
6
 
#define PORT187CR      (void __iomem *)0xe60520bb
7
 
#define PORT188CR      (void __iomem *)0xe60520bc
8
 
 
9
 
#define PORTR191_160DR (void __iomem *)0xe6056014
10
 
 
11
 
static inline void mmcif_init_progress(void)
12
 
{
13
 
       /* Initialise LEDS1-4
14
 
        * registers: PORT185CR-PORT188CR (LED1-LED4 Control)
15
 
        * value:     0x10 - enable output
16
 
        */
17
 
       __raw_writeb(0x10, PORT185CR);
18
 
       __raw_writeb(0x10, PORT186CR);
19
 
       __raw_writeb(0x10, PORT187CR);
20
 
       __raw_writeb(0x10, PORT188CR);
21
 
}
22
 
 
23
 
static inline void mmcif_update_progress(int n)
24
 
{
25
 
        __raw_writel((__raw_readl(PORTR191_160DR) & ~(0xf << 25)) |
26
 
                     (1 << (25 + n)), PORTR191_160DR);
27
 
}
28
 
 
29
 
#endif /* MMCIF_AP4EB_H */