summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/head_fsl_booke.S
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-10-07 05:13:05 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-04-19 19:57:52 (GMT)
commit6c53cea1d6b8be0d68e10ac1fb7bd1383da24c40 (patch)
tree93329c75aab0870e16727d85426eb685d304fa33 /arch/powerpc/kernel/head_fsl_booke.S
parentcb06e9191a42ce2506be575410ab9cbdbe074f1d (diff)
downloadlinux-fsl-qoriq-6c53cea1d6b8be0d68e10ac1fb7bd1383da24c40.tar.xz
Add Freescale CodeWarrior support for kernel
Linux kernel on 85xx platform. ppc: IPROT needs bo be cleared to boot up Linux when enabling CW debug when CodeWarrior debug is enabled, PROT needs bo be cleared to boot up Linux. Signed-off-by: Bogdan Adrin <drian.bogdan@freescale.com> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Conflicts: arch/powerpc/Kconfig.debug Change-Id: Ia86a8b5e064eb52c70d5a7247fad7f025c2bc1d3 Reviewed-on: http://git.am.freescale.net:8181/1621 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch/powerpc/kernel/head_fsl_booke.S')
-rw-r--r--arch/powerpc/kernel/head_fsl_booke.S11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S
index 987a3f1..1206f0b 100644
--- a/arch/powerpc/kernel/head_fsl_booke.S
+++ b/arch/powerpc/kernel/head_fsl_booke.S
@@ -21,7 +21,7 @@
* debbie_chu@mvista.com
* Copyright 2002-2004 MontaVista Software, Inc.
* PowerPC 44x support, Matt Porter <mporter@kernel.crashing.org>
- * Copyright 2004 Freescale Semiconductor, Inc
+ * Copyright 2004,2010 Freescale Semiconductor, Inc
* PowerPC e500 modifications, Kumar Gala <galak@kernel.crashing.org>
*
* This program is free software; you can redistribute it and/or modify it
@@ -149,7 +149,7 @@ _ENTRY(__early_start)
mtspr SPRN_HID0, r2
#endif
-#if !defined(CONFIG_BDI_SWITCH)
+#if !defined(CONFIG_BDI_SWITCH) && !defined(CONFIG_DEBUG_CW)
/*
* The Abatron BDI JTAG debugger does not tolerate others
* mucking with the debug registers.
@@ -211,6 +211,13 @@ _ENTRY(__early_start)
/*
* Decide what sort of machine this is and initialize the MMU.
*/
+#if defined(CONFIG_DEBUG_CW)
+ lis r10, 0x1008 /* clear the V bit from the L2MMU_CAM8 register */
+ mtspr SPRN_MAS0, r10
+ lis r10, 0x0
+ mtspr SPRN_MAS1, r10
+ tlbwe
+#endif
mr r3,r30
mr r4,r31
bl machine_init