Andrew Jeffery | 78847ae | 2018-08-03 13:35:22 +0930 | [diff] [blame] | 1 | // SPDX-License-Identifier: Apache-2.0 |
2 | // Copyright (C) 2018 IBM Corp. | ||||
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 3 | |
4 | #define _GNU_SOURCE | ||||
5 | |||||
Andrew Jeffery | cd18611 | 2018-08-08 10:47:55 +0930 | [diff] [blame] | 6 | #include "lpc.h" |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 7 | |
Andrew Jeffery | 26558db | 2018-08-10 00:22:38 +0930 | [diff] [blame] | 8 | struct mbox_context; |
9 | |||||
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 10 | /* |
Andrew Jeffery | 17971e4 | 2018-08-08 16:36:10 +0930 | [diff] [blame] | 11 | * lpc_reset() - Reset the lpc bus mapping |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 12 | * @context: The mbox context pointer |
13 | * | ||||
14 | * Return: 0 on success otherwise negative error code | ||||
15 | */ | ||||
Andrew Jeffery | 17971e4 | 2018-08-08 16:36:10 +0930 | [diff] [blame] | 16 | int lpc_reset(struct mbox_context *context) |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 17 | { |
Andrew Jeffery | ec0f230 | 2018-08-08 16:33:27 +0930 | [diff] [blame] | 18 | return lpc_map_flash(context); |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 19 | } |