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 | |
| 6 | #include "mbox.h" |
Andrew Jeffery | cd18611 | 2018-08-08 10:47:55 +0930 | [diff] [blame] | 7 | #include "lpc.h" |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 8 | |
| 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 | */ |
| 15 | int reset_lpc(struct mbox_context *context) |
| 16 | { |
Andrew Jeffery | ec0f230 | 2018-08-08 16:33:27 +0930 | [diff] [blame] | 17 | return lpc_map_flash(context); |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 18 | } |