aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/u-boot/u-boot-1.3.2/boc01/015-090205-EMC.patch
blob: afc43c47ed6e8cc250107d344fd014c9548f427d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: u-boot-1.3.2/board/freescale/mpc8313erdb/mpc8313erdb.c
===================================================================
--- u-boot-1.3.2.orig/board/freescale/mpc8313erdb/mpc8313erdb.c
+++ u-boot-1.3.2/board/freescale/mpc8313erdb/mpc8313erdb.c
@@ -135,8 +135,9 @@ void pci_init_board(void)
 	struct pci_region *reg[] = { pci_regions };
 	int warmboot;
 
-	/* Enable all 3 PCI_CLK_OUTPUTs. */
-	clk->occr |= 0xe0000000;
+	/* Enable PCI_CLK_OUTPUT 1 only.
+	   Disable others for better EMC footprint. */
+	clk->occr = (clk->occr & 0x1fffffff) | OCCR_PCICOE1;
 
 	/*
 	 * Configure PCI Local Access Windows
Index: u-boot-1.3.2/include/configs/MPC8313ERDB.h
===================================================================
--- u-boot-1.3.2.orig/include/configs/MPC8313ERDB.h
+++ u-boot-1.3.2/include/configs/MPC8313ERDB.h
@@ -133,8 +133,8 @@
 #define CFG_DDR_CLK_CNTL	DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
 				/*0x02000000*/
 #define CFG_DDRCDR_VALUE	( DDRCDR_EN \
-				| DDRCDR_PZ_NOMZ \
-				| DDRCDR_NZ_NOMZ \
+				| DDRCDR_PZ_MAXZ \
+				| DDRCDR_NZ_MAXZ \
 				| DDRCDR_M_ODR )
 
 /*