rx51: Add SSI related support to board

Add OMAP SSI configuration for the board.
Add CMT device to the board.
Add HSI/SSI device clients to the board.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
rx51: Set CMT hardware version in platform data

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: omap_ssi: Introducing OMAP SSI driver

Introduces the OMAP SSI driver in the kernel.

The Synchronous Serial Interface (SSI) is a legacy version
of HSI. As in the case of HSI, it is mainly used to connect
Application engines (APE) with cellular modem engines (CMT)
in cellular handsets.

It provides a multichannel, full-duplex, multi-core communication
with no reference clock. The OMAP SSI block is capable of reaching
speeds of 110 Mbit/s.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: omap_ssi: Add OMAP SSI to the kernel configuration

Add OMAP SSI device and driver to the kernel configuration

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: ssip: Introducing SSI protocol (aka McSAAB)

Introduces the SSI protocol aka McSAAB.

The SSI protocol is a link layer protocol for SSI, which
is used to transport Phonet messages between APE and CMT.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: ssip: Add SSI protocol to the kernel configuration

Add the SSI protocol aka McSAAB to the kernel configuration.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
CMT: Introduces the Nokia CMT driver.

Add the Nokia CMT driver. The CMT driver takes care of the
APE-CMT hardware outside the SSI/HSI communication.

The initial implementation introduces a CMT reset notification
interface for protocols drivers like cmt_speech and ssi_protocol.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
CMT: Add Nokia CMT driver to the configuration

Add the Nokia CMT driver to the kernel configuration.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
CMT: Add hardware version field to driver platform data platform

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: cmt_speech: Add CMT_SPEECH driver

Introduces the  cmt_speech driver. This driver implements
a character device interface for transferring speech data
frames over HSI/SSI.

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: cmt_speech: Add CMT SPEECH to the configuration

Add CMT SPEECH to the kernel configuration.

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: ssip: add ssip_slave_running() to ssi_protocol interface

Allow clients depending on ssi_protocol to query current status
of ssi_protocol.

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Acked-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: cmt_speech: avoid GFP_ATOMIC in cs_char_open

Also fixes a bug in updating 'opened' state in case cs_hsi_start()
fails when opening the char device.

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: cmt_speech: return error if HSI port not configured

If HSI port is not configured by ssi_protocol, return an error from
char device open.

Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com>
Acked-by: Carlos Chinea <carlos.chinea@nokia.com>
Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: omap_ssi: OMAP SSI driver forward port

Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: ssip: SSI protocol forward port

Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>
HSI: cmt_speech: forward port

Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com>