Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192201
b: refs/heads/master
c: c83b2bf
h: refs/heads/master
i:
  192199: 16b548f
v: v3
  • Loading branch information
Daniel Walker committed May 13, 2010
1 parent 36b2cf7 commit e6725a2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ed8d58fcba4cda3e492f085d217c76ba6e8cb14
refs/heads/master: c83b2bf66a40cd9bb3af3f6e28d36babb6748d73
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-msm/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ void __iomem *__msm_ioremap(unsigned long phys_addr, size_t size, unsigned int m
#define __mem_pci(a) (a)

void msm_map_qsd8x50_io(void);
void msm_map_msm7x30_io(void);

extern unsigned int msm_shared_ram_phys;

#endif
33 changes: 33 additions & 0 deletions trunk/arch/arm/mach-msm/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,39 @@ void __init msm_map_qsd8x50_io(void)
}
#endif /* CONFIG_ARCH_QSD8X50 */

#ifdef CONFIG_ARCH_MSM7X30
static struct map_desc msm7x30_io_desc[] __initdata = {
MSM_DEVICE(VIC),
MSM_DEVICE(CSR),
MSM_DEVICE(TMR),
MSM_DEVICE(DMOV),
MSM_DEVICE(GPIO1),
MSM_DEVICE(GPIO2),
MSM_DEVICE(CLK_CTL),
MSM_DEVICE(CLK_CTL_SH2),
MSM_DEVICE(AD5),
MSM_DEVICE(MDC),
MSM_DEVICE(ACC),
MSM_DEVICE(SAW),
MSM_DEVICE(GCC),
MSM_DEVICE(TCSR),
#ifdef CONFIG_MSM_DEBUG_UART
MSM_DEVICE(DEBUG_UART),
#endif
{
.virtual = (unsigned long) MSM_SHARED_RAM_BASE,
.pfn = __phys_to_pfn(MSM_SHARED_RAM_PHYS),
.length = MSM_SHARED_RAM_SIZE,
.type = MT_DEVICE,
},
};

void __init msm_map_msm7x30_io(void)
{
iotable_init(msm7x30_io_desc, ARRAY_SIZE(msm7x30_io_desc));
}
#endif /* CONFIG_ARCH_MSM7X30 */

void __iomem *
__msm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype)
{
Expand Down

0 comments on commit e6725a2

Please sign in to comment.