Skip to contentSkip to conversation

powerpc/b4860: Updated default hwconfig so as to enable only

PATCH New Shaveta Leekha 2 participants 2 messages Sep 4, 2014 – Sep 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc/b4860: Updated default hwconfig so as to enable only

CPC1 is not being enabled by default as powerpc is supposed to use only CPC2.
Though by editing hwconfig en_cpc option,
CPC1 can also be enabled

---
Tested on B4860QDS

Changes in V2:
Inserted "en_cpc:cpc2" at right place,
not to broke into the settings for DDR

 include/configs/B4860QDS.h |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
include/configs/B4860QDS.h +9 -2
index 953d06b..6deb784 100644
@@ -819,9 +819,16 @@ unsigned long get_board_ddr_clk(void);
 
 #define __USB_PHY_TYPE	ulpi
 
+#ifdef CONFIG_PPC_B4860
+#define HWCONFIG	"hwconfig=fsl_ddr:ctlr_intlv=null,"	\
+			"bank_intlv=cs0_cs1;"	\
+			"en_cpc:cpc2;"
+#else
+#define	HWCONFIG	"hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=cs0_cs1;"
+#endif
+
 #define	CONFIG_EXTRA_ENV_SETTINGS				\
-	"hwconfig=fsl_ddr:ctlr_intlv=null,"		\
-	"bank_intlv=cs0_cs1;"					\
+	HWCONFIG						\
 	"usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
 	"netdev=eth0\0"						\
 	"uboot=" __stringify(CONFIG_UBOOTPATH) "\0"			\
Signature · 1 line
1.7.6.GIT
#1 lore raw

PATCH v2 1/1 powerpc/b4860: Updated default hwconfig so as to enable only

Quoted 5 lines · Shaveta Leekha

CPC1 is not being enabled by default as powerpc is supposed to use only CPC2.
Though by editing hwconfig en_cpc option,
CPC1 can also be enabled

Quoted 8 lines

---
Tested on B4860QDS

Changes in V2:
Inserted "en_cpc:cpc2" at right place,
not to broke into the settings for DDR

Appended cpc2 to the subject.

Applied to u-boot-mpc85xx, awaiting upstream.

York