1239281Sgonzo/*-
2239281Sgonzo * Copyright (c) 2012 Olivier Houchard.  All rights reserved.
3239281Sgonzo *
4239281Sgonzo * Redistribution and use in source and binary forms, with or without
5239281Sgonzo * modification, are permitted provided that the following conditions
6239281Sgonzo * are met:
7239281Sgonzo * 1. Redistributions of source code must retain the above copyright
8239281Sgonzo *    notice, this list of conditions and the following disclaimer.
9239281Sgonzo * 2. Redistributions in binary form must reproduce the above copyright
10239281Sgonzo *    notice, this list of conditions and the following disclaimer in the
11239281Sgonzo *    documentation and/or other materials provided with the distribution.
12239281Sgonzo *
13239281Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14239281Sgonzo * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15239281Sgonzo * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16239281Sgonzo * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17239281Sgonzo * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18239281Sgonzo * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19239281Sgonzo * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20239281Sgonzo * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21239281Sgonzo * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22239281Sgonzo * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23239281Sgonzo */
24239281Sgonzo
25239281Sgonzo/*
26239281Sgonzo * $FreeBSD: releng/10.2/sys/arm/ti/omap4/omap4_smc.h 244914 2012-12-31 21:19:44Z gonzo $
27239281Sgonzo */
28239281Sgonzo
29239281Sgonzo#ifndef OMAP4_SMC_H_
30239281Sgonzo#define OMAP4_SMC_H_
31239281Sgonzo/* Define the various function IDs used by the OMAP4 */
32239281Sgonzo#define L2CACHE_WRITE_DEBUG_REG		0x100
33239281Sgonzo#define L2CACHE_CLEAN_INV_RANG		0x101
34244914Sgonzo#define L2CACHE_WRITE_CTRL_REG		0x102
35239281Sgonzo#define READ_AUX_CORE_REGS		0x103
36239281Sgonzo#define MODIFY_AUX_CORE_0		0x104
37239281Sgonzo#define WRITE_AUX_CORE_1		0x105
38239281Sgonzo#define READ_WKG_CTRL_REG		0x106
39239281Sgonzo#define CLEAR_WKG_CTRL_REG		0x107
40239281Sgonzo#define SET_POWER_STATUS_REG		0x108
41239281Sgonzo#define WRITE_AUXCTRL_REG		0x109
42239281Sgonzo#define LOCKDOWN_TLB			0x10a
43239281Sgonzo#define SELECT_TLB_ENTRY_FOR_WRITE	0x10b
44239281Sgonzo#define READ_TLB_VA_ENTRY		0x10c
45239281Sgonzo#define WRITE_TLB_VA_ENTRY		0x10d
46239281Sgonzo#define READ_TLB_PA_ENTRY		0x10e
47239281Sgonzo#define WRITE_TLB_PA_ENTRY		0x10f
48239281Sgonzo#define READ_TLB_ATTR_ENTRY		0x110
49239281Sgonzo#define WRITE_TLB_ATTR_ENTRY		0x111
50239281Sgonzo#define WRITE_LATENCY_CTRL_REG		0x112
51239281Sgonzo#define WRITE_PREFETCH_CTRL_REG		0x113
52239281Sgonzo#endif /* OMAP4_SMC_H_ */
53