blob: 5db8979ba265bc044ca0805133ce33800c8f1d32 [file] [log] [blame]
Nicholas Flintham1e3d3112013-04-10 10:48:38 +01001/* 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
19int 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}
31EXPORT_SYMBOL(scm_set_boot_addr);
32