[PATCH 2/4] Added mainboard IDs for various versions of OLPC XO-1.

Andres Salomon dilinger at queued.net
Thu Feb 25 07:07:38 UTC 2010


On Thu, 25 Feb 2010 14:34:39 +0800
Raymond Lai <airwave209gt at gmail.com> wrote:

> From: Raymond Lai <airwave at cinderella.(none)>
> 
> These mainboard IDs are from OLPC's kernel source tree.
> 
> Signed-off-by: Raymond Lai <airwave209gt at gmail.com>


If you're going to submit these, please use the correct
attribute/authorship information.  This patch was authored by Paul Fox
(see 
http://dev.laptop.org/git/olpc-2.6/commit/?h=olpc-2.6.31-updates&id=0dfb8fd37af6a7d6711e783b040fbbcf39bbc0b9
and
http://dev.laptop.org/git/olpc-2.6/commit/?h=olpc-2.6.31-updates&id=c0eb4f932b3e314eaa550ab54485e884e095b40f
).  The From field above should have his name, both of your names
should have Signed-off-by entries, and he should be cc'd on the patch.



> ---
>  arch/x86/include/asm/olpc.h |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/x86/include/asm/olpc.h b/arch/x86/include/asm/olpc.h
> index 834a302..836f7b2 100644
> --- a/arch/x86/include/asm/olpc.h
> +++ b/arch/x86/include/asm/olpc.h
> @@ -15,6 +15,20 @@ struct olpc_platform_t {
>  #define OLPC_F_DCON		0x02
>  #define OLPC_F_VSA		0x04
>  
> +/*
> + * for XO-1, the revision in hex is equivalent to the common name
> + * for the revision -- i.e. board B3 has revision 0xb3.  with the
> + * introduction of XO 1.5 boards, the EC will no longer increment
> + * the first nibble of the ID, since otherwise we'll run out of
> + * namespace too soon.  so we'll start mapping with macros from
> + * 0xd0 onwards.
> + */
> +#define BOARD_XO_1_B1	0xb1
> +#define BOARD_XO_1_B2	0xb2
> +#define BOARD_XO_1_B3	0xb3
> +#define BOARD_XO_1_C1	0xc1
> +#define BOARD_XO_1_C2	0xc2
> +
>  #ifdef CONFIG_OLPC
>  
>  extern struct olpc_platform_t olpc_platform_info;




More information about the devel mailing list