1. codegen配置

2. ProjectConfig

CUSTOM_HAL_ANT = mt6630_ant_m1

CUSTOM_HAL_COMBO = mt6630

MTK_BT_CHIP = MTK_MT6630

MTK_COMBO_CHIP = MT6630

MTK_FM_CHIP = MT6630_FM

MTK_FM_TX_SUPPORT = yes

MTK_GPS_CHIP = MTK_GPS_MT6630

MTK_MERGE_INTERFACE_SUPPORT = yes

MTK_WAPI_SUPPORT = no

MTK_WLAN_CHIP = MT6630

MTK_SDIOAUTOK_SUPPORT = yes

3. hiteq8735a_tb_n.dts

/* Connectivity */
mediatek,connectivity-combo {
compatible = "mediatek,connectivity-combo";
/*gpio_combo_ldo_en_pin = <&pio 0xffff 0>; /*0) GPIO_COMBO_LDO_EN_PIN */
/*gpio_combo_pmuv28_en_pin = <&pio 0xffff 0>; /* 1) GPIO_COMBO_PMUV28_EN_PIN */
gpio_combo_pmu_en_pin = <&pio 21 0>; /* 2) GPIO_COMBO_PMU_EN_PIN */
gpio_combo_rst_pin = <&pio 186 0>; /* 3) GPIO_COMBO_RST_PIN pin */
/*gpio_combo_bgf_eint_pin = <&pio 0xffff 0>; /* 4) GPIO_COMBO_BGF_EINT_PIN */
gpio_wifi_eint_pin = <&pio 20 0>; /* 5) GPIO_WIFI_EINT_PIN */
/*gpio_all_eint_pin = <&pio 0xffff 0>; /* 6) GPIO_ALL_EINT_PIN */
gpio_combo_urxd_pin = <&pio 74 0>; /* 7) GPIO_COMBO_URXD_PIN */
gpio_combo_utxd_pin = <&pio 75 0>; /* 8) GPIO_COMBO_UTXD_PIN */
gpio_pcm_daiclk_pin = <&pio 184 0>; /* 9) GPIO_PCM_DAICLK_PIN */
gpio_pcm_daipcmin_pin = <&pio 185 0>; /* 10) GPIO_PCM_DAIPCMIN_PIN */
gpio_pcm_daipcmout_pin = <&pio 187 0>; /* 11) GPIO_PCM_DAIPCMOUT_PIN */
gpio_pcm_daisync_pin = <&pio 188 0>; /* 12) GPIO_PCM_DAISYNC_PIN */
/*gpio_combo_i2s_ck_pin = <&pio 0xffff 0>; /* 13) GPIO_COMBO_I2S_CK_PIN */
/*gpio_combo_i2s_ws_pin = <&pio 0xffff 0>; /* 14) GPIO_COMBO_I2S_WS_PIN */
/*gpio_combo_i2s_dat_pin = <&pio 0xffff 0>; /* 15) GPIO_COMBO_I2S_DAT_PIN */
gpio_gps_sync_pin = <&pio 19 0>; /* 16) GPIO_GPS_SYNC_PIN */
gpio_gps_lna_pin = <&pio 77 0>; /* 17) GPIO_GPS_LNA_PIN */
pinctrl-names = "gpio_pmu_en_pull_dis",
"gpio_pmu_en_in_pulldown",
"gpio_rst_pull_dis",
"gpio_wifi_eint_in_pull_dis",
"gpio_wifi_eint_in_pullup",
"gpio_urxd_uart_pull_dis",
"gpio_urxd_gpio_in_pullup",
"gpio_urxd_gpio_in_pull_dis",
"gpio_utxd_uart_pull_dis",
"gpio_pcm_daiclk_pull_dis",
"gpio_pcm_daipcmin_pull_dis",
"gpio_pcm_daipcmout_pull_dis",
"gpio_pcm_daisync_pull_dis",
"gpio_gps_sync_pull_dis",
"gpio_gps_lna_pull_dis";
pinctrl-0 = <&pcfg_combo_pmu_en_pull_dis_cfgs>;
pinctrl-1 = <&pcfg_combo_pmu_en_in_pulldown_cfgs>;
pinctrl-2 = <&pcfg_combo_rst_pull_dis_cfgs>;
pinctrl-3 = <&pcfg_combo_wifi_eint_in_pull_dis_cfgs>;
pinctrl-4 = <&pcfg_combo_wifi_eint_in_pullup_cfgs>;
pinctrl-5 = <&pcfg_combo_urxd_uart_pull_dis_cfgs>;
pinctrl-6 = <&pcfg_combo_urxd_gpio_in_pullup_cfgs>;
pinctrl-7 = <&pcfg_combo_urxd_gpio_in_pull_dis_cfgs>;
pinctrl-8 = <&pcfg_combo_utxd_uart_pull_dis_cfgs>;
pinctrl-9 = <&pcfg_combo_pcm_daiclk_pull_dis_cfgs>;
pinctrl-10 = <&pcfg_combo_pcm_daipcmin_pull_dis_cfgs>;
pinctrl-11 = <&pcfg_combo_pcm_daipcmout_pull_dis_cfgs>;
pinctrl-12 = <&pcfg_combo_pcm_daisync_pull_dis_cfgs>;
pinctrl-13 = <&pcfg_combo_gps_sync_pull_dis_cfgs>;
pinctrl-14 = <&pcfg_combo_gps_lna_pull_dis_cfgs>;
interrupt-parent = <&eintc>;
interrupts = < 20 IRQ_TYPE_LEVEL_LOW >; /* WIFI EINT num is 1 active low level-sensitive */
debounce = <20 0>;
status = "okay";
};
};

