All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define
Date: Tue, 4 Oct 2011 14:07:20 +0200	[thread overview]
Message-ID: <201110041407.20860.marek.vasut@gmail.com> (raw)
In-Reply-To: <1317710111-9588-2-git-send-email-leiwen@marvell.com>

On Tuesday, October 04, 2011 08:35:10 AM Lei Wen wrote:
> Previous magic number is hard to parse its meaning, change it to
> respective macro definition
> 
> Signed-off-by: Lei Wen <leiwen@marvell.com>

[..]

> --- a/include/mmc.h
> +++ b/include/mmc.h
> @@ -145,13 +145,15 @@
>  /*
>   * EXT_CSD fields
>   */
> -
> -#define EXT_CSD_PART_CONF	179	/* R/W */
> -#define EXT_CSD_BUS_WIDTH	183	/* R/W */
> -#define EXT_CSD_HS_TIMING	185	/* R/W */
> -#define EXT_CSD_CARD_TYPE	196	/* RO */
> -#define EXT_CSD_REV		192	/* RO */
> -#define EXT_CSD_SEC_CNT		212	/* RO, 4 bytes */
> +#define EXT_CSD_PARTITIONING_SUPPORT	160	/* RO */
> +#define EXT_CSD_ERASE_GROUP_DEF		175	/* R/W */
> +#define EXT_CSD_PART_CONF		179	/* R/W */
> +#define EXT_CSD_BUS_WIDTH		183	/* R/W */
> +#define EXT_CSD_HS_TIMING		185	/* R/W */
> +#define EXT_CSD_REV			192	/* RO */
> +#define EXT_CSD_CARD_TYPE		196	/* RO */
> +#define EXT_CSD_SEC_CNT			212	/* RO, 4 bytes */
> +#define EXT_CSD_HC_ERASE_GRP_SIZE	224	/* RO */
> 
>  /*
>   * EXT_CSD field definitions

Hi Lei,
this is better, but what about structure-based access ?

struct somrthing {
 u8 a1;
 u8 a2;
...
};

Like this.

Also, CC Andy.

Cheers

  reply	other threads:[~2011-10-04 12:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03  9:03 [U-Boot] [PATCH] mmc: test mmc bus width on startup Lei Wen
2011-10-03 10:41 ` Marek Vasut
2011-10-03 11:45   ` Lei Wen
2011-10-04  6:35 ` [U-Boot] [PATCH V2 0/2] test mmc bus " Lei Wen
2011-10-04  6:35 ` [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define Lei Wen
2011-10-04 12:07   ` Marek Vasut [this message]
2011-10-06 15:10     ` Lei Wen
2011-10-06 16:10       ` Marek Vasut
2011-10-06 17:39       ` Wolfgang Denk
2011-10-10 14:44         ` Lei Wen
2011-10-10 17:33           ` Wolfgang Denk
2011-10-11  0:48             ` Lei Wen
2011-10-11  1:09               ` Graeme Russ
2011-10-11 13:52                 ` Lei Wen
2011-10-13 20:09                 ` Wolfgang Denk
2011-10-14  3:18                   ` Lei Wen
2011-10-14 20:36                     ` Wolfgang Denk
2011-10-15 14:43                       ` Lei Wen
2011-10-15 16:05                         ` Wolfgang Denk
2011-10-07  8:36       ` Prafulla Wadaskar
2011-10-08 13:45         ` Lei Wen
2011-10-11  1:12         ` Graeme Russ
2011-10-11 16:37           ` Andy Fleming
2011-10-04  6:35 ` [U-Boot] [PATCH V2 2/2] mmc: test mmc bus width on startup Lei Wen

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=201110041407.20860.marek.vasut@gmail.com \
    --to=marek.vasut@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.