Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91204
b: refs/heads/master
c: 159ffb3
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and Nicolas Pitre committed Mar 27, 2008
1 parent 7981e85 commit f1080bd
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 64 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: d50c60a87a95a42f1bc984150d3eebc77a0b0c14
refs/heads/master: 159ffb3a04f6bc619643af680df406faafd0199d
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-orion/addr-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Maintainer: Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down Expand Up @@ -45,9 +45,9 @@
* Generic Address Decode Windows bit settings
*/
#define TARGET_DDR 0
#define TARGET_DEV_BUS 1
#define TARGET_PCI 3
#define TARGET_PCIE 4
#define TARGET_DEV_BUS 1
#define ATTR_DDR_CS(n) (((n) ==0) ? 0xe : \
((n) == 1) ? 0xd : \
((n) == 2) ? 0xb : \
Expand All @@ -64,7 +64,7 @@
#define WIN_EN 1

/*
* Helpers to get DDR banks info
* Helpers to get DDR bank info
*/
#define DDR_BASE_CS(n) ORION_DDR_REG(0x1500 + ((n) * 8))
#define DDR_SIZE_CS(n) ORION_DDR_REG(0x1504 + ((n) * 8))
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-orion/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Maintainer: Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down Expand Up @@ -363,7 +363,7 @@ void __init orion_init(void)
orion_setup_eth_wins();

/*
* REgister devices
* Register devices.
*/
platform_device_register(&orion_uart);
platform_device_register(&orion_ehci0);
Expand Down
19 changes: 10 additions & 9 deletions trunk/arch/arm/mach-orion/common.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef __ARCH_ORION_COMMON_H__
#define __ARCH_ORION_COMMON_H__
#ifndef __ARCH_ORION_COMMON_H
#define __ARCH_ORION_COMMON_H

/*
* Basic Orion init functions used early by machine-setup.
*/

void __init orion_map_io(void);
void __init orion_init_irq(void);
void __init orion_init(void);
void orion_map_io(void);
void orion_init_irq(void);
void orion_init(void);
extern struct sys_timer orion_timer;

/*
Expand Down Expand Up @@ -43,7 +43,7 @@ struct pci_bus *orion_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
* (/mach-orion/gpio.c).
*/

void __init orion_gpio_set_valid_pins(u32 pins);
void orion_gpio_set_valid_pins(u32 pins);
void gpio_display(void); /* debug */

/*
Expand All @@ -52,20 +52,21 @@ void gpio_display(void); /* debug */

struct mv643xx_eth_platform_data;

void __init orion_eth_init(struct mv643xx_eth_platform_data *eth_data);
void orion_eth_init(struct mv643xx_eth_platform_data *eth_data);

/*
* Orion Sata platform_data, used by machine-setup
*/

struct mv_sata_platform_data;

void __init orion_sata_init(struct mv_sata_platform_data *sata_data);
void orion_sata_init(struct mv_sata_platform_data *sata_data);

struct machine_desc;
struct meminfo;
struct tag;
extern void __init tag_fixup_mem32(struct machine_desc *, struct tag *,
char **, struct meminfo *);

#endif /* __ARCH_ORION_COMMON_H__ */

#endif
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-orion/db88f5281-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Maintainer: Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-orion/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Maintainer: Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-orion/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Maintainer: Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-orion/kurobox_pro-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* Maintainer: Ronen Shitrit <rshitrit@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down
32 changes: 16 additions & 16 deletions trunk/arch/arm/mach-orion/pci.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* arch/arm/mach-orion/pci.c
*
* PCI and PCIE functions for Marvell Orion System On Chip
* PCI and PCIe functions for Marvell Orion System On Chip
*
* Maintainer: Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand All @@ -18,20 +18,20 @@
#include "common.h"

/*****************************************************************************
* Orion has one PCIE controller and one PCI controller.
* Orion has one PCIe controller and one PCI controller.
*
* Note1: The local PCIE bus number is '0'. The local PCI bus number
* follows the scanned PCIE bridged busses, if any.
* Note1: The local PCIe bus number is '0'. The local PCI bus number
* follows the scanned PCIe bridged busses, if any.
*
* Note2: It is possible for PCI/PCIE agents to access many subsystem's
* Note2: It is possible for PCI/PCIe agents to access many subsystem's
* space, by configuring BARs and Address Decode Windows, e.g. flashes on
* device bus, Orion registers, etc. However this code only enable the
* access to DDR banks.
****************************************************************************/


/*****************************************************************************
* PCIE controller
* PCIe controller
****************************************************************************/
#define PCIE_BASE ((void __iomem *)ORION_PCIE_VIRT_BASE)

Expand Down Expand Up @@ -67,7 +67,7 @@ static int pcie_valid_config(int bus, int dev)


/*
* PCIE config cycles are done by programming the PCIE_CONF_ADDR register
* PCIe config cycles are done by programming the PCIE_CONF_ADDR register
* and then reading the PCIE_CONF_DATA register. Need to make sure these
* transactions are atomic.
*/
Expand Down Expand Up @@ -133,7 +133,7 @@ static int pcie_wr_conf(struct pci_bus *bus, u32 devfn,
return ret;
}

