blob: 9b64aa7cc02f94922bf034a0a2db0fa7d81e0aa0 [file] [log] [blame]
Andrew Jeffery78847ae2018-08-03 13:35:22 +09301// SPDX-License-Identifier: Apache-2.0
2// Copyright (C) 2018 IBM Corp.
Deepak Kodihalli017e45c2017-07-12 01:06:30 -05003
4#define _GNU_SOURCE
5
Andrew Jefferycd186112018-08-08 10:47:55 +09306#include "lpc.h"
Deepak Kodihalli017e45c2017-07-12 01:06:30 -05007
Andrew Jeffery26558db2018-08-10 00:22:38 +09308struct mbox_context;
9
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050010/*
Andrew Jeffery17971e42018-08-08 16:36:10 +093011 * lpc_reset() - Reset the lpc bus mapping
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050012 * @context: The mbox context pointer
13 *
14 * Return: 0 on success otherwise negative error code
15 */
Andrew Jeffery17971e42018-08-08 16:36:10 +093016int lpc_reset(struct mbox_context *context)
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050017{
Andrew Jefferyec0f2302018-08-08 16:33:27 +093018 return lpc_map_flash(context);
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050019}