Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62626
b: refs/heads/master
c: 4b300c3
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and Russell King committed Jul 20, 2007
1 parent 92b6e35 commit b0de635
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed54fcfd785e8fecfbd8b129466235fc4ab0a402
refs/heads/master: 4b300c362d690c8e0788f69ed91c22a0a76f7ce2
10 changes: 7 additions & 3 deletions trunk/arch/arm/mach-at91/at91rm9200_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ void __init at91_add_device_i2c(void) {}
* SPI
* -------------------------------------------------------------------- */

#if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE)
#if defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE) || defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE)
static u64 spi_dmamask = 0xffffffffUL;

static struct resource spi_resources[] = {
Expand All @@ -494,7 +494,7 @@ static struct resource spi_resources[] = {
};

static struct platform_device at91rm9200_spi_device = {
.name = "atmel_spi",
.name = "at91_spi",
.id = 0,
.dev = {
.dma_mask = &spi_dmamask,
Expand Down Expand Up @@ -522,14 +522,18 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices)
else
cs_pin = spi_standard_cs[devices[i].chip_select];

/* enable chip-select pin */
#ifdef CONFIG_SPI_AT91_MANUAL_CS
at91_set_gpio_output(cs_pin, 1);
#else
at91_set_A_periph(cs_pin, 0);
#endif

/* pass chip-select pin to driver */
devices[i].controller_data = (void *) cs_pin;
}

spi_register_board_info(devices, nr_devices);
at91_clock_associate("spi_clk", &at91rm9200_spi_device.dev, "spi");
platform_device_register(&at91rm9200_spi_device);
}
#else
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@ static int __init imx_serial_init(void)

static void __exit imx_serial_exit(void)
{
uart_unregister_driver(&imx_reg);
platform_driver_unregister(&serial_imx_driver);
uart_unregister_driver(&imx_reg);
}

module_init(imx_serial_init);
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-arm/arch-at91/at91_mci.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
#define AT91_MCI_MR 0x04 /* Mode Register */
#define AT91_MCI_CLKDIV (0xff << 0) /* Clock Divider */
#define AT91_MCI_PWSDIV (7 << 8) /* Power Saving Divider */
#define AT91_MCI_RDPROOF (1 << 11) /* Read Proof Enable [SAM926[03] only] */
#define AT91_MCI_WRPROOF (1 << 12) /* Write Proof Enable [SAM926[03] only] */
#define AT91_MCI_PDCFBYTE (1 << 13) /* PDC Force Byte Transfer [SAM926[03] only] */
#define AT91_MCI_PDCPADV (1 << 14) /* PDC Padding Value */
#define AT91_MCI_PDCMODE (1 << 15) /* PDC-orientated Mode */
#define AT91_MCI_BLKLEN (0xfff << 18) /* Data Block Length */
Expand Down

0 comments on commit b0de635

Please sign in to comment.