All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/9] MX51: Add register definitions
Date: Mon, 18 Jan 2010 07:40:14 +0100	[thread overview]
Message-ID: <4B54024E.1070103@denx.de> (raw)
In-Reply-To: <20100117111647.C75D4C88AE@gemini.denx.de>

Wolfgang Denk wrote:
> Dear Stefano Babic,
> 

Hi Wolfgang,

>> +#define MXC_CCM_CBCDR_EMI_PODF_OFFSET		(22)

Thanks, I do it.

>> +/* WEIM registers */
>> +#define CSGCR1	0x00
>> +#define CSGCR2	0x04
>> +#define CSRCR1	0x08
>> +#define CSRCR2	0x0C
>> +#define CSWCR1	0x10
> 
> This looks like something that should be converted into a C struct.

You are right.

>> +#define ESDCTL_ESDCDLY5                 0x30
>> +#define ESDCTL_ESDCDLYGD                0x34
> 
> Ditto.

i can say more: this defines are not used anymore and I can drop them. I
have already cleanup the code removing unnecessary defines, but it seems
not enough.

> 
>> +/* CCM */
>> +#define CLKCTL_CCR              0x00
>> +#define CLKCTL_CCDR             0x04
>> +#define CLKCTL_CSR              0x08
>> +#define CLKCTL_CCSR             0x0C
>> +#define CLKCTL_CACRR            0x10
>> +#define CLKCTL_CBCDR            0x14
>> +#define CLKCTL_CBCMR            0x18
>> +#define CLKCTL_CSCMR1           0x1C

They are obsolete,too. There is already a C struct describing them.
I drop them.


>> +#define CLKCTL_CCGR0            0x68
>> +#define CLKCTL_CCGR1            0x6C
>> +#define CLKCTL_CCGR2            0x70
>> +#define CLKCTL_CCGR3            0x74
>> +#define CLKCTL_CCGR4            0x78
>> +#define CLKCTL_CCGR5            0x7C
>> +#define CLKCTL_CCGR6            0x80
>> +#define CLKCTL_CMEOR            0x84
>> +/* DPLL */
>> +#define PLL_DP_CTL	0x00
>> +#define PLL_DP_CONFIG	0x04
>> +#define PLL_DP_OP	0x08
>> +#define PLL_DP_MFD	0x0C
>> +#define PLL_DP_MFN	0x10
>> +#define PLL_DP_MFNMINUS	0x14
>> +#define PLL_DP_MFNPLUS	0x18
>> +#define PLL_DP_HFS_OP	0x1C
>> +#define PLL_DP_HFS_MFD	0x20
>> +#define PLL_DP_HFS_MFN	0x24
>> +#define PLL_DP_TOGC	0x28
>> +#define PLL_DP_DESTAT	0x2C
> 
> And again.

This is a different fall. These defines are used in the assembly
lowlevel_init.S in the first initialization. I cannot remove them.
However, only a part of these defines are currently used and I will drop
the rest of them.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-01-18  6:40 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       ` [U-Boot] [PATCH 3/9] MX51: Add register definitions Detlev Zundel
2010-01-17 11:16       ` Wolfgang Denk
2010-01-18  6:40         ` Stefano Babic [this message]
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=4B54024E.1070103@denx.de \
    --to=sbabic@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 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.