Skip to content

Commit

Permalink
ARM: kirkwood: remove KW_DEFADR_PCI_IO_REMAP
Browse files Browse the repository at this point in the history
KW_DEFADR_PCI_IO_REMAP has the same value as KW_DEFADR_PCI_IO and is
only used to set up a 1:1 mapping. Remove it and update the mapping to
use KW_DEFADR_PCI_IO.

Signed-off-by: Chris Packham <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
  • Loading branch information
cpackham authored and stroese committed Apr 12, 2019
1 parent d131ac4 commit 35f1ee6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-kirkwood/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int kw_config_adr_windows(void)
writel(KWCPU_WIN_CTRL_DATA(1024 * 64, KWCPU_TARGET_PCIE,
KWCPU_ATTR_PCIE_IO, KWCPU_WIN_ENABLE), &winregs[1].ctrl);
writel(KW_DEFADR_PCI_IO, &winregs[1].base);
writel(KW_DEFADR_PCI_IO_REMAP, &winregs[1].remap_lo);
writel(KW_DEFADR_PCI_IO, &winregs[1].remap_lo);
writel(0x0, &winregs[1].remap_hi);

/* Window 2: NAND Flash address space */
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-kirkwood/include/mach/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ enum kwcpu_attrib {
*/
#define KW_DEFADR_PCI_MEM 0x90000000
#define KW_DEFADR_PCI_IO 0xC0000000
#define KW_DEFADR_PCI_IO_REMAP 0xC0000000
#define KW_DEFADR_SASRAM 0xC8010000
#define KW_DEFADR_NANDF 0xD8000000
#define KW_DEFADR_SPIF 0xE8000000
Expand Down

0 comments on commit 35f1ee6

Please sign in to comment.