/* ++++++ Connectivity GPIO configs ++++++ */
&pio {
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
pcfg_combo_pmu_en_pull_dis_cfgs:cfg_mode1_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO21__FUNC_GPIO21>;
bias-disable;
};
};

pcfg_combo_pmu_en_in_pulldown_cfgs:cfg_mode1_in_pulldown {
combo_pins {
pinmux = <PINMUX_GPIO21__FUNC_GPIO21>;
bias-pull-down;
};
};

pcfg_combo_rst_pull_dis_cfgs:cfg_mode1_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO186__FUNC_GPIO186>;
bias-disable;
};
};

pcfg_combo_wifi_eint_in_pull_dis_cfgs:cfg_mode1_in_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO20__FUNC_GPIO20>;
input-enable;
bias-disable;
};
};
pcfg_combo_wifi_eint_in_pullup_cfgs:cfg_mode1_in_pullup {
combo_pins {
pinmux = <PINMUX_GPIO20__FUNC_GPIO20>;
input-enable;
bias-pull-up;
};
};

pcfg_combo_urxd_uart_pull_dis_cfgs:cfg_mode2_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO74__FUNC_URXD0>;
bias-disable;
};
};
pcfg_combo_urxd_gpio_in_pullup_cfgs:cfg_mode1_in_pullup {
combo_pins {
pinmux = <PINMUX_GPIO74__FUNC_URXD0>;
input-enable;
bias-pull-up;
};
};
pcfg_combo_urxd_gpio_in_pull_dis_cfgs:cfg_mode1_in_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO74__FUNC_URXD0>;
input-enable;
bias-disable;
};
};

pcfg_combo_utxd_uart_pull_dis_cfgs:cfg_mode2_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO75__FUNC_UTXD0>;
bias-disable;
};
};

pcfg_combo_pcm_daiclk_pull_dis_cfgs:cfg_mode3_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO184__FUNC_PCM0_CLK>;
bias-disable;
};
};

pcfg_combo_pcm_daipcmin_pull_dis_cfgs:cfg_mode3_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO185__FUNC_PCM0_DI>;
bias-disable;
};
};

pcfg_combo_pcm_daipcmout_pull_dis_cfgs:cfg_mode3_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO187__FUNC_PCM0_DO>;
bias-disable;
};
};

pcfg_combo_pcm_daisync_pull_dis_cfgs:cfg_mode3_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO188__FUNC_PCM0_SYNC>;
bias-disable;
};
};

pcfg_combo_gps_sync_pull_dis_cfgs:cfg_mode1_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO19__FUNC_GPS_FRAME_SYNC>;
bias-disable;
};
};
pcfg_combo_gps_lna_pull_dis_cfgs:cfg_mode1_pull_dis {
combo_pins {
pinmux = <PINMUX_GPIO77__FUNC_GPIO77>;
bias-disable;
};
};

