Root/target/linux/ar7/patches-3.6/310-ac49x-prom-support.patch

1--- a/arch/mips/ar7/prom.c
2+++ b/arch/mips/ar7/prom.c
3@@ -70,6 +70,7 @@ struct psbl_rec {
4 };
5 
6 static const char psp_env_version[] __initconst = "TIENV0.8";
7+static const char psp_env_version_ac49x[] __initconst = "MaxENV0.2";
8 
9 struct psp_env_chunk {
10     u8 num;
11@@ -186,7 +187,8 @@ static void __init ar7_init_env(struct e
12     struct psbl_rec *psbl = (struct psbl_rec *)(KSEG1ADDR(0x14000300));
13     void *psp_env = (void *)KSEG1ADDR(psbl->env_base);
14 
15- if (strcmp(psp_env, psp_env_version) == 0) {
16+ if (strcmp(psp_env, psp_env_version) == 0 ||
17+ strcmp(psp_env, psp_env_version_ac49x) == 0) {
18         parse_psp_env(psp_env);
19     } else {
20         for (i = 0; i < MAX_ENTRY; i++, env++)
21

Archive Download this file



interactive