x86: cpu: introduce scu_ipc_raw_command()
authorGeorgii Staroselskii <georgii.staroselskii@emlid.com>
Tue, 11 Sep 2018 10:31:06 +0000 (13:31 +0300)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 17 Sep 2018 06:34:15 +0000 (14:34 +0800)
commit224742a390f48c64aac75095c7ac251077f07bdb
treebdf59557fae58b19e4e267d666e971612b405cce
parent41f4e4302fbaa426f0ca34720f438f74d3304e79
x86: cpu: introduce scu_ipc_raw_command()

This interface will be used to configure properly some pins on
Merrifield that are shared with SCU.

scu_ipc_raw_command() writes SPTR and DPTR registers before sending
a command to SCU.

This code has been ported from Linux work done by Andy Shevchenko.

Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/scu.h
arch/x86/lib/scu.c