310-ac49x-prom-support.patch 678 B

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