Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212529
b: refs/heads/master
c: 8005cf2
h: refs/heads/master
i:
  212527: 3179f86
v: v3
  • Loading branch information
Jason Wang authored and Sascha Hauer committed Oct 1, 2010
1 parent 07d7d53 commit 459ed43
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 988916e1a9af1994d510138e7201acf7b425fb46
refs/heads/master: 8005cf2eb39786a0a3592fe178603ee1caccc5eb
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-mx5/board-mx51_3ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/input/matrix_keypad.h>
#include <linux/spi/spi.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -145,6 +146,16 @@ static const struct spi_imx_master mx51_3ds_ecspi2_pdata __initconst = {
.num_chipselect = ARRAY_SIZE(mx51_3ds_spi2_cs),
};

static struct spi_board_info mx51_3ds_spi_nor_device[] = {
{
.modalias = "m25p80",
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
.bus_num = 1,
.chip_select = 1,
.mode = SPI_MODE_0,
.platform_data = NULL,},
};

/*
* Board specific initialization.
*/
Expand All @@ -155,6 +166,8 @@ static void __init mxc_board_init(void)
mxc_init_imx_uart();

imx51_add_ecspi(1, &mx51_3ds_ecspi2_pdata);
spi_register_board_info(mx51_3ds_spi_nor_device,
ARRAY_SIZE(mx51_3ds_spi_nor_device));

if (mxc_expio_init(MX51_CS5_BASE_ADDR, EXPIO_PARENT_INT))
printk(KERN_WARNING "Init of the debugboard failed, all "
Expand Down

0 comments on commit 459ed43

Please sign in to comment.