Commit c243e528 authored by David Brown's avatar David Brown

Merge branch 'msm-uart' into for-next

* msm-uart:
  serial: msm: Add support for UARTDM cores
  msm: Add name field to UART resources
parents ba5499eb ec8f29e7
...@@ -38,6 +38,7 @@ static struct resource resources_uart1[] = { ...@@ -38,6 +38,7 @@ static struct resource resources_uart1[] = {
.start = MSM_UART1_PHYS, .start = MSM_UART1_PHYS,
.end = MSM_UART1_PHYS + MSM_UART1_SIZE - 1, .end = MSM_UART1_PHYS + MSM_UART1_SIZE - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.name = "uart_resource"
}, },
}; };
...@@ -51,6 +52,7 @@ static struct resource resources_uart2[] = { ...@@ -51,6 +52,7 @@ static struct resource resources_uart2[] = {
.start = MSM_UART2_PHYS, .start = MSM_UART2_PHYS,
.end = MSM_UART2_PHYS + MSM_UART2_SIZE - 1, .end = MSM_UART2_PHYS + MSM_UART2_SIZE - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.name = "uart_resource"
}, },
}; };
...@@ -64,6 +66,7 @@ static struct resource resources_uart3[] = { ...@@ -64,6 +66,7 @@ static struct resource resources_uart3[] = {
.start = MSM_UART3_PHYS, .start = MSM_UART3_PHYS,
.end = MSM_UART3_PHYS + MSM_UART3_SIZE - 1, .end = MSM_UART3_PHYS + MSM_UART3_SIZE - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.name = "uart_resource"
}, },
}; };
......
/* /*
* Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved. * Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
* *
* This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and
...@@ -41,6 +41,7 @@ static struct resource resources_uart2[] = { ...@@ -41,6 +41,7 @@ static struct resource resources_uart2[] = {
.start = MSM_UART2_PHYS, .start = MSM_UART2_PHYS,
.end = MSM_UART2_PHYS + MSM_UART2_SIZE - 1, .end = MSM_UART2_PHYS + MSM_UART2_SIZE - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.name = "uart_resource"
}, },
}; };
......
/* /*
* Copyright (C) 2008 Google, Inc. * Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved. * Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
* *
* This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and
...@@ -38,6 +38,7 @@ static struct resource resources_uart3[] = { ...@@ -38,6 +38,7 @@ static struct resource resources_uart3[] = {
.start = MSM_UART3_PHYS, .start = MSM_UART3_PHYS,
.end = MSM_UART3_PHYS + MSM_UART3_SIZE - 1, .end = MSM_UART3_PHYS + MSM_UART3_SIZE - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
.name = "uart_resource"
}, },
}; };
......
This diff is collapsed.
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* *
* Copyright (C) 2007 Google, Inc. * Copyright (C) 2007 Google, Inc.
* Author: Robert Love <rlove@google.com> * Author: Robert Love <rlove@google.com>
* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
* *
* This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and
...@@ -54,6 +55,7 @@ ...@@ -54,6 +55,7 @@
#define UART_CSR_300 0x22 #define UART_CSR_300 0x22
#define UART_TF 0x000C #define UART_TF 0x000C
#define UARTDM_TF 0x0070
#define UART_CR 0x0010 #define UART_CR 0x0010
#define UART_CR_CMD_NULL (0 << 4) #define UART_CR_CMD_NULL (0 << 4)
...@@ -64,14 +66,17 @@ ...@@ -64,14 +66,17 @@
#define UART_CR_CMD_START_BREAK (5 << 4) #define UART_CR_CMD_START_BREAK (5 << 4)
#define UART_CR_CMD_STOP_BREAK (6 << 4) #define UART_CR_CMD_STOP_BREAK (6 << 4)
#define UART_CR_CMD_RESET_CTS (7 << 4) #define UART_CR_CMD_RESET_CTS (7 << 4)
#define UART_CR_CMD_RESET_STALE_INT (8 << 4)
#define UART_CR_CMD_PACKET_MODE (9 << 4) #define UART_CR_CMD_PACKET_MODE (9 << 4)
#define UART_CR_CMD_MODE_RESET (12 << 4) #define UART_CR_CMD_MODE_RESET (12 << 4)
#define UART_CR_CMD_SET_RFR (13 << 4) #define UART_CR_CMD_SET_RFR (13 << 4)
#define UART_CR_CMD_RESET_RFR (14 << 4) #define UART_CR_CMD_RESET_RFR (14 << 4)
#define UART_CR_CMD_PROTECTION_EN (16 << 4)
#define UART_CR_CMD_STALE_EVENT_ENABLE (80 << 4)
#define UART_CR_TX_DISABLE (1 << 3) #define UART_CR_TX_DISABLE (1 << 3)
#define UART_CR_TX_ENABLE (1 << 3) #define UART_CR_TX_ENABLE (1 << 2)
#define UART_CR_RX_DISABLE (1 << 3) #define UART_CR_RX_DISABLE (1 << 1)
#define UART_CR_RX_ENABLE (1 << 3) #define UART_CR_RX_ENABLE (1 << 0)
#define UART_IMR 0x0014 #define UART_IMR 0x0014
#define UART_IMR_TXLEV (1 << 0) #define UART_IMR_TXLEV (1 << 0)
...@@ -110,9 +115,20 @@ ...@@ -110,9 +115,20 @@
#define UART_SR_RX_FULL (1 << 1) #define UART_SR_RX_FULL (1 << 1)
#define UART_SR_RX_READY (1 << 0) #define UART_SR_RX_READY (1 << 0)
#define UART_RF 0x000C #define UART_RF 0x000C
#define UART_MISR 0x0010 #define UARTDM_RF 0x0070
#define UART_ISR 0x0014 #define UART_MISR 0x0010
#define UART_ISR 0x0014
#define UART_ISR_TX_READY (1 << 7)
#define GSBI_CONTROL 0x0
#define GSBI_PROTOCOL_CODE 0x30
#define GSBI_PROTOCOL_UART 0x40
#define GSBI_PROTOCOL_IDLE 0x0
#define UARTDM_DMRX 0x34
#define UARTDM_NCF_TX 0x40
#define UARTDM_RX_TOTAL_SNAP 0x38
#define UART_TO_MSM(uart_port) ((struct msm_port *) uart_port) #define UART_TO_MSM(uart_port) ((struct msm_port *) uart_port)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment