Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: drivers/serial/arm_dcc.c

Issue 1329001: ST1.5 board support and some ST1.0/1.5 common changes. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « drivers/mmc/qsd_sdcc.c ('k') | include/asm-arm/arch-QSD8x50/QSD8x50A_reg.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004-2007 ARM Limited. 2 * Copyright (C) 2004-2007 ARM Limited.
3 * Copyright (C) 2008 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 3 * Copyright (C) 2008 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
4 * Copyright (c) 2010, Code Aurora Forum. All rights reserved.
4 * 5 *
5 * This program is free software; you can redistribute it and/or 6 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License version 2 7 * modify it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation. 8 * as published by the Free Software Foundation.
8 * 9 *
9 * This program is distributed in the hope that it will be useful, 10 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 13 * GNU General Public License for more details.
13 * 14 *
14 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * 18 *
18 * As a special exception, if other files instantiate templates or use macros 19 * As a special exception, if other files instantiate templates or use macros
19 * or inline functions from this file, or you compile this file and link it 20 * or inline functions from this file, or you compile this file and link it
20 * with other works to produce a work based on this file, this file does not 21 * with other works to produce a work based on this file, this file does not
21 * by itself cause the resulting work to be covered by the GNU General Public 22 * by itself cause the resulting work to be covered by the GNU General Public
22 * License. However the source code for this file must still be made available 23 * License. However the source code for this file must still be made available
23 * in accordance with section (3) of the GNU General Public License. 24 * in accordance with section (3) of the GNU General Public License.
24 25
25 * This exception does not invalidate any other reasons why a work based on 26 * This exception does not invalidate any other reasons why a work based on
26 * this file might be covered by the GNU General Public License. 27 * this file might be covered by the GNU General Public License.
27 */ 28 */
28 29
29 #include <common.h> 30 #include <common.h>
30 #include <stdio_dev.h> 31 #include <stdio_dev.h>
31 32
32 #if defined(CONFIG_CPU_V6) 33 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V7)
33 /* 34 /*
34 * ARMV6 35 * ARMV6
35 */ 36 */
36 #define DCC_RBIT (1 << 30) 37 #define DCC_RBIT (1 << 30)
37 #define DCC_WBIT (1 << 29) 38 #define DCC_WBIT (1 << 29)
38 39
39 #define write_dcc(x) \ 40 #define write_dcc(x) \
40 __asm__ volatile ("mcr p14, 0, %0, c0, c5, 0\n" : : "r" (x)) 41 __asm__ volatile ("mcr p14, 0, %0, c0, c5, 0\n" : : "r" (x))
41 42
42 #define read_dcc(x) \ 43 #define read_dcc(x) \
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 arm_dcc_dev.ext = 0; /* No extensions */ 162 arm_dcc_dev.ext = 0; /* No extensions */
162 arm_dcc_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_OUTPUT; 163 arm_dcc_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_OUTPUT;
163 arm_dcc_dev.tstc = arm_dcc_tstc; /* 'tstc' function */ 164 arm_dcc_dev.tstc = arm_dcc_tstc; /* 'tstc' function */
164 arm_dcc_dev.getc = arm_dcc_getc; /* 'getc' function */ 165 arm_dcc_dev.getc = arm_dcc_getc; /* 'getc' function */
165 arm_dcc_dev.putc = arm_dcc_putc; /* 'putc' function */ 166 arm_dcc_dev.putc = arm_dcc_putc; /* 'putc' function */
166 arm_dcc_dev.puts = arm_dcc_puts; /* 'puts' function */ 167 arm_dcc_dev.puts = arm_dcc_puts; /* 'puts' function */
167 168
168 return stdio_register(&arm_dcc_dev); 169 return stdio_register(&arm_dcc_dev);
169 } 170 }
170 #endif 171 #endif
OLDNEW
« no previous file with comments | « drivers/mmc/qsd_sdcc.c ('k') | include/asm-arm/arch-QSD8x50/QSD8x50A_reg.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698