state_default:pinctrl {
/* ++++++ Connectivity GPIO configs ++++++ */
combo_wifi_eint_pins {
pinmux = <PINMUX_GPIO20__FUNC_GPIO20>;
bias-pull-up;
};

combo_pcm_pins {
pinmux = <PINMUX_GPIO184__FUNC_MRG_CLK>,
<PINMUX_GPIO185__FUNC_MRG_DI>,
<PINMUX_GPIO187__FUNC_MRG_DO>,
<PINMUX_GPIO188__FUNC_MRG_SYNC>;
bias-disable;
};
/* ----- Connectivity GPIO configs ----- */
};
/* ------ Connectivity GPIO configs ------ */
};

4. hiteq8735a_tb_n_debug_defconfig

CONFIG_MTK_COMBO=y
CONFIG_MTK_COMBO_CHIP_MT6630=y
CONFIG_MTK_COMBO_CHIP="MT6630"
CONFIG_MTK_COMBO_COMM=y
CONFIG_MTK_COMBO_COMM_SDIO=y
CONFIG_MTK_COMBO_BT=y
CONFIG_MTK_COMBO_GPS=y
CONFIG_MTK_COMBO_WIFI=y
CONFIG_MTK_COMBO_ANT=y
CONFIG_SDIOAUTOK_SUPPORT=y
CONFIG_MTK_MERGE_INTERFACE_SUPPORT=y
# CONFIG_MTK_WAPI_SUPPORT is not set
CONFIG_MTK_GPS_SUPPORT=y
CONFIG_MTK_FMRADIO=y
CONFIG_MTK_FM_CHIP="MT6630_FM"

5. BoardConfig.mk

添加:

ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek)
BOARD_CONNECTIVITY_MODULE := MT6630
endif

6. init.project.rc

添加:

#autok
chown root system /sys/autok/debug
chown root system /sys/autok/param_count
chown root system /sys/autok/ready
chown root system /sys/autok/ss_corner
chown root system /sys/autok/suggest_vol
chown root system /sys/autok/stage1/2/DONE
chown root system /sys/autok/stage1/2/PARAMS
chown root system /sys/autok/stage1/2/VOLTAGE
chown root system /sys/autok/stage1/2/LOG
chown root system /sys/autok/stage2/2

# For WiFi High Speed calibration
service autokd /vendor/bin/autokd
class core
user system
group system

service dhcpcd_eth0 /system/bin/dhcpcd -BK -dd
class main
user dhcp
group net_admin net_raw
disabled
oneshot

7. meta_init.project.rc

#autok
chown root system /sys/autok/debug
chown root system /sys/autok/param_count
chown root system /sys/autok/ready
chown root system /sys/autok/ss_corner
chown root system /sys/autok/suggest_vol
chown root system /sys/autok/stage1/2/DONE
chown root system /sys/autok/stage1/2/PARAMS
chown root system /sys/autok/stage1/2/VOLTAGE
chown root system /sys/autok/stage1/2/LOG
chown root system /sys/autok/stage2/2

# For WiFi High Speed calibration
service autokd /vendor/bin/autokd
class core
user system
group system

8. device/mediatek.mt6735/device.mk

添加:

PRODUCT_PROPERTY_OVERRIDES += gps.solution.combo.chip=1

9. vendor/mediatek/proprietary/hardware/connectivity/wlan/firmware/Android.mk

else ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), MT6630)
# remove prefix and subffix chars, only left numbers.
WLAN_CHIP_ID := MT6630

