Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292444
b: refs/heads/master
c: 2424f54
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Mar 4, 2012
1 parent 2b30685 commit e0775d6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 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: 36d175a4b249235927d75fb681484bd97cc4ea41
refs/heads/master: 2424f549020b6f87ea3b6e89fd7bd26ddf1f717b
11 changes: 11 additions & 0 deletions trunk/arch/m68k/include/asm/m5249sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@
#define MCFUART_BASE0 (MCF_MBAR + 0x1c0) /* Base address UART0 */
#define MCFUART_BASE1 (MCF_MBAR + 0x200) /* Base address UART1 */

/*
* QSPI module.
*/
#define MCFQSPI_BASE (MCF_MBAR + 0x300) /* Base address QSPI */
#define MCFQSPI_SIZE 0x40 /* Register set size */

#define MCFQSPI_CS0 29
#define MCFQSPI_CS1 24
#define MCFQSPI_CS2 21
#define MCFQSPI_CS3 22

/*
* DMA unit base addresses.
*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/m68k/include/asm/mcfqspi.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

#if defined(CONFIG_M527x) || defined(CONFIG_M528x)
#define MCFQSPI_IOBASE (MCF_IPSBAR + 0x340)
#elif defined(CONFIG_M5249)
#define MCFQSPI_IOBASE (MCF_MBAR + 0x300)
#elif defined(CONFIG_M532x)
#define MCFQSPI_IOBASE 0xFC058000
#endif
Expand Down
9 changes: 2 additions & 7 deletions trunk/arch/m68k/platform/5249/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ static struct platform_device m5249_smc91x = {
#if defined(CONFIG_SPI_COLDFIRE_QSPI) || defined(CONFIG_SPI_COLDFIRE_QSPI_MODULE)
static struct resource m5249_qspi_resources[] = {
{
.start = MCFQSPI_IOBASE,
.end = MCFQSPI_IOBASE + MCFQSPI_IOSIZE - 1,
.start = MCFQSPI_BASE,
.end = MCFQSPI_BASE + MCFQSPI_SIZE - 1,
.flags = IORESOURCE_MEM,
},
{
Expand All @@ -59,11 +59,6 @@ static struct resource m5249_qspi_resources[] = {
},
};

#define MCFQSPI_CS0 29
#define MCFQSPI_CS1 24
#define MCFQSPI_CS2 21
#define MCFQSPI_CS3 22

static int m5249_cs_setup(struct mcfqspi_cs_control *cs_control)
{
int status;
Expand Down

0 comments on commit e0775d6

Please sign in to comment.