From: Eric Miao <eric.y.miao@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: linux-arm-kernel <linux-arm-kernel@lists.arm.linux.org.uk>,
Eric Miao <eric.miao@marvell.com>
Subject: [PATCH] [ARM] pxa: accept old ARM926 compatible CPUID for pxa168
Date: Thu, 19 Feb 2009 21:45:56 +0800 [thread overview]
Message-ID: <1235051161-8858-8-git-send-email-eric.y.miao@gmail.com> (raw)
In-Reply-To: <1235051161-8858-7-git-send-email-eric.y.miao@gmail.com>
From: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
---
arch/arm/boot/compressed/head.S | 5 +++++
arch/arm/mm/Kconfig | 5 +++++
arch/arm/mm/proc-mohawk.S | 26 ++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
index 4629dc8..fa5089f 100644
--- a/arch/arm/boot/compressed/head.S
+++ b/arch/arm/boot/compressed/head.S
@@ -630,8 +630,13 @@ proc_types:
b __armv4_mmu_cache_off
b __armv4_mmu_cache_flush
+#ifdef CONFIG_CPU_MOHAWK_OLD_ID
+ .word 0x41159260 @ ARM926T (Marvell Mohawk)
+ .word 0xfffffff0
+#else
.word 0x56158000
.word 0xff0ff000
+#endif
b __armv4_mmu_cache_on
b __armv4_mmu_cache_off
b __armv5tej_mmu_cache_flush
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index 64086f4..3f1e41a 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -351,6 +351,11 @@ config CPU_MOHAWK
select CPU_TLB_V4WBI if MMU
select CPU_COPY_V4WB if MMU
+config CPU_MOHAWK_OLD_ID
+ bool "Accept Mohawk ARM926 Compatible CPUID"
+ depends on CPU_MOHAWK && !CPU_ARM926T
+ default y
+
# Feroceon
config CPU_FEROCEON
bool
diff --git a/arch/arm/mm/proc-mohawk.S b/arch/arm/mm/proc-mohawk.S
index 719659a..08dd551 100644
--- a/arch/arm/mm/proc-mohawk.S
+++ b/arch/arm/mm/proc-mohawk.S
@@ -395,6 +395,32 @@ cpu_pxa168_name:
.section ".proc.info.init", #alloc, #execinstr
+#ifdef CONFIG_CPU_MOHAWK_OLD_ID
+ .type __mohawk_old_id_proc_info,#object
+ .long 0x41159260
+ .long 0xfffffff0
+ .long PMD_TYPE_SECT | \
+ PMD_SECT_BUFFERABLE | \
+ PMD_SECT_CACHEABLE | \
+ PMD_BIT4 | \
+ PMD_SECT_AP_WRITE | \
+ PMD_SECT_AP_READ
+ .long PMD_TYPE_SECT | \
+ PMD_BIT4 | \
+ PMD_SECT_AP_WRITE | \
+ PMD_SECT_AP_READ
+ b __mohawk_setup
+ .long cpu_arch_name
+ .long cpu_elf_name
+ .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
+ .long cpu_mohawk_name
+ .long mohawk_processor_functions
+ .long v4wbi_tlb_fns
+ .long v4wb_user_fns
+ .long mohawk_cache_fns
+ .size __pxa168_proc_info, . - __pxa168_proc_info
+#endif
+
.type __pxa168_proc_info,#object
__pxa168_proc_info:
.long 0x56158400 @ Marvell PXA168
--
1.6.0.4
next prev parent reply other threads:[~2009-02-19 13:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-19 13:45 [PATCH 0/12] ARM: add base support for Marvell PXA168 Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa: introduce plat-pxa for PXA common code and add DMA support Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa: move common GPIO handling code into plat-pxa Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa: move common MFP " Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa: add base support for Marvell's PXA168 processor line Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa: add GPIO support for pxa168 Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa: add MFP " Eric Miao
2009-02-19 13:45 ` Eric Miao [this message]
2009-02-19 13:45 ` [PATCH] [ARM] pxa: allow reuse of serial driver " Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa/zylonite2: add support for console uart Eric Miao
2009-02-19 13:45 ` [PATCH] [ARM] pxa/zylonite2: add support for debug ethernet Eric Miao
2009-02-19 13:46 ` [PATCH] [ARM] pxa: add defconfig for pxa168-based platforms Eric Miao
2009-02-19 13:46 ` [PATCH] MAINTAINERS: update pxa168 maintainers Eric Miao
2009-02-20 6:50 ` Jason Chagas
2009-02-24 1:36 ` Eric Miao
2009-02-19 13:58 ` [PATCH 0/12] ARM: add base support for Marvell PXA168 Eric Miao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1235051161-8858-8-git-send-email-eric.y.miao@gmail.com \
--to=eric.y.miao@gmail.com \
--cc=eric.miao@marvell.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®