[ar7] add support for new ar7-atm version D7.05.00.00 (#6515)
[openwrt/svn-archive/archive.git] / package / ar7-atm / patches-D7.05.01.00 / 130-powercutback.patch
1 Index: sangam_atm-D7.05.01.00/dsl_hal_advcfg.c
2 ===================================================================
3 --- sangam_atm-D7.05.01.00.orig/dsl_hal_advcfg.c 2005-08-09 08:20:46.000000000 +0200
4 +++ sangam_atm-D7.05.01.00/dsl_hal_advcfg.c 2010-03-07 18:09:59.000000000 +0100
5 @@ -36,9 +36,9 @@
6 * 05Jul05 0.00.09 CPH CQ9775: Change dslhal_advcfg_configDsTones input parameters & support for ADSL2+
7 * 24Jul05 0.00.10 CPH Fixed comments in dslhal_advcfg_configDsTones function header
8 *******************************************************************************/
9 -#include <dev_host_interface.h>
10 -#include <dsl_hal_register.h>
11 -#include <dsl_hal_support.h>
12 +#include "dev_host_interface.h"
13 +#include "dsl_hal_register.h"
14 +#include "dsl_hal_support.h"
15
16 /*****************************************************************************/
17 /* ACT API functions -- To be moved into their own independent module --RamP */
18 Index: sangam_atm-D7.05.01.00/Makefile
19 ===================================================================
20 --- sangam_atm-D7.05.01.00.orig/Makefile 2010-03-07 18:01:20.000000000 +0100
21 +++ sangam_atm-D7.05.01.00/Makefile 2010-03-07 18:09:59.000000000 +0100
22 @@ -4,6 +4,7 @@
23
24 CONFIG_SANGAM_ATM=m
25 #EXTRA_CFLAGS += -DEL -I. -DPOST_SILICON -DCOMMON_NSP -DCONFIG_LED_MODULE -DDEREGISTER_LED -DNO_ACT
26 -EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
27 +#EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -DNO_ACT -D__NO__VOICE_PATCH__ -DEL
28 +EXTRA_CFLAGS += -DEL -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -D__NO__VOICE_PATCH__ -DEL
29 obj-$(CONFIG_SANGAM_ATM) := tiatm.o
30 -tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o
31 +tiatm-objs += cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o dsl_hal_advcfg.o
32 Index: sangam_atm-D7.05.01.00/tn7dsl.c
33 ===================================================================
34 --- sangam_atm-D7.05.01.00.orig/tn7dsl.c 2010-03-07 18:07:28.000000000 +0100
35 +++ sangam_atm-D7.05.01.00/tn7dsl.c 2010-03-07 18:09:59.000000000 +0100
36 @@ -3053,6 +3053,14 @@
37 dslhal_api_setRateAdaptFlag(pIhw, os_atoi(ptr));
38 }
39
40 + // set powercutback
41 + ptr = NULL;
42 + ptr = prom_getenv("powercutback");
43 + if(ptr)
44 + {
45 + dslhal_advcfg_onOffPcb(pIhw, os_atoi(ptr));
46 + }
47 +
48 // trellis
49 ptr = NULL;
50 ptr = prom_getenv("trellis");