[myTouch 3G, Magic Android Development] youngzi:
source code i modified for porting it to new Radio,please check it first.

i will send my source code tonight(Beijing Time,now daytime),because i am working in my office.

my english is no so good, sorry ~~

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/Kconfig Android_2.1/kernel/arch/arm/mach-msm/Kconfig

8a9

>	default 6355 if MSM_AMSS_VERSION_6355

25a27,29

>

>	config MSM_AMSS_VERSION_6355

>	bool "6.3.55"

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/Makefile Android_2.1/kernel/arch/arm/mach-msm/Makefile

34a35,36

> obj-$(CONFIG_MACH_SAPPHIRE) += htc_battery.o

> obj-$(CONFIG_MACH_SAPPHIRE) += htc_akm_cal.o htc_wifi_nvs.o htc_acoustic.o

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/qdsp5/adsp.h Android_2.1/kernel/arch/arm/mach-msm/qdsp5/adsp.h

130a131

> /* < youngzi mod for new radio begin */

133a135,139

> #elif (CONFIG_MSM_AMSS_VERSION == 6355)

> #define RPC_ADSP_RTOS_ATOM_VERS 0x10001 /* 65537 */

> #define RPC_ADSP_RTOS_MTOA_VERS 0x20001 /* 131073 */

> #define MSM_ADSP_DRIVER_NAME "rs3000000a:00010001"

> /* youngzi mod for new radio end > */

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/qdsp5/audmgr.h Android_2.1/kernel/arch/arm/mach-msm/qdsp5/audmgr.h

21a22,25

> /* < youngzi mod for new Radio begin */

> #elif CONFIG_MSM_AMSS_VERSION==6355

> #include "audmgr_new.h"

> /* youngzi mod for new Radio end > */

23d26

<

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/qdsp5/audmgr_new.h Android_2.1/kernel/arch/arm/mach-msm/qdsp5/audmgr_new.h

149a150,153

> /* < youngzi mod for new Radio begin */

> #if CONFIG_MSM_AMSS_VERSION==6355

> #define AUDMGR_VERS MSM_RPC_VERS(1,2)

> #else //CONFIG_MSM_AMSS_VERSION

150a155,156

> #endif //CONFIG_MSM_AMSS_VERSION

> /* youngzi mod for new Radio end > */

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/qdsp5/Makefile Android_2.1/kernel/arch/arm/mach-msm/qdsp5/Makefile

2c2,3

< ifeq ($(CONFIG_MSM_AMSS_VERSION_6350),y)

---

>

> ifeq ($(CONFIG_MSM_AMSS_VERSION_6355),y)

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/qdsp5/snd.c Android_2.1/kernel/arch/arm/mach-msm/qdsp5/snd.c

48a49,52

> /* < youngzi mod for new Radio begin */

> #elif CONFIG_MSM_AMSS_VERSION == 6355

> #define RPC_SND_VERS	MSM_RPC_VERS(1,1)

> /* youngzi mod for new Radio end > */

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/rpc_server_dog_keepalive.c Android_2.1/kernel/arch/arm/mach-msm/rpc_server_dog_keepalive.c

32a33,37

> /* < youngzi mod for new Radio begin */

> #elif CONFIG_MSM_AMSS_VERSION==6355

> #define DOG_KEEPALIVE_VERS 0x10001 /* 65537 */

> #define RPC_DOG_KEEPALIVE_BEACON 2

> /* youngzi mod for new Radio end > */

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/rpc_server_time_remote.c Android_2.1/kernel/arch/arm/mach-msm/rpc_server_time_remote.c

29a30,33

> /* < youngzi mod for new Radio begin */

> #elif CONFIG_MSM_AMSS_VERSION==6355

> #define TIME_REMOTE_MTOA_VERS 0x00010001

> /* youngzi mod for new Radio end > */

diff -r cyanogen-cm-kernel-de672b7/arch/arm/mach-msm/smd_private.h Android_2.1/kernel/arch/arm/mach-msm/smd_private.h

70a71,80

> /* < youngzi mod for new Radio begin */

> #if CONFIG_MSM_AMSS_VERSION == 6355

> #define SMSM_MAX_PORT_NAME_LEN 20

> uint32_t aArm_rpc_prog;

> uint32_t aArm_rpc_proc;

> char aArm_smd_port_name[SMSM_MAX_PORT_NAME_LEN];

> /* If the wakeup reason is GPIO then send the gpio info */

> uint32_t aArm_gpio_info;

> #endif

> /* youngzi mod for new Radio end > */

diff -r cyanogen-cm-kernel-de672b7/drivers/rtc/rtc-msm7x00a.c Android_2.1/kernel/drivers/rtc/rtc-msm7x00a.c

33c33,37

< #if CONFIG_MSM_AMSS_VERSION >= 6350

---

> /* < youngzi mod for new Radio begin */

> #if (CONFIG_MSM_AMSS_VERSION == 6355)

> #define APP_TIMEREMOTE_PDEV_NAME "rs30000048:00010001"

> #elif CONFIG_MSM_AMSS_VERSION >= 6350

> /* youngzi mod for new Radio end > */