Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217179
b: refs/heads/master
c: 77ffc14
h: refs/heads/master
i:
  217177: fd3315c
  217175: f3d35c1
v: v3
  • Loading branch information
Mike Rapoport authored and Colin Cross committed Oct 22, 2010
1 parent 96da3b4 commit 2df220b
Show file tree
Hide file tree
Showing 7 changed files with 937 additions and 2 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: 8d685bc5e5cad76c05c9986c23a821c5bcef7c16
refs/heads/master: 77ffc1465cec32489889d6bc9c288b7b0d2ce9fb
4 changes: 4 additions & 0 deletions trunk/arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ config ARCH_TEGRA_2x_SOC

endchoice

config TEGRA_PCI
bool "PCI Express support"
select PCI

comment "Tegra board type"

config MACH_HARMONY
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-tegra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o
obj-$(CONFIG_CPU_FREQ) += cpu-tegra.o
obj-$(CONFIG_TEGRA_PCI) += pcie.o

obj-${CONFIG_MACH_HARMONY} += board-harmony.o
obj-${CONFIG_MACH_HARMONY} += board-harmony-pinmux.o
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-tegra/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void __init tegra_common_init(void);
void __init tegra_map_common_io(void);
void __init tegra_init_irq(void);
void __init tegra_init_clock(void);
int __init tegra_pcie_init(bool init_port0, bool init_port1);

extern struct sys_timer tegra_timer;
#endif
4 changes: 4 additions & 0 deletions trunk/arch/arm/mach-tegra/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@
#ifndef __MACH_TEGRA_HARDWARE_H
#define __MACH_TEGRA_HARDWARE_H

#define PCIBIOS_MIN_IO 0x1000
#define PCIBIOS_MIN_MEM 0
#define pcibios_assign_all_busses() 1

#endif
12 changes: 11 additions & 1 deletion trunk/arch/arm/mach-tegra/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef __MACH_TEGRA_IO_H
#define __MACH_TEGRA_IO_H

#define IO_SPACE_LIMIT 0xffffffff
#define IO_SPACE_LIMIT 0xffff

/* On TEGRA, many peripherals are very closely packed in
* two 256MB io windows (that actually only use about 64KB
Expand Down Expand Up @@ -73,10 +73,20 @@ void tegra_iounmap(volatile void __iomem *addr);

#define IO_ADDRESS(n) ((void __iomem *) IO_TO_VIRT(n))

#ifdef CONFIG_TEGRA_PCI
extern void __iomem *tegra_pcie_io_base;

static inline void __iomem *__io(unsigned long addr)
{
return tegra_pcie_io_base + (addr & IO_SPACE_LIMIT);
}
#else
static inline void __iomem *__io(unsigned long addr)
{
return (void __iomem *)addr;
}
#endif

#define __io(a) __io(a)
#define __mem_pci(a) (a)

Expand Down
Loading

0 comments on commit 2df220b

Please sign in to comment.