blob: b1e79397d58d298539a7a94542e8757d551cfd1c [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/*
Andrew Jeffery17971e42018-08-08 16:36:10 +093010 * lpc_reset() - Reset the lpc bus mapping
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050011 * @context: The mbox context pointer
12 *
13 * Return: 0 on success otherwise negative error code
14 */
Andrew Jeffery17971e42018-08-08 16:36:10 +093015int lpc_reset(struct mbox_context *context)
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050016{
Andrew Jefferyec0f2302018-08-08 16:33:27 +093017 return lpc_map_flash(context);
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050018}