Skip to content

Commit

Permalink
plat-orion: make ehci-orion available for all Orion families
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
  • Loading branch information
Lennert Buytenhek authored and Nicolas Pitre committed Mar 27, 2008
1 parent 2bac1de commit 705a752
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-orion/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <asm/arch/hardware.h>
#include <asm/arch/orion.h>
#include <asm/arch/platform.h>
#include <asm/plat-orion/ehci-orion.h>
#include <asm/plat-orion/time.h>
#include "common.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ MODULE_LICENSE ("GPL");
#define OF_PLATFORM_DRIVER ehci_hcd_ppc_of_driver
#endif

#ifdef CONFIG_ARCH_ORION
#ifdef CONFIG_PLAT_ORION
#include "ehci-orion.c"
#define PLATFORM_DRIVER ehci_orion_driver
#endif
Expand Down
3 changes: 1 addition & 2 deletions drivers/usb/host/ehci-orion.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/mbus.h>
#include <asm/arch/orion.h>
#include <asm/arch/platform.h>
#include <asm/plat-orion/ehci-orion.h>

#define rdl(off) __raw_readl(hcd->regs + (off))
#define wrl(off, val) __raw_writel((val), hcd->regs + (off))
Expand Down
8 changes: 0 additions & 8 deletions include/asm-arm/arch-orion/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
#ifndef __ASM_ARCH_PLATFORM_H__
#define __ASM_ARCH_PLATFORM_H__

/*
* Orion EHCI platform driver data.
*/
struct orion_ehci_data {
struct mbus_dram_target_info *dram;
};


/*
* Device bus NAND private data
*/
Expand Down
19 changes: 19 additions & 0 deletions include/asm-arm/plat-orion/ehci-orion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* include/asm-arm/plat-orion/ehci-orion.h
*
* 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_PLAT_ORION_EHCI_ORION_H
#define __ASM_PLAT_ORION_EHCI_ORION_H

#include <linux/mbus.h>

struct orion_ehci_data {
struct mbus_dram_target_info *dram;
};


#endif

0 comments on commit 705a752

Please sign in to comment.