]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mxs-auart: distinguish the different SOCs
authorHuang Shijie <b32955@freescale.com>
Fri, 16 Nov 2012 08:03:52 +0000 (16:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 12:41:55 +0000 (04:41 -0800)
commit965611cd60378fbd32ba5429d380fe95a13b7f01
treeba7cc3be1f4bc01b92b0f193f10ba6fbcbd4b5f2
parent0767a528e319d01c968f77c479fd5d64a66aa31f
serial: mxs-auart: distinguish the different SOCs

The current mxs-auart driver is used for both mx23 and mx28.

But in mx23, the DMA has a bug(see errata:2836). We can not add the
DMA support in mx23, but we can add DMA support to auart in mx28.

So in order to add the DMA support for the auart in mx28, we should
distinguish the distinguish SOCs.

This patch adds a new platform_device_id table and a inline function
is_imx28_auart() to distinguish the mx23 and mx28.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c