130-powercutback.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- a/dsl_hal_advcfg.c
  2. +++ b/dsl_hal_advcfg.c
  3. @@ -36,9 +36,9 @@
  4. * 05Jul05 0.00.09 CPH CQ9775: Change dslhal_advcfg_configDsTones input parameters & support for ADSL2+
  5. * 24Jul05 0.00.10 CPH Fixed comments in dslhal_advcfg_configDsTones function header
  6. *******************************************************************************/
  7. -#include <dev_host_interface.h>
  8. -#include <dsl_hal_register.h>
  9. -#include <dsl_hal_support.h>
  10. +#include "dev_host_interface.h"
  11. +#include "dsl_hal_register.h"
  12. +#include "dsl_hal_support.h"
  13. /*****************************************************************************/
  14. /* ACT API functions -- To be moved into their own independent module --RamP */
  15. --- a/Makefile
  16. +++ b/Makefile
  17. @@ -4,6 +4,7 @@
  18. CONFIG_SANGAM_ATM=m
  19. #EXTRA_CFLAGS += -DEL -I. -DPOST_SILICON -DCOMMON_NSP -DCONFIG_LED_MODULE -DDEREGISTER_LED -DNO_ACT
  20. -EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
  21. +#EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
  22. +EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -D__NO__VOICE_PATCH__ -DEL
  23. obj-$(CONFIG_SANGAM_ATM) := tiatm.o
  24. -tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o
  25. +tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o dsl_hal_advcfg.o
  26. --- a/tn7dsl.c
  27. +++ b/tn7dsl.c
  28. @@ -2869,6 +2869,14 @@ static int tn7dsl_set_dsl(void)
  29. dslhal_api_setRateAdaptFlag(pIhw, os_atoi(ptr));
  30. }
  31. + // set powercutback
  32. + ptr = NULL;
  33. + ptr = prom_getenv("powercutback");
  34. + if(ptr)
  35. + {
  36. + dslhal_advcfg_onOffPcb(pIhw, os_atoi(ptr));
  37. + }
  38. +
  39. // trellis
  40. ptr = NULL;
  41. ptr = prom_getenv("trellis");