blob: 73fd21461f40111e2cda103b7b014fbff27fbfe3 [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
6#include "mbox.h"
Andrew Jefferycd186112018-08-08 10:47:55 +09307#include "lpc.h"
Deepak Kodihalli017e45c2017-07-12 01:06:30 -05008
9/*
10 * reset_lpc() - Reset the lpc bus mapping
11 * @context: The mbox context pointer
12 *
13 * Return: 0 on success otherwise negative error code
14 */
15int reset_lpc(struct mbox_context *context)
16{
Andrew Jefferyec0f2302018-08-08 16:33:27 +093017 return lpc_map_flash(context);
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050018}