Skip to contentSkip to conversation

85xx: Use SVR_SOC_VER instead of SVR_VER

PATCH New Kumar Gala 2 participants 3 messages Apr 8, 2008 – Apr 18, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 85xx: Use SVR_SOC_VER instead of SVR_VER

The recent change introduced by 'Update SVR numbers to expand support' now requires that we use SVR_SOC_VER instead of SVR_VER if we want to compare against a particular processor id.

---

This fixes an issue and should go into 1.3.3.

 cpu/mpc85xx/cpu_init.c  |    2 +-
 cpu/mpc85xx/spd_sdram.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
cpu/mpc85xx/cpu_init.c +1 -1
index fce0c48..e3240b5 100644
@@ -272,7 +272,7 @@ int cpu_init_r(void)
 	uint l2srbar;
 
 	svr = get_svr();
-	ver = SVR_VER(svr);
+	ver = SVR_SOC_VER(svr);
 
 	asm("msync;isync");
 	cache_ctl = l2cache->l2ctl;
cpu/mpc85xx/spd_sdram.c +1 -1
index abc63c4..435458a 100644
@@ -306,7 +306,7 @@ spd_sdram(void)
 	 * Adjust DDR II IO voltage biasing.
 	 * Only 8548 rev 1 needs the fix
 	 */
-	if ((SVR_VER(get_svr()) == SVR_8548_E) &&
+	if ((SVR_SOC_VER(get_svr()) == SVR_8548_E) &&
 			(SVR_MJREV(get_svr()) == 1) &&
 			(spd.mem_type == SPD_MEMTYPE_DDR2)) {
 		volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 85xx: Use SVR_SOC_VER instead of SVR_VER

Quoted 5 lines · In message <[email protected]> you wrote:

The recent change introduced by 'Update SVR numbers to expand support' now requires that we use SVR_SOC_VER instead of SVR_VER if we want to compare against a particular processor id.

Andy, will you send a pull request soon, or should I pull this in directly?

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Without facts, the decision cannot be made logically. You  must  rely
on your human intuition.
	-- Spock, "Assignment: Earth", stardate unknown
author
#2 lore raw

PATCH 1/1 85xx: Use SVR_SOC_VER instead of SVR_VER

Quoted 11 lines · Wolfgang Denk

In message <[email protected]>

Quoted 6 lines · you

The recent change introduced by 'Update SVR numbers to expand support'
now requires that we use SVR_SOC_VER instead of SVR_VER if we want to compare against a particular processor id.

Andy, will you send a pull request soon, or should I pull this in directly?

Already in your tree. Commit f3e04bdc3f360c66801a9048956e61e41a16edba

- k