struct pci_ops pcie_ops = {
static struct pci_ops pcie_ops = {
.read = pcie_rd_conf,
.write = pcie_wr_conf,
};
Expand Down Expand Up @@ -170,23 +170,23 @@ static int __init pcie_setup(struct pci_sys_data *sys)
/*
* IORESOURCE_IO
*/
res[0].name = "PCI-EX I/O Space";
res[0].name = "PCIe I/O Space";
res[0].flags = IORESOURCE_IO;
res[0].start = ORION_PCIE_IO_BUS_BASE;
res[0].end = res[0].start + ORION_PCIE_IO_SIZE - 1;
if (request_resource(&ioport_resource, &res[0]))
panic("Request PCIE IO resource failed\n");
panic("Request PCIe IO resource failed\n");
sys->resource[0] = &res[0];

/*
* IORESOURCE_MEM
*/
res[1].name = "PCI-EX Memory Space";
res[1].name = "PCIe Memory Space";
res[1].flags = IORESOURCE_MEM;
res[1].start = ORION_PCIE_MEM_PHYS_BASE;
res[1].end = res[1].start + ORION_PCIE_MEM_SIZE - 1;
if (request_resource(&iomem_resource, &res[1]))
panic("Request PCIE Memory resource failed\n");
panic("Request PCIe Memory resource failed\n");
sys->resource[1] = &res[1];

sys->resource[2] = NULL;
Expand Down Expand Up @@ -351,7 +351,7 @@ static int orion_pci_wr_conf(struct pci_bus *bus, u32 devfn,
PCI_FUNC(devfn), where, size, val);
}

struct pci_ops pci_ops = {
static struct pci_ops pci_ops = {
.read = orion_pci_rd_conf,
.write = orion_pci_wr_conf,
};
Expand Down Expand Up @@ -508,7 +508,7 @@ static int __init pci_setup(struct pci_sys_data *sys)


/*****************************************************************************
* General PCIE + PCI
* General PCIe + PCI
****************************************************************************/
static void __devinit rc_pci_fixup(struct pci_dev *dev)
{
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-orion/rd88f5182-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Maintainer: Ronen Shitrit <rshitrit@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-arm/arch-orion/debug-macro.S
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* linux/include/asm-arm/arch-orion/debug-macro.S
* include/asm-arm/arch-orion/debug-macro.S
*
* Debugging macro include header
*
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-arm/arch-orion/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* published by the Free Software Foundation.
*/

#ifndef __ASM_ARCH_HARDWARE_H__
#define __ASM_ARCH_HARDWARE_H__
#ifndef __ASM_ARCH_HARDWARE_H
#define __ASM_ARCH_HARDWARE_H

#include "orion.h"

Expand Down
8 changes: 4 additions & 4 deletions trunk/include/asm-arm/arch-orion/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

#ifndef __ASM_ARM_ARCH_IO_H
#define __ASM_ARM_ARCH_IO_H
#ifndef __ASM_ARCH_IO_H
#define __ASM_ARCH_IO_H

#include "orion.h"

Expand Down
7 changes: 4 additions & 3 deletions trunk/include/asm-arm/arch-orion/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* warranty of any kind, whether express or implied.
*/

#ifndef __ASM_ARCH_IRQS_H__
#define __ASM_ARCH_IRQS_H__
#ifndef __ASM_ARCH_IRQS_H
#define __ASM_ARCH_IRQS_H

#include "orion.h" /* need GPIO_MAX */

Expand Down Expand Up @@ -58,4 +58,5 @@

#define NR_IRQS (IRQ_ORION_GPIO_START + NR_GPIO_IRQS)

#endif /* __ASM_ARCH_IRQS_H__ */

#endif
5 changes: 3 additions & 2 deletions trunk/include/asm-arm/arch-orion/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
* Marvell Orion memory definitions
*/

#ifndef __ASM_ARCH_MMU_H
#define __ASM_ARCH_MMU_H
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H

#define PHYS_OFFSET UL(0x00000000)

#define __virt_to_bus(x) __virt_to_phys(x)
#define __bus_to_virt(x) __phys_to_virt(x)


#endif
7 changes: 3 additions & 4 deletions trunk/include/asm-arm/arch-orion/orion.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* warranty of any kind, whether express or implied.
*/

#ifndef __ASM_ARCH_ORION_H__
#define __ASM_ARCH_ORION_H__
#ifndef __ASM_ARCH_ORION_H
#define __ASM_ARCH_ORION_H

/*****************************************************************************
* Orion Address Maps
Expand Down Expand Up @@ -91,6 +91,7 @@

#define ORION_BRIDGE_VIRT_BASE (ORION_REGS_VIRT_BASE | 0x20000)
#define ORION_BRIDGE_REG(x) (ORION_BRIDGE_VIRT_BASE | (x))
#define TIMER_VIRT_BASE (ORION_BRIDGE_VIRT_BASE | 0x300)

#define ORION_PCI_VIRT_BASE (ORION_REGS_VIRT_BASE | 0x30000)
#define ORION_PCI_REG(x) (ORION_PCI_VIRT_BASE | (x))
Expand Down Expand Up @@ -154,7 +155,5 @@
#define MAIN_IRQ_CAUSE ORION_BRIDGE_REG(0x200)
#define MAIN_IRQ_MASK ORION_BRIDGE_REG(0x204)

#define TIMER_VIRT_BASE (ORION_BRIDGE_VIRT_BASE | 0x300)


#endif
5 changes: 3 additions & 2 deletions trunk/include/asm-arm/arch-orion/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand All @@ -28,4 +28,5 @@ static inline void arch_reset(char mode)
orion_setbits(CPU_SOFT_RESET, 1);
}


#endif
4 changes: 2 additions & 2 deletions trunk/include/asm-arm/arch-orion/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/

Expand Down
Loading

0 comments on commit f1080bd

Please sign in to comment.