public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/9] MX51: Add register definitions
Date: Mon, 11 Jan 2010 16:56:56 +0100	[thread overview]
Message-ID: <m2pr5gtz1z.fsf@ohwell.denx.de> (raw)
In-Reply-To: <1263212760-27272-4-git-send-email-sbabic@denx.de> (Stefano Babic's message of "Mon, 11 Jan 2010 13:25:54 +0100")

Hi Stefano,

> The patch add header files to support the Freescale i.MX51
> processor, setting definitions for internal registers.
>
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> Signed-off-by: Fred Fan fanyefeng at gmail.com
> ---
>  include/asm-arm/arch-mx51/crm_regs.h |  182 +++++++++++++++++++++
>  include/asm-arm/arch-mx51/imx-regs.h |  298 ++++++++++++++++++++++++++++++++++
>  2 files changed, 480 insertions(+), 0 deletions(-)
>  create mode 100644 include/asm-arm/arch-mx51/crm_regs.h
>  create mode 100644 include/asm-arm/arch-mx51/imx-regs.h
>
> diff --git a/include/asm-arm/arch-mx51/crm_regs.h b/include/asm-arm/arch-mx51/crm_regs.h
> new file mode 100644
> index 0000000..92da560
> --- /dev/null
> +++ b/include/asm-arm/arch-mx51/crm_regs.h
> @@ -0,0 +1,182 @@
> +/*
> + * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved.
> + */
> +
> +/*
> + * The code contained herein is licensed under the GNU General Public
> + * License. You may obtain a copy of the GNU General Public License
> + * Version 2 or later at the following locations:
> + *
> + * http://www.opensource.org/licenses/gpl-license.html
> + * http://www.gnu.org/copyleft/gpl.html
> + */

Again we need to state explicitely the version of the GPL.

> +#ifndef __ARCH_ARM_MACH_MX51_CRM_REGS_H__

> +#define __ARCH_ARM_MACH_MX51_CRM_REGS_H__
> +
> +#define MXC_CCM_BASE	CCM_BASE_ADDR
> +
> +/* DPLL register mapping structure */
> +struct mxc_pll_reg {
> +	unsigned int ctrl;
> +	unsigned int config;
> +	unsigned int op;
> +	unsigned int mfd;
> +	unsigned int mfn;
> +	unsigned int mfn_minus;
> +	unsigned int mfn_plus;
> +	unsigned int hfs_op;
> +	unsigned int hfs_mfd;
> +	unsigned int hfs_mfn;
> +	unsigned int mfn_togc;
> +	unsigned int destat;

Why not use u32 to explicitely state the width?  Same goes for the rest
of the file.

Cheers
  Detlev

-- 
Zivilisation ist der Zaubertrick, der uns unsere wahre Natur verbirgt.
                                            -- Salman Rushdie
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  parent reply	other threads:[~2010-01-11 15:56 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11 12:25 [U-Boot] MX51 Support in u-boot Stefano Babic
2010-01-11 12:25 ` [U-Boot] [PATCH 1/9] mkimage: Add Freescale imx Boot Image support (imximage) Stefano Babic
2010-01-11 12:25   ` [U-Boot] [PATCH 2/9] MX51: Add initial support for the Freescale MX51 Stefano Babic
2010-01-11 12:25     ` [U-Boot] [PATCH 3/9] MX51: Add register definitions Stefano Babic
2010-01-11 12:25       ` [U-Boot] [PATCH 4/9] MX51: Add pin and multiplexer definitions Stefano Babic
2010-01-11 12:25         ` [U-Boot] [PATCH 5/9] serial_mxc: add support for MX51 processor Stefano Babic
2010-01-11 12:25           ` [U-Boot] [PATCH 6/9] fec_mxc: " Stefano Babic
2010-01-11 12:25             ` [U-Boot] [PATCH 7/9] fsl_esdhc: add support for mx51 processor Stefano Babic
2010-01-11 12:25               ` [U-Boot] [PATCH 8/9] mmc: check correctness of the voltage mask in ocr Stefano Babic
2010-01-11 12:26                 ` [U-Boot] [PATCH 9/9] Add initial support for Freescale mx51evk board Stefano Babic
2010-01-11 17:55                   ` Fabio Estevam
2010-01-11 23:53                   ` Fabio Estevam
2010-01-17 13:05                   ` Wolfgang Denk
2010-01-18  7:34                     ` Stefano Babic
2010-01-18  8:50                       ` Wolfgang Denk
2010-01-18 10:25                         ` Stefano Babic
2010-01-17 12:46               ` [U-Boot] [PATCH 7/9] fsl_esdhc: add support for mx51 processor Wolfgang Denk
2010-01-18  8:53                 ` Stefano Babic
2010-01-18  9:16                   ` Wolfgang Denk
2010-01-17 12:34             ` [U-Boot] [PATCH 6/9] fec_mxc: add support for MX51 processor Wolfgang Denk
2010-01-18  9:35               ` Stefano Babic
2010-01-18 11:24                 ` Wolfgang Denk
2010-01-18 12:19                   ` Stefano Babic
2010-01-18 17:02                     ` John Rigby
2010-01-17 11:23           ` [U-Boot] [PATCH 5/9] serial_mxc: " Wolfgang Denk
2010-01-18  7:16             ` Stefano Babic
2010-01-18  8:45               ` Wolfgang Denk
2010-01-11 15:58         ` [U-Boot] [PATCH 4/9] MX51: Add pin and multiplexer definitions Detlev Zundel
2010-01-17 11:19         ` Wolfgang Denk
2010-01-11 15:56       ` Detlev Zundel [this message]
2010-01-17 11:16       ` [U-Boot] [PATCH 3/9] MX51: Add register definitions Wolfgang Denk
2010-01-18  6:40         ` Stefano Babic
2010-01-18  7:53           ` Wolfgang Denk
2010-01-11 15:48     ` [U-Boot] [PATCH 2/9] MX51: Add initial support for the Freescale MX51 Detlev Zundel
2010-01-11 15:58       ` Stefano Babic
2010-01-11 16:07         ` Detlev Zundel
2010-01-11 15:59     ` Detlev Zundel
2010-01-17 10:28     ` Wolfgang Denk
2010-01-18  7:05       ` Stefano Babic
2010-01-18  8:42         ` Wolfgang Denk
2010-01-11 15:43   ` [U-Boot] [PATCH 1/9] mkimage: Add Freescale imx Boot Image support (imximage) Detlev Zundel

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=m2pr5gtz1z.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --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