Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (70 sloc) 2.746 kB
4bc042b initial public release v1.50
Patrick Titiano authored
1 /*
2 *
3 * @Component OMAPCONF
4 * @Filename l4per54xx.c
5 * @Description OMAP5 PRCM L4PER Definitions & Functions
6 * @Author Patrick Titiano (p-titiano@ti.com)
7 * @Date 2011
8 * @Copyright Texas Instruments Incorporated
9 *
10 *
11 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
12 *
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 *
18 * Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 *
21 * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the
24 * distribution.
25 *
26 * Neither the name of Texas Instruments Incorporated nor the names of
27 * its contributors may be used to endorse or promote products derived
28 * from this software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 */
43
44
45 #include <l4per54xx.h>
46 #include <prm54xx.h>
47 #include <cm54xx.h>
48
49
50 /* #define L4PER54XX_DEBUG */
51 #ifdef L4PER54XX_DEBUG
52 #define dprintf(format, ...) printf(format, ## __VA_ARGS__)
53 #else
54 #define dprintf(format, ...)
55 #endif
56
57
58 /* ------------------------------------------------------------------------*//**
59 * @FUNCTION l4per54xx_dump
60 * @BRIEF dump L4PER PRCM registers
61 * @RETURNS 0 in case of success
62 * OMAPCONF_ERR_CPU
63 * OMAPCONF_ERR_ARG
64 * OMAPCONF_ERR_REG_ACCESS
65 * @param[in,out] stream: output stream
66 * @DESCRIPTION dump L4PER PRCM registers and pretty-print it
67 * in selected output stream.
68 *//*------------------------------------------------------------------------ */
69 inline int l4per54xx_dump(FILE *stream)
70 {
71 int ret;
72
73 ret = prm54xx_dump(stream, PRM54XX_L4PER_PRM);
74 if (ret != 0)
75 return ret;
76 return cm54xx_dump(stream, CM54XX_L4PER_CM_CORE);
77 }
Something went wrong with that request. Please try again.