Nicholas Flintham | 1e3d311 | 2013-04-10 10:48:38 +0100 | [diff] [blame^] | 1 | /* Copyright (c) 2010, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/module.h> |
| 14 | #include <linux/slab.h> |
| 15 | |
| 16 | #include <mach/scm.h> |
| 17 | #include "scm-boot.h" |
| 18 | |
| 19 | int scm_set_boot_addr(void *addr, int flags) |
| 20 | { |
| 21 | struct { |
| 22 | unsigned int flags; |
| 23 | void *addr; |
| 24 | } cmd; |
| 25 | |
| 26 | cmd.addr = addr; |
| 27 | cmd.flags = flags; |
| 28 | return scm_call(SCM_SVC_BOOT, SCM_BOOT_ADDR, |
| 29 | &cmd, sizeof(cmd), NULL, 0); |
| 30 | } |
| 31 | EXPORT_SYMBOL(scm_set_boot_addr); |
| 32 | |