summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJianzheng Zhou <jianzheng.zhou@freescale.com>2013-03-27 10:56:05 +0800
committerJianzheng Zhou <jianzheng.zhou@freescale.com>2013-03-27 10:56:05 +0800
commitbd5372e2520c23d50c0a78bd09104b89ca1b523f (patch)
tree11734c28cc6990449ad2907167e9278b3b15f0b1 /arch
parent9e0784ab2576c130b01dc457175b1216e0d0d10f (diff)
ENGR00256086 BT:clear some tweaks for BT enable
1. Add rfkill support in kernel config. 2. Default enable BT. add mutual exclusion for BT reset and charger's LED GPIO. For they are optional to be selected only one in one board. Let it be decided by board config. Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/configs/imx6_android_defconfig13
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabresd.c8
2 files changed, 14 insertions, 7 deletions
diff --git a/arch/arm/configs/imx6_android_defconfig b/arch/arm/configs/imx6_android_defconfig
index 49ab5357dfba..b45bb2de67f3 100644
--- a/arch/arm/configs/imx6_android_defconfig
+++ b/arch/arm/configs/imx6_android_defconfig
@@ -325,6 +325,7 @@ CONFIG_IMX_HAVE_PLATFORM_IMX_PCIE=y
# CONFIG_ARCH_MX51 is not set
CONFIG_ARCH_MX6=y
CONFIG_FORCE_MAX_ZONEORDER=14
+CONFIG_MACH_IMX_BLUETOOTH_RFKILL=y
CONFIG_ARCH_MX6Q=y
CONFIG_SOC_IMX6Q=y
CONFIG_MACH_MX6Q_ARM2=y
@@ -413,7 +414,8 @@ CONFIG_ARM_GIC=y
CONFIG_ARM_AMBA=y
CONFIG_PCI=y
CONFIG_PCI_SYSCALL=y
-# CONFIG_ARCH_SUPPORTS_MSI is not set
+CONFIG_ARCH_SUPPORTS_MSI=y
+# CONFIG_PCI_MSI is not set
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
@@ -1067,6 +1069,7 @@ CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
# CONFIG_MTD_PHYSMAP_COMPAT is not set
+# CONFIG_MTD_IMX6X_WEIMNOR is not set
# CONFIG_MTD_ARM_INTEGRATOR is not set
# CONFIG_MTD_INTEL_VR_NOR is not set
# CONFIG_MTD_PLATRAM is not set
@@ -2454,6 +2457,7 @@ CONFIG_USB_OTG=y
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_XHCI_HCD is not set
CONFIG_USB_EHCI_HCD=y
+# CONFIG_FSL_USB_TEST_MODE is not set
CONFIG_USB_EHCI_ARC=y
CONFIG_USB_EHCI_ARC_OTG=y
# CONFIG_USB_EHCI_ARC_HSIC is not set
@@ -3395,9 +3399,6 @@ CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_USER_API_SKCIPHER=y
CONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_HIFN_795X is not set
-# CONFIG_CRYPTO_DEV_FSL_CAAM is not set
-# CONFIG_CRYPTO_DEV_FSL_CAAM_SM is not set
-CONFIG_BINARY_PRINTF=y
CONFIG_CRYPTO_DEV_FSL_CAAM=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=y
@@ -3407,7 +3408,9 @@ CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set
-# CONFIG_BINARY_PRINTF is not set
+# CONFIG_CRYPTO_DEV_FSL_CAAM_SM is not set
+# CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO is not set
+CONFIG_BINARY_PRINTF=y
#
# Library routines
diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c
index 9411aeacca1f..72f5c3c07308 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -207,6 +207,7 @@ static int mma8451_position;
static int mag3110_position = 1;
static int max11801_mode = 1;
static int caam_enabled;
+static int uart5_enabled;
extern char *gp_reg_id;
extern char *soc_reg_id;
@@ -1584,9 +1585,13 @@ static struct platform_device imx6q_gpio_led_device = {
}
};
+/* For BT_PWD_L is conflict with charger's LED trigger gpio on sabresd_revC.
+ * add mutual exclusion here to be decided which one to be used by board config
+ */
static void __init imx6q_add_device_gpio_leds(void)
{
- platform_device_register(&imx6q_gpio_led_device);
+ if (!uart5_enabled)
+ platform_device_register(&imx6q_gpio_led_device);
}
#else
static void __init imx6q_add_device_gpio_leds(void) {}
@@ -1811,7 +1816,6 @@ static iomux_v3_cfg_t mx6q_uart5_pads[] = {
MX6Q_PAD_GPIO_2__GPIO_1_2,
};
-static int uart5_enabled;
static int __init uart5_setup(char * __unused)
{
uart5_enabled = 1;