Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187514
b: refs/heads/master
c: 27f5902
h: refs/heads/master
v: v3
  • Loading branch information
Baruch Siach authored and Sascha Hauer committed Jan 14, 2010
1 parent 9ad2034 commit 0749a7b
Show file tree
Hide file tree
Showing 4 changed files with 24 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: b6d0c1bda9038354ff2f0c77da23fd32e0f11a1f
refs/heads/master: 27f590258954ea0d22b43e33dd356bc76a8dfe7a
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-mx25/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,3 +438,23 @@ struct platform_device mx25_fec_device = {
.num_resources = ARRAY_SIZE(mx25_fec_resources),
.resource = mx25_fec_resources,
};

static struct resource mxc_nand_resources[] = {
{
.start = MX25_NFC_BASE_ADDR,
.end = MX25_NFC_BASE_ADDR + 0x1fff,
.flags = IORESOURCE_MEM,
},
{
.start = MX25_INT_NANDFC,
.end = MX25_INT_NANDFC,
.flags = IORESOURCE_IRQ,
},
};

struct platform_device mxc_nand_device = {
.name = "mxc_nand",
.id = 0,
.num_resources = ARRAY_SIZE(mxc_nand_resources),
.resource = mxc_nand_resources,
};
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mx25/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ extern struct platform_device mxc_i2c_device0;
extern struct platform_device mxc_i2c_device1;
extern struct platform_device mxc_i2c_device2;
extern struct platform_device mx25_fec_device;
extern struct platform_device mxc_nand_device;
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/mx25.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#define UART2_BASE_ADDR 0x43f94000

#define MX25_FEC_BASE_ADDR 0x50038000
#define MX25_NFC_BASE_ADDR 0xbb000000

#define MX25_INT_FEC 57
#define MX25_INT_NANDFC 33

#endif /* ifndef __MACH_MX25_H__ */

0 comments on commit 0749a7b

Please sign in to comment.