MT8735A平台配置MT6630的更多相关文章

  1. 自学华为IoT物联网_10 IoT联接管理平台配置及开发实验1

    点击返回自学华为IoT物流网 自学华为IoT物联网_10 IoT联接管理平台配置及开发实验1 实验1:OceanConnect平台实验             通过基本的编程操作与配置,帮助读者熟悉O ...

  2. Hadoop平台配置汇总

    Hadoop平台配置汇总 @(Hadoop) Hadoop hadoop-env.sh和yarn-env.sh中export log和pid的dir即可和JAVA_HOME. core-site.xm ...

  3. 基于zookeeper集群的云平台-配置中心的功能设计

    最近准备找工作面试,就研究了下基于zookeeper集群的配置中心. 下面是自己设想的关于开源的基于zookeeper集群的云平台-配置中心的功能设计.大家觉得哪里有问题,请提出宝贵的意见和建议,谢谢 ...

  4. 快速为不同 Git 平台配置用户

    在 ~ 目录下创建 config 文件可以为项目配置默认的用户信息,但如果希望经常切换,那么最好就是通过命令为项目单独设置用户. 我使用的 shell 是 zsh, 所以我在 ~/.zshrc 文件中 ...

  5. CDH构建大数据平台-配置集群的Kerberos认证安全

     CDH构建大数据平台-配置集群的Kerberos认证安全 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 当平台用户使用量少的时候我们可能不会在一集群安全功能的缺失,因为用户少,团 ...

  6. Git同账号多平台配置

    最近工作中使用到了Git,虽然以前学习过,但是已经忘的差不多了,遂将本次配置过程整理成笔记以备忘 生成公钥 ssh-keygen -t rsa -C "gana10007@163.com&q ...

  7. 目标平台、活动平台 配置,出现未能加载文件或程序集“xxx”或它的某一个依赖项报错

    今天在做动态加载程序集的时候,发现明明程序集存在的情况下,还是依然报“未能加载文件或程序集“xxx”或它的某一个依赖项报错”的错误,排除了程序和配置的错误后,怀疑是否是环境的问题,于是百度加msdn后 ...

  8. MacOS10.9平台配置Appium+Java环境

    1) 安装JDK 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html   ...

  9. Windows平台配置Appium+Java环境

    1) 安装JDK 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 安装 ...

随机推荐

  1. Cucumber+Rest Assured快速搭建api自动化测试平台

    转载:http://www.jianshu.com/p/6249f9a9e9c4 什么是Cucumber?什么是BDD?这里不细讲,不懂的直接查看官方:https://cucumber.io/ 什么是 ...

  2. STP 根桥、根port、指定port是怎样选举的

    学习CCNA过程中,对交换机的根桥.跟port以及指定port选举有些迷糊.也度娘了一番,总认为一部分人解释的不够全面精细.通过细致研究终于有了自己的理解,分享给大家,假设纰漏,欢迎指正. STP收敛 ...

  3. [ssh新闻公布系统三]存储新闻

    一.存储新闻dao方法 在NewsDao.java中新增存储新闻的saveOrupdate方法 public void saveOrupdate(News news){ getSession().sa ...

  4. Resharper 8.2的“安装”问题

    概述 完美解决Resharper 8.2的“安装”问题和VS2012写Javascript语句无法智能提示的问题: 目录 引言——Resharper 简介——安装——VS2012智能提示测试 引言 最 ...

  5. PHP中的$_SERVER['PATH_INFO']

    PHP中的全局变量$_SERVER['PATH_INFO']是一个很有用的参数,众多的CMS系统在美化自己的URL的时候,都用到了这个参数. 对于下面这个网址: http://www.test.com ...

  6. 使用 Kingfisher 处理网络图片的读取与缓存

    Kingfisher 是一个读取网络图片和处理本地缓存的开源库,由 onevcat 开发.提到图片缓存库,那么熟悉 Objective-C 开发的同学,可能会想起 SDWebImage. 没错,Kin ...

  7. vs2012停止调试长时间不响应问题解决方法

    在vs2012命令提示符下,运行devenv.exe /resetuserdata又一次设置下环境解决.

  8. C语言malloc

    在子函数里面动态申请的内存不会自动被系统收回的,因为这些空间在堆里面,而不是栈,平常所说的不能返回指向栈的指针,比如在子函数里面定义一个字符指针,指向常量"hello"因为函数调用 ...

  9. NXP 公司的 RFID 卡

    NXP 公司的 RFID 卡 NXP RFID MIFARE 产品概览   MIFARE 系列: Mifare Ultralight,简称 MF0. Mifare Classic,简称 MF1 M ...

  10. 从头认识java-15.1 填充容器(2)-利用Collection的addAll方式

    接着上一章节,我们继续介绍填充容器. 这一章节我们结束还有一种填充容器的方式:addAll 样例: package com.ray.ch15; import java.util.ArrayList; ...