All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Lilja <lilja.magnus@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 04/10] [ARM] TQMA31: add new board with i.MX31 processor
Date: Fri, 04 Jul 2008 20:28:16 +0200	[thread overview]
Message-ID: <486E6BC0.7030707@gmail.com> (raw)
In-Reply-To: <20080704145007.12049.51458.stgit@tq-sewsrv-4.tq-net.de>

Hi,

Jens Gehrlein wrote:
> diff --git a/board/tqc/tqma31/lowlevel_init.S b/board/tqc/tqma31/lowlevel_init.S
> new file mode 100644
> index 0000000..50db3a1
> --- /dev/null
> +++ b/board/tqc/tqma31/lowlevel_init.S
> @@ -0,0 +1,375 @@
> +/*
> + * Copyright (C) 2008, Guennadi Liakhovetski <lg@denx.de>
> + * Copyright (C) 2008, Jens Gehrlein <sew_s@tqs.de>
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#include <asm/arch/mx31-regs.h>
> +#include <config.h>
> +
> +.macro REG reg, val
> +	ldr r2, =\reg
> +	ldr r3, =\val
> +	str r3, [r2]
> +.endm
> +
> +.macro REG8 reg, val
> +	ldr r2, =\reg
> +	ldr r3, =\val
> +	strb r3, [r2]
> +.endm
> +
> +.macro DELAY loops
> +	ldr r2, =\loops
> +1:
> +	subs	r2, r2, #1
> +	nop
> +	bcs 1b
> +.endm
> +
> +
> +/*
> + * AIPS setup - Only setup MPROTx registers.
> + * The PACR default values are good.
> + */
> +.macro init_aips
> +
> +	/* Setup the Peripheral Port Remap register inside the core */
> +	ldr r0, =0x40000015        /* start from AIPS 2GB region */
> +	mcr p15, 0, r0, c15, c2, 4
> +
> +	/*
> +	 * Set all MPROTx to be non-bufferable, trusted for R/W,
> +	 * not forced to user-mode.
> +	 */
> +	ldr r0, =0x43F00000

How about adding/using symbolic names for i.MX31 register addresses also in the init_aips, init_max, init_m3if and init_drive_strength macros? It helps readability IMO.


Regards, Magnus

  reply	other threads:[~2008-07-04 18:28 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 14:50 [U-Boot-Users] [PATCH 00/10] [ARM] TQMA31: new board Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 01/10] [ARM] MXC: insert bus busy check in i2c_probe Jens Gehrlein
2008-07-05 15:59   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-07 12:21     ` Jens Gehrlein
2008-07-07 14:55       ` Wolfgang Denk
2008-07-07 15:24         ` Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 02/10] [ARM] MX31: fix bit masks in function mx31_decode_pll() Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 03/10] [ARM] MX31: fix typos in defines for UART and SPI IO multiplexer pins Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 04/10] [ARM] TQMA31: add new board with i.MX31 processor Jens Gehrlein
2008-07-04 18:28   ` Magnus Lilja [this message]
2008-07-06 12:04   ` Magnus Lilja
2008-07-07 10:27   ` Detlev Zundel
2008-07-07 11:26     ` Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 05/10] [ARM] TQMA31: add support for I2C, I2C temperature sensor and I2C-EEPROM Jens Gehrlein
2008-07-08 10:36   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-08 11:30     ` Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 06/10] [ARM] TQMA31: add support for SPI and SPI device MC13783-RTC Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 07/10] [ARM] TQMA31: adjust voltage regulators in PMIC MC13738 Jens Gehrlein
2008-07-04 18:28   ` Magnus Lilja
2008-07-08  8:55     ` Jens Gehrlein
2008-07-09 16:01       ` Magnus Lilja
2008-07-09 16:11         ` Detlev Zundel
2008-07-09 16:31           ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 08/10] [ARM] TQMA31: adjust pad property of IPU pin FPSHIFT for the display Jens Gehrlein
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 09/10] [ARM] TQMA31: add FPGA configuration flash Jens Gehrlein
2008-07-08 10:37   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-04 14:50 ` [U-Boot-Users] [PATCH 10/10] [ARM] TQMA31: new kernel param. to pass the eth MAC addr to the Linux eth chip driver Jens Gehrlein
2008-07-05 16:18   ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-07  7:38     ` Jens Gehrlein
2008-07-04 15:01 ` [U-Boot-Users] [PATCH 00/10] [ARM] TQMA31: new board Jens Gehrlein
2008-07-04 16:43   ` Peter Pearse
2008-07-06 22:38     ` Wolfgang Denk
2008-07-06 22:38   ` Wolfgang Denk
2008-07-04 18:28 ` Magnus Lilja

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=486E6BC0.7030707@gmail.com \
    --to=lilja.magnus@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.