From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [patch] Add display cpuinfo for Atmel at91sam9261 Cores
Date: Mon, 18 May 2009 22:25:43 +0200 [thread overview]
Message-ID: <20090518202543.GH17539@game.jcrosoft.org> (raw)
In-Reply-To: <49fca88c.0508d00a.439f.ffffb2b6@mx.google.com>
On 22:06 Sat 02 May , Remy Bohmer wrote:
> This patch adds support for displaying CPU type information
> about Atmel AT91 cores during boot. It currently only configures it for the
> at91sam9261ek board, but it can easily be configured for all at91 based cores.
please do this in two seperate patch
please ask Stelian
CC
btw please use git
>
> This patch also provides at91_dbgu.h which is also used by the upcoming
> USB CDC-ethernet and USB-gadget support for this board.
>
> Signed-off-by: Remy B?hmer <linux@bohmer.net>
> ---
> cpu/arm926ejs/at91/Makefile | 1
> cpu/arm926ejs/at91/cpuinfo.c | 83 ++++++++++++++++++++++++++++
> include/asm-arm/arch-at91/at91_dbgu.h | 69 +++++++++++++++++++++++
> include/asm-arm/arch-at91/cpu.h | 99 ++++++++++++++++++++++++++++++++++
> include/configs/at91sam9261ek.h | 2
> 5 files changed, 254 insertions(+)
> create mode 100644 cpu/arm926ejs/at91/cpuinfo.c
> create mode 100644 include/asm-arm/arch-at91/at91_dbgu.h
> create mode 100644 include/asm-arm/arch-at91/cpu.h
>
> Index: u-boot-usb.tmp/cpu/arm926ejs/at91/Makefile
> ===================================================================
> --- u-boot-usb.tmp.orig/cpu/arm926ejs/at91/Makefile 2009-05-02 21:43:41.000000000 +0200
> +++ u-boot-usb.tmp/cpu/arm926ejs/at91/Makefile 2009-05-02 22:01:46.000000000 +0200
> @@ -55,6 +55,7 @@ COBJS-y += at91sam9rl_serial.o
> COBJS-$(CONFIG_HAS_DATAFLASH) += at91sam9rl_spi.o
> endif
> COBJS-$(CONFIG_AT91_LED) += led.o
> +COBJS-$(CONFIG_DISPLAY_CPUINFO) +=cpuinfo.o
> COBJS-y += clock.o
> COBJS-y += cpu.o
> COBJS-y += timer.o
> Index: u-boot-usb.tmp/cpu/arm926ejs/at91/cpuinfo.c
> ===================================================================
> --- /dev/null 1970-01-01 00:00:00.000000000 +0000
> +++ u-boot-usb.tmp/cpu/arm926ejs/at91/cpuinfo.c 2009-05-02 22:01:46.000000000 +0200
> @@ -0,0 +1,83 @@
> +#include <command.h>
> +#include <common.h>
> +#include <arm926ejs.h>
> +#include <asm/hardware.h>
> +#include <asm/arch/at91_dbgu.h>
> +#include <asm/arch/io.h>
> +
> +int print_cpuinfo(void)
> +{
> + unsigned long cidr;
> + const char *txt;
> +
> + cidr = at91_sys_read(AT91_DBGU_CIDR);
> +
could you use the CONFIG_ARM926EJS and other configs to reduce the size impact
> + switch ((cidr & AT91_CIDR_EPROC) >> 5) {
> + case 0x1: txt = "ARM946ES"; break;
> + case 0x2: txt = "ARM7TDMI"; break;
> + case 0x4: txt = "ARM920T"; break;
> + case 0x5: txt = "ARM926EJS"; break;
> + default: txt = "undefined"; break;
> + }
> + printf("Embedded Processor: %s\n", txt);
otherwise ok
Best Regards,
J.
next prev parent reply other threads:[~2009-05-18 20:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-02 20:06 [U-Boot] [patch] Add display cpuinfo for Atmel at91sam9261 Cores Remy Bohmer
2009-05-18 20:25 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-06-01 18:21 ` [U-Boot] [PATCH V2] Add display cpuinfo for Atmel at91 arm926ejs based cores Remy Bohmer
2009-06-01 18:21 ` [U-Boot] [PATCH] Enable display CPU-Info for at91sam9261 Remy Bohmer
2009-06-01 20:03 ` Stelian Pop
2009-06-01 20:22 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-02 19:17 ` Remy Bohmer
2009-06-01 19:59 ` [U-Boot] [PATCH V2] Add display cpuinfo for Atmel at91 arm926ejs based cores Stelian Pop
2009-06-01 20:20 ` Jean-Christophe PLAGNIOL-VILLARD
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=20090518202543.GH17539@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=u-boot@lists.denx.de \
/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