提交 25b4a38f 编写于 作者: A Andy Shevchenko 提交者: Darren Hart

platform/x86: intel_mid_powerbtn: Use SCU IPC directly

On older Intel MID platforms is using SCU IPC library beneath MSIC
calls.

To make access unified between old and new platforms use SCU IPC library
directly. It's safe since serialization is done in the library.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 ca45ba06
...@@ -64,7 +64,7 @@ static int mid_pbstat(struct mid_pb_ddata *ddata, int *value) ...@@ -64,7 +64,7 @@ static int mid_pbstat(struct mid_pb_ddata *ddata, int *value)
int ret; int ret;
u8 pbstat; u8 pbstat;
ret = intel_msic_reg_read(ddata->pbstat_addr, &pbstat); ret = intel_scu_ipc_ioread8(ddata->pbstat_addr, &pbstat);
if (ret) if (ret)
return ret; return ret;
...@@ -76,7 +76,7 @@ static int mid_pbstat(struct mid_pb_ddata *ddata, int *value) ...@@ -76,7 +76,7 @@ static int mid_pbstat(struct mid_pb_ddata *ddata, int *value)
static int mid_irq_ack(struct mid_pb_ddata *ddata) static int mid_irq_ack(struct mid_pb_ddata *ddata)
{ {
return intel_msic_reg_update(ddata->mirqlvl1_addr, 0, MSIC_PWRBTNM); return intel_scu_ipc_update_register(ddata->mirqlvl1_addr, 0, MSIC_PWRBTNM);
} }
static int mrfld_setup(struct mid_pb_ddata *ddata) static int mrfld_setup(struct mid_pb_ddata *ddata)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册