Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189815
b: refs/heads/master
c: a1ac442
h: refs/heads/master
i:
  189813: 0404ca4
  189811: 260d4e3
  189807: 5927857
v: v3
  • Loading branch information
Alberto Panizzo authored and Sascha Hauer committed Mar 25, 2010
1 parent e2e9fe8 commit 058fdba
Show file tree
Hide file tree
Showing 2 changed files with 21 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: a1b67b957ea3b9138ed8239796cb48d8b1bf66b0
refs/heads/master: a1ac442443342f778d5230b16efadc4c32d96298
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-mx3/mach-mx31_3ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <mach/imx-uart.h>
#include <mach/iomux-mx3.h>
#include <mach/mxc_nand.h>
#include <mach/spi.h>
#include "devices.h"

/*!
Expand All @@ -52,6 +53,24 @@ static int mx31_3ds_pins[] = {
MX31_PIN_TXD1__TXD1,
MX31_PIN_RXD1__RXD1,
IOMUX_MODE(MX31_PIN_GPIO1_1, IOMUX_CONFIG_GPIO),
/* SPI 1 */
MX31_PIN_CSPI2_SCLK__SCLK,
MX31_PIN_CSPI2_MOSI__MOSI,
MX31_PIN_CSPI2_MISO__MISO,
MX31_PIN_CSPI2_SPI_RDY__SPI_RDY,
MX31_PIN_CSPI2_SS0__SS0,
MX31_PIN_CSPI2_SS2__SS2, /*CS for MC13783 */
};

/* SPI */
static int spi1_internal_chipselect[] = {
MXC_SPI_CS(0),
MXC_SPI_CS(2),
};

static struct spi_imx_master spi1_pdata = {
.chipselect = spi1_internal_chipselect,
.num_chipselect = ARRAY_SIZE(spi1_internal_chipselect),
};

/*
Expand Down Expand Up @@ -249,6 +268,7 @@ static void __init mxc_board_init(void)

mxc_register_device(&mxc_uart_device0, &uart_pdata);
mxc_register_device(&mxc_nand_device, &imx31_3ds_nand_flash_pdata);
mxc_register_device(&mxc_spi_device1, &spi1_pdata);

if (!mx31_3ds_init_expio())
platform_device_register(&smsc911x_device);
Expand Down

0 comments on commit 058fdba

Please sign in to comment.