summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2007-10-26 18:31:59 +0800
committerJon Loeliger <jdl@freescale.com>2007-11-07 14:09:08 -0600
commitf3bceaab230b4748d0afc4109b6837308f018b40 (patch)
tree5dfbca47ef90ee9b75b09521b51c875728475d3f
parent607b3ae27efdb709719f0713113fcf4b073676c1 (diff)
downloadu-boot-imx-f3bceaab230b4748d0afc4109b6837308f018b40.zip
u-boot-imx-f3bceaab230b4748d0afc4109b6837308f018b40.tar.gz
u-boot-imx-f3bceaab230b4748d0afc4109b6837308f018b40.tar.bz2
Fix the BAT definition of PCI IO on 8610 board
The address in the BAT register is aligned with the BAT size. The original definition actually did not define BAT for PCIE2 IO. This patch fix this. Signed-off-by: Jason Jin <Jason.jin@freescale.com>
-rw-r--r--include/configs/MPC8610HPCD.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h
index be3434a..8bbe447 100644
--- a/include/configs/MPC8610HPCD.h
+++ b/include/configs/MPC8610HPCD.h
@@ -361,28 +361,26 @@
#define CFG_IBAT1U CFG_DBAT1U
/*
- * BAT2 32M Cache-inhibited, guarded
+ * BAT2 16M Cache-inhibited, guarded
* 0xe100_0000 1M PCI-1 I/O
- * 0xe200_0000 1M PCI-Express 2 I/O
- *
*/
#define CFG_DBAT2L (CFG_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
| BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI1_IO_PHYS | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CFG_DBAT2U (CFG_PCI1_IO_PHYS | BATU_BL_16M | BATU_VS | BATU_VP)
#define CFG_IBAT2L (CFG_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
#define CFG_IBAT2U CFG_DBAT2U
/*
- * BAT3 1M Cache-inhibited, guarded
+ * BAT3 32M Cache-inhibited, guarded
+ * 0xe200_0000 1M PCI-Express 2 I/O
* 0xe300_0000 1M PCI-Express 1 I/O
- *
*/
-#define CFG_DBAT3L (CFG_PCIE1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CFG_DBAT3L (CFG_PCIE2_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
| BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U (CFG_PCIE1_IO_PHYS | BATU_BL_1M | BATU_VS | BATU_VP)
-#define CFG_IBAT3L (CFG_PCIE1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CFG_DBAT3U (CFG_PCIE2_IO_PHYS | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CFG_IBAT3L (CFG_PCIE2_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
#define CFG_IBAT3U CFG_DBAT3U
/*