-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[POWERPC] Add the MPC8641 HPCN platform files.
Signed-off-by: Xianghua Xiao <x.xiao@freescale.com> Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Signed-off-by: Wei Zhang <Wei.Zhang@freescale.com> Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
- Loading branch information
Jon Loeliger
authored and
Paul Mackerras
committed
Jun 21, 2006
1 parent
ee0339f
commit 4ca4b62
Showing
4 changed files
with
525 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* MPC8641 HPCN board definitions | ||
* | ||
* Copyright 2006 Freescale Semiconductor Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
* | ||
* Author: Xianghua Xiao <x.xiao@freescale.com> | ||
*/ | ||
|
||
#ifndef __MPC8641_HPCN_H__ | ||
#define __MPC8641_HPCN_H__ | ||
|
||
#include <linux/config.h> | ||
#include <linux/init.h> | ||
|
||
/* PCI interrupt controller */ | ||
#define PIRQA 3 | ||
#define PIRQB 4 | ||
#define PIRQC 5 | ||
#define PIRQD 6 | ||
#define PIRQ7 7 | ||
#define PIRQE 9 | ||
#define PIRQF 10 | ||
#define PIRQG 11 | ||
#define PIRQH 12 | ||
|
||
/* PCI-Express memory map */ | ||
#define MPC86XX_PCIE_LOWER_IO 0x00000000 | ||
#define MPC86XX_PCIE_UPPER_IO 0x00ffffff | ||
|
||
#define MPC86XX_PCIE_LOWER_MEM 0x80000000 | ||
#define MPC86XX_PCIE_UPPER_MEM 0x9fffffff | ||
|
||
#define MPC86XX_PCIE_IO_BASE 0xe2000000 | ||
#define MPC86XX_PCIE_MEM_OFFSET 0x00000000 | ||
|
||
#define MPC86XX_PCIE_IO_SIZE 0x01000000 | ||
|
||
#define PCIE1_CFG_ADDR_OFFSET (0x8000) | ||
#define PCIE1_CFG_DATA_OFFSET (0x8004) | ||
|
||
#define PCIE2_CFG_ADDR_OFFSET (0x9000) | ||
#define PCIE2_CFG_DATA_OFFSET (0x9004) | ||
|
||
#define MPC86xx_PCIE_OFFSET PCIE1_CFG_ADDR_OFFSET | ||
#define MPC86xx_PCIE_SIZE (0x1000) | ||
|
||
#define MPC86XX_RSTCR_OFFSET (0xe00b0) /* Reset Control Register */ | ||
|
||
#endif /* __MPC8641_HPCN_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2006 Freescale Semiconductor Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
*/ | ||
|
||
#ifndef __MPC86XX_H__ | ||
#define __MPC86XX_H__ | ||
|
||
/* | ||
* Declaration for the various functions exported by the | ||
* mpc86xx_* files. Mostly for use by mpc86xx_setup(). | ||
*/ | ||
|
||
extern int __init add_bridge(struct device_node *dev); | ||
|
||
extern void __init setup_indirect_pcie(struct pci_controller *hose, | ||
u32 cfg_addr, u32 cfg_data); | ||
extern void __init setup_indirect_pcie_nomap(struct pci_controller *hose, | ||
void __iomem *cfg_addr, | ||
void __iomem *cfg_data); | ||
|
||
extern void __init mpc86xx_smp_init(void); | ||
|
||
#endif /* __MPC86XX_H__ */ |
Oops, something went wrong.