Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274111
b: refs/heads/master
c: bca7ab3
h: refs/heads/master
i:
  274109: f952f31
  274107: e496f7b
  274103: 9936076
  274095: 29010bf
  274079: b900533
  274047: 475c014
v: v3
  • Loading branch information
Leo Yan authored and Eric Miao committed Oct 25, 2011
1 parent 115a3ec commit 6840c76
Show file tree
Hide file tree
Showing 4 changed files with 15 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: 101bf4c19672b519f6d50a7b11e1e03b25a929b6
refs/heads/master: bca7ab316edd819edd0e3d59f9ccb26c6b2173f5
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-mmp/brownstone.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ static struct sram_platdata mmp2_asram_platdata = {
.granularity = SRAM_GRANULARITY,
};

static struct sram_platdata mmp2_isram_platdata = {
.pool_name = "isram",
.granularity = SRAM_GRANULARITY,
};

static void __init brownstone_init(void)
{
mfp_config(ARRAY_AND_SIZE(brownstone_pin_config));
Expand All @@ -202,6 +207,7 @@ static void __init brownstone_init(void)
mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */
mmp2_add_sdhost(2, &mmp2_sdh_platdata_mmc2); /* eMMC */
mmp2_add_asram(&mmp2_asram_platdata);
mmp2_add_isram(&mmp2_isram_platdata);

/* enable 5v regulator */
platform_device_register(&brownstone_v_5vp_device);
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-mmp/include/mach/mmp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern struct pxa_device_desc mmp2_device_sdh1;
extern struct pxa_device_desc mmp2_device_sdh2;
extern struct pxa_device_desc mmp2_device_sdh3;
extern struct pxa_device_desc mmp2_device_asram;
extern struct pxa_device_desc mmp2_device_isram;

static inline int mmp2_add_uart(int id)
{
Expand Down Expand Up @@ -92,5 +93,10 @@ static inline int mmp2_add_asram(struct sram_platdata *data)
return pxa_register_device(&mmp2_device_asram, data, sizeof(*data));
}

static inline int mmp2_add_isram(struct sram_platdata *data)
{
return pxa_register_device(&mmp2_device_isram, data, sizeof(*data));
}

#endif /* __ASM_MACH_MMP2_H */

2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-mmp/mmp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,6 @@ MMP2_DEVICE(sdh1, "sdhci-pxav3", 1, MMC2, 0xd4280800, 0x120);
MMP2_DEVICE(sdh2, "sdhci-pxav3", 2, MMC3, 0xd4281000, 0x120);
MMP2_DEVICE(sdh3, "sdhci-pxav3", 3, MMC4, 0xd4281800, 0x120);
MMP2_DEVICE(asram, "asram", -1, NONE, 0xe0000000, 0x4000);
/* 0xd1000000 ~ 0xd101ffff is reserved for secure processor */
MMP2_DEVICE(isram, "isram", -1, NONE, 0xd1020000, 0x18000);

0 comments on commit 6840c76

Please sign in to comment.