All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] pm9263: add mach-type localy for the board
Date: Mon, 31 Oct 2011 11:00:13 +0200	[thread overview]
Message-ID: <4EAE639D.4010301@compulab.co.il> (raw)
In-Reply-To: <1319818261-27813-1-git-send-email-dimov@ronetix.at>

Hi Asen,

Same comments as for pm9261, hold here.


On 10/28/11 18:11, Asen Chavdarov Dimov wrote:
> 
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
>  board/ronetix/pm9263/mach-type.h |   31 +++++++++++++++++++++++++++++++
>  board/ronetix/pm9263/pm9263.c    |    1 +
>  2 files changed, 32 insertions(+), 0 deletions(-)
>  create mode 100644 board/ronetix/pm9263/mach-type.h
> 
> diff --git a/board/ronetix/pm9263/mach-type.h b/board/ronetix/pm9263/mach-type.h
> new file mode 100644
> index 0000000..afa02df
> --- /dev/null
> +++ b/board/ronetix/pm9263/mach-type.h
> @@ -0,0 +1,31 @@
> +/*
> + * This was manually generated from arch/arm/include/asm/mach-types.h
> + * and add this machine ID removed with commit
> + * 47af6f61bcd9fdd5dcf389cff0a7406eba756c6.
> + * Do fix this.
> + */
> +
> +#ifndef __ASM_ARM_MACH_TYPE_PM9263_H
> +#define __ASM_ARM_MACH_TYPE_PM9263_H
> +
> +#ifndef __ASSEMBLY__
> +/* The type of machine we're running on */
> +extern unsigned int __machine_arch_type;
> +#endif
> +
> +/* see arch/arm/kernel/arch.c for a description of these */
> +#define MACH_TYPE_PM9263              1475
> +
> +#ifdef CONFIG_MACH_PM9263
> +# ifdef machine_arch_type
> +#  undef machine_arch_type
> +#  define machine_arch_type	__machine_arch_type
> +# else
> +#  define machine_arch_type	MACH_TYPE_PM9263
> +# endif
> +# define machine_is_pm9263()	(machine_arch_type == MACH_TYPE_PM9263)
> +#else
> +# define machine_is_pm9263()	(0)
> +#endif
> +
> +#endif
> diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c
> index cfc9847..86a84b0 100644
> --- a/board/ronetix/pm9263/pm9263.c
> +++ b/board/ronetix/pm9263/pm9263.c
> @@ -25,6 +25,7 @@
>   */
>  
>  #include <common.h>
> +#include "mach-type.h"
>  #include <asm/sizes.h>
>  #include <asm/io.h>
>  #include <asm/arch/at91sam9_smc.h>

-- 
Regards,
Igor.

      reply	other threads:[~2011-10-31  9:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28 16:11 [U-Boot] [PATCH] pm9263: add mach-type localy for the board Asen Chavdarov Dimov
2011-10-31  9:00 ` Igor Grinberg [this message]

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=4EAE639D.4010301@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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.