depends on SCSC_CORE
---help---
This module adds support for using a ANT character device.
+
+config SCSC_BT_ADDRESS_IN_FILE
+ default N
+ tristate "SCSC MX BT support"
+ depends on SCSC_CORE
+ ---help---
+ Allow BT address to be read from a file
+
+config SCSC_BT_ADDRESS_FILENAME
+ string "BT address filename"
+ depends on SCSC_CORE
+ default "/mnt/vendor/efs/bluetooth/bt_addr"
+ ---help---
+ Select the named BT address override file.
static u64 bluetooth_address;
#ifdef CONFIG_ARCH_EXYNOS
-static char *bluetooth_address_fallback = "00:00:00:00:00:00";
+static char bluetooth_address_fallback[] = "00:00:00:00:00:00";
#endif
static u32 bt_info_trigger;
static u32 bt_info_interrupt;
"Bluetooth address");
#ifdef CONFIG_ARCH_EXYNOS
-module_param(bluetooth_address_fallback, charp, 0444);
+module_param_string(bluetooth_address_fallback, bluetooth_address_fallback,
+ sizeof(bluetooth_address_fallback), 0444);
MODULE_PARM_DESC(bluetooth_address_fallback,
"Bluetooth address as proposed by the driver");
#endif
(bluetooth_address & 0x000000FFFFFF);
}
- /* Request the EFS Bluetooth address file */
+#ifdef SCSC_BT_ADDR
+ /* Request the Bluetooth address file */
SCSC_TAG_DEBUG(BT_COMMON,
"loading Bluetooth address configuration file: "
SCSC_BT_ADDR "\n");
mx140_release_file(common_service.maxwell_core, firm);
firm = NULL;
}
+#endif
#ifdef CONFIG_SCSC_DEBUG
SCSC_TAG_DEBUG(BT_COMMON, "Bluetooth address: %04X:%02X:%06X\n",
#ifdef CONFIG_SCSC_BT_BLUEZ
#define SCSC_BT_ADDR "/csa/bluetooth/.bd_addr"
#define SCSC_BT_ADDR_LEN (3)
-#else
-#define SCSC_BT_ADDR "/mnt/vendor/efs/bluetooth/bt_addr"
+#elif defined CONFIG_SCSC_BT_ADDRESS_IN_FILE
+#define SCSC_BT_ADDR CONFIG_SCSC_BT_ADDRESS_FILENAME
#define SCSC_BT_ADDR_LEN (6)
#endif