Skip to content

Commit

Permalink
sh: sh7785lcr: fix PCI address map for 32-bit mode
Browse files Browse the repository at this point in the history
Fix the problem that cannot work PCI device on 32-bit mode because
influence of the commit 68b42d1
("sh: sh7785lcr: Map whole PCI address space."). So this patch was
implement like a 29-bit mode, map whole physical address space of
DDR-SDRAM.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Yoshihiro Shimoda authored and Paul Mundt committed Apr 6, 2009
1 parent 7fd87b3 commit 9bb019f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sh/drivers/pci/ops-sh7785lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ EXPORT_SYMBOL(board_pci_channels);

static struct sh4_pci_address_map sh7785_pci_map = {
.window0 = {
#if defined(CONFIG_32BIT)
.base = SH7780_32BIT_DDR_BASE_ADDR,
.size = 0x40000000,
#else
.base = SH7780_CS0_BASE_ADDR,
.size = 0x20000000,
#endif
},

.flags = SH4_PCIC_NO_RESET,
Expand Down
2 changes: 2 additions & 0 deletions arch/sh/drivers/pci/pci-sh7780.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
#define SH7780_CS5_BASE_ADDR (SH7780_CS4_BASE_ADDR + SH7780_MEM_REGION_SIZE)
#define SH7780_CS6_BASE_ADDR (SH7780_CS5_BASE_ADDR + SH7780_MEM_REGION_SIZE)

#define SH7780_32BIT_DDR_BASE_ADDR 0x40000000

struct sh4_pci_address_map;

/* arch/sh/drivers/pci/pci-sh7780.c */
Expand Down

0 comments on commit 9bb019f

Please sign in to comment.