Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * 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 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 | * MA 02111-1307 USA |
| 18 | */ |
| 19 | .section ".text.init", "x" |
| 20 | |
Aneesh V | fd8798b | 2012-03-08 07:20:18 +0000 | [diff] [blame] | 21 | #include <linux/linkage.h> |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 22 | |
Fabio Estevam | c69880c | 2013-01-04 16:07:26 +0000 | [diff] [blame] | 23 | .macro init_arm_errata |
| 24 | /* ARM erratum ID #743622 */ |
| 25 | mrc p15, 0, r10, c15, c0, 1 /* read diagnostic register */ |
| 26 | orr r10, r10, #1 << 6 /* set bit #6 */ |
| 27 | /* ARM erratum ID #751472 */ |
| 28 | orr r10, r10, #1 << 11 /* set bit #11 */ |
| 29 | mcr p15, 0, r10, c15, c0, 1 /* write diagnostic register */ |
| 30 | .endm |
| 31 | |
Aneesh V | fd8798b | 2012-03-08 07:20:18 +0000 | [diff] [blame] | 32 | ENTRY(lowlevel_init) |
Fabio Estevam | c69880c | 2013-01-04 16:07:26 +0000 | [diff] [blame] | 33 | init_arm_errata |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 34 | mov pc, lr |
Aneesh V | fd8798b | 2012-03-08 07:20:18 +0000 | [diff] [blame] | 35 | ENDPROC(lowlevel_init) |