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 | /* |
Andrew Jeffery | 17971e4 | 2018-08-08 16:36:10 +0930 | [diff] [blame] | 10 | * lpc_reset() - Reset the lpc bus mapping |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 11 | * @context: The mbox context pointer |
| 12 | * |
| 13 | * Return: 0 on success otherwise negative error code |
| 14 | */ |
Andrew Jeffery | 17971e4 | 2018-08-08 16:36:10 +0930 | [diff] [blame] | 15 | int lpc_reset(struct mbox_context *context) |
Deepak Kodihalli | 017e45c | 2017-07-12 01:06:30 -0500 | [diff] [blame] | 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 | } |