Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212493
b: refs/heads/master
c: d17e1c1
h: refs/heads/master
i:
  212491: 500beb6
v: v3
  • Loading branch information
Marc Kleine-Budde authored and Uwe Kleine-König committed Sep 27, 2010
1 parent 35b4027 commit d81857b
Show file tree
Hide file tree
Showing 2 changed files with 25 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: 3b161e51b254fa7bd3a9b0bd7ca7a2ac8ceaae8b
refs/heads/master: d17e1c1ac3a1e4befecb34c20dc8cb901aa72aba
24 changes: 24 additions & 0 deletions trunk/arch/arm/mach-mx3/mach-mx35_3ds.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved.
* Copyright (C) 2009 Marc Kleine-Budde, Pengutronix
*
* Author: Fabio Estevam <fabio.estevam@freescale.com>
*
Expand Down Expand Up @@ -27,6 +28,8 @@
#include <linux/gpio.h>
#include <linux/fsl_devices.h>

#include <linux/mtd/physmap.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
Expand All @@ -43,8 +46,29 @@ static const struct imxuart_platform_data uart_pdata __initconst = {
.flags = IMXUART_HAVE_RTSCTS,
};

static struct physmap_flash_data mx35pdk_flash_data = {
.width = 2,
};

static struct resource mx35pdk_flash_resource = {
.start = MX35_CS0_BASE_ADDR,
.end = MX35_CS0_BASE_ADDR + SZ_64M - 1,
.flags = IORESOURCE_MEM,
};

static struct platform_device mx35pdk_flash = {
.name = "physmap-flash",
.id = 0,
.dev = {
.platform_data = &mx35pdk_flash_data,
},
.resource = &mx35pdk_flash_resource,
.num_resources = 1,
};

static struct platform_device *devices[] __initdata = {
&mxc_fec_device,
&mx35pdk_flash,
};

static struct pad_desc mx35pdk_pads[] = {
Expand Down

0 comments on commit d81857b

Please sign in to comment.