bluetooth: UART based driver no longer needs to set regs and irq

Now that UART drivers are configured internally when it comes to
hardware specific information such as IRQ and registers (or mmaped
registers), bluetooth UART driver no longer needs to do it by itself. It
only requires to select the port it wants to use.

Change-Id: I5a30500f4b6f4155292609d0ed4a758f91930817
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-05-20 14:41:20 +03:00 committed by Anas Nashif
parent 088e0a980f
commit ea4c3d1c0f
4 changed files with 0 additions and 5 deletions

View file

@ -228,7 +228,6 @@ This header file is used to specify and describe board-level aspects for the
#define CONFIG_BLUETOOTH_UART_BAUDRATE 115200
#define CONFIG_BLUETOOTH_UART_IRQ IRQ_UART1_STATUS
#define CONFIG_BLUETOOTH_UART_INT_PRI 3
#define CONFIG_BLUETOOTH_UART_REGS PERIPH_ADDR_BASE_UART1
#define CONFIG_BLUETOOTH_UART_FREQ SYSCLK_DEFAULT_IOSC_HZ
#define EXC_FROM_IRQ(irq) ((irq) + 16)

View file

@ -146,7 +146,6 @@ the 'ti_lm3s6965' BSP.
#define CONFIG_BLUETOOTH_UART_BAUDRATE 115200
#define CONFIG_BLUETOOTH_UART_IRQ IRQ_UART1
#define CONFIG_BLUETOOTH_UART_INT_PRI 3
#define CONFIG_BLUETOOTH_UART_REGS PERIPH_ADDR_BASE_UART1
#define CONFIG_BLUETOOTH_UART_FREQ SYSCLK_DEFAULT_IOSC_HZ
#define EXC_FROM_IRQ(irq) ((irq) + 16)

View file

@ -148,7 +148,6 @@ the 'generic_pc' BSP.
/* Bluetooth UART definitions */
#define CONFIG_BLUETOOTH_UART_INDEX 1
#define CONFIG_BLUETOOTH_UART_REGS COM2_BASE_ADRS
#define CONFIG_BLUETOOTH_UART_IRQ COM2_INT_LVL
#define CONFIG_BLUETOOTH_UART_INT_PRI COM2_INT_PRI
#define CONFIG_BLUETOOTH_UART_FREQ UART_XTAL_FREQ

View file

@ -273,8 +273,6 @@ static int bt_uart_open()
.options = 0,
.sys_clk_freq = CONFIG_BLUETOOTH_UART_FREQ,
.baud_rate = CONFIG_BLUETOOTH_UART_BAUDRATE,
.regs = CONFIG_BLUETOOTH_UART_REGS,
.irq = CONFIG_BLUETOOTH_UART_IRQ,
.int_pri = CONFIG_BLUETOOTH_UART_INT_PRI,
};