diff mbox

[1/2] ARM: mx35: 3ds: add mc9s08dz60 gpio definitions

Message ID 1331528279-2263-1-git-send-email-b39297@freescale.com
State New
Headers show

Commit Message

wu guoxing March 12, 2012, 4:57 a.m. UTC
add a new header file for mx35 3ds board
add the mc9s08dz60 gpio definitions

Signed-off-by: Wu Guoxing <b39297@freescale.com>
---
 arch/arm/plat-mxc/include/mach/board_mx35_3ds.h |   26 +++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/plat-mxc/include/mach/board_mx35_3ds.h

Comments

Sascha Hauer March 13, 2012, 1:30 p.m. UTC | #1
On Mon, Mar 12, 2012 at 12:57:58PM +0800, Wu Guoxing wrote:
> add a new header file for mx35 3ds board
> add the mc9s08dz60 gpio definitions
> 
> Signed-off-by: Wu Guoxing <b39297@freescale.com>
> ---
>  arch/arm/plat-mxc/include/mach/board_mx35_3ds.h |   26 +++++++++++++++++++++++
>  1 files changed, 26 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/plat-mxc/include/mach/board_mx35_3ds.h
> 
> diff --git a/arch/arm/plat-mxc/include/mach/board_mx35_3ds.h b/arch/arm/plat-mxc/include/mach/board_mx35_3ds.h
> new file mode 100644
> index 0000000..df0d5f7
> --- /dev/null
> +++ b/arch/arm/plat-mxc/include/mach/board_mx35_3ds.h
> @@ -0,0 +1,26 @@
> +/*
> + * Copyright 2012 Freescale Semiconductor, Inc. All Rights Reserved.
> + *
> + * Author: Wu Guoxing <b39297@freescale.com>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + */
> +
> +#ifndef __ASM_ARCH_MXC_BOARD_MX35_3DS_H__
> +#define __ASM_ARCH_MXC_BOARD_MX35_3DS_H__
> +
> +#define GPIO_MC9S08DZ60_GPS_ENABLE 0
> +#define GPIO_MC9S08DZ60_HDD_ENABLE 4
> +#define GPIO_MC9S08DZ60_WIFI_ENABLE 5
> +#define GPIO_MC9S08DZ60_LCD_ENABLE 6
> +#define GPIO_MC9S08DZ60_SPEAKER_ENABLE 8

Please add these to the board file instead. They are not useful outside
the board.

Sascha
diff mbox

Patch

diff --git a/arch/arm/plat-mxc/include/mach/board_mx35_3ds.h b/arch/arm/plat-mxc/include/mach/board_mx35_3ds.h
new file mode 100644
index 0000000..df0d5f7
--- /dev/null
+++ b/arch/arm/plat-mxc/include/mach/board_mx35_3ds.h
@@ -0,0 +1,26 @@ 
+/*
+ * Copyright 2012 Freescale Semiconductor, Inc. All Rights Reserved.
+ *
+ * Author: Wu Guoxing <b39297@freescale.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __ASM_ARCH_MXC_BOARD_MX35_3DS_H__
+#define __ASM_ARCH_MXC_BOARD_MX35_3DS_H__
+
+#define GPIO_MC9S08DZ60_GPS_ENABLE 0
+#define GPIO_MC9S08DZ60_HDD_ENABLE 4
+#define GPIO_MC9S08DZ60_WIFI_ENABLE 5
+#define GPIO_MC9S08DZ60_LCD_ENABLE 6
+#define GPIO_MC9S08DZ60_SPEAKER_ENABLE 8
+
+#endif