mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Philipp Zabel <philipp.zabel@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v2] ARM: gk802: Add support for Zealz GK802
Date: Thu, 4 Jul 2013 09:50:59 +0200	[thread overview]
Message-ID: <20130704075059.GX516@pengutronix.de> (raw)
In-Reply-To: <1372878511-20580-1-git-send-email-philipp.zabel@gmail.com>

On Wed, Jul 03, 2013 at 09:08:31PM +0200, Philipp Zabel wrote:
> Add support for the GK802 'QUAD CORE Mini PC', which seems to be loosely
> based on the Freescale i.MX6Q HDMI dongle reference design.
> It is supposedly identical to the Hiapad Hi802.
> 
> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>

Applied, with the change that I added the board to the imx_v7_defconfig
instead of adding its own config.

Sascha

> 
> ---
> Changes since v1:
>  - rebased onto and updated for current master
>  - switched to multi image / multiboard support
> ---
>  arch/arm/Makefile                         |   1 +
>  arch/arm/boards/gk802/Makefile            |   3 +
>  arch/arm/boards/gk802/board.c             |  92 ++++++++++++++++++
>  arch/arm/boards/gk802/env/config-board    |   7 ++
>  arch/arm/boards/gk802/flash-header.imxcfg |  96 +++++++++++++++++++
>  arch/arm/boards/gk802/lowlevel.c          |  18 ++++
>  arch/arm/configs/gk802_defconfig          |  80 ++++++++++++++++
>  arch/arm/dts/Makefile                     |   4 +-
>  arch/arm/dts/imx6q-gk802.dts              | 149 ++++++++++++++++++++++++++++++
>  arch/arm/mach-imx/Kconfig                 |   8 ++
>  images/Makefile.imx                       |   6 ++
>  11 files changed, 463 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/boards/gk802/Makefile
>  create mode 100644 arch/arm/boards/gk802/board.c
>  create mode 100644 arch/arm/boards/gk802/env/config-board
>  create mode 100644 arch/arm/boards/gk802/flash-header.imxcfg
>  create mode 100644 arch/arm/boards/gk802/lowlevel.c
>  create mode 100644 arch/arm/configs/gk802_defconfig
>  create mode 100644 arch/arm/dts/imx6q-gk802.dts
> 
> diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> index 8488f46..508a81a 100644
> --- a/arch/arm/Makefile
> +++ b/arch/arm/Makefile
> @@ -113,6 +113,7 @@ board-$(CONFIG_MACH_TNY_A9G20)			+= tny-a926x
>  board-$(CONFIG_MACH_USB_A9260)			+= usb-a926x
>  board-$(CONFIG_MACH_USB_A9263)			+= usb-a926x
>  board-$(CONFIG_MACH_USB_A9G20)			+= usb-a926x
> +board-$(CONFIG_MACH_GK802)			+= gk802
>  
>  machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
>  
> diff --git a/arch/arm/boards/gk802/Makefile b/arch/arm/boards/gk802/Makefile
> new file mode 100644
> index 0000000..f1baae2
> --- /dev/null
> +++ b/arch/arm/boards/gk802/Makefile
> @@ -0,0 +1,3 @@
> +obj-y += board.o flash-header.o
> +extra-y += flash-header.S flash-header.dcd
> +lwl-y += lowlevel.o
> diff --git a/arch/arm/boards/gk802/board.c b/arch/arm/boards/gk802/board.c
> new file mode 100644
> index 0000000..a730413
> --- /dev/null
> +++ b/arch/arm/boards/gk802/board.c
> @@ -0,0 +1,92 @@
> +/*
> + * Copyright (C) 2013 Philipp Zabel
> + *
> + * 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.
> + */
> +
> +#include <asm/armlinux.h>
> +#include <asm/io.h>
> +#include <bootsource.h>
> +#include <common.h>
> +#include <environment.h>
> +#include <envfs.h>
> +#include <gpio.h>
> +#include <init.h>
> +#include <mach/generic.h>
> +#include <mach/imx6-regs.h>
> +#include <mach/imx6.h>
> +#include <mfd/imx6q-iomuxc-gpr.h>
> +#include <sizes.h>
> +
> +#define GK802_GPIO_RECOVERY_BTN	IMX_GPIO_NR(3, 16)	/* recovery button */
> +#define GK802_GPIO_RTL8192_PDN	IMX_GPIO_NR(2, 0)	/* RTL8192CU powerdown */
> +
> +static int gk802_mem_init(void)
> +{
> +	arm_add_mem_device("ram0", 0x10000000, SZ_1G);
> +
> +	return 0;
> +}
> +mem_initcall(gk802_mem_init);
> +
> +static int gk802_env_init(void)
> +{
> +	char *bootsource_name;
> +	char *barebox_name;
> +	char *default_environment_name;
> +
> +	if (!of_machine_is_compatible("zealz,imx6q-gk802"))
> +		return 0;
> +
> +	/* Keep RTL8192CU disabled */
> +	gpio_direction_output(GK802_GPIO_RTL8192_PDN, 1);
> +
> +	gpio_direction_input(GK802_GPIO_RECOVERY_BTN);
> +	setenv("recovery", gpio_get_value(GK802_GPIO_RECOVERY_BTN) ? "0" : "1");
> +
> +	if (bootsource_get() != BOOTSOURCE_MMC)
> +		return 0;
> +
> +	switch (bootsource_get_instance()) {
> +	case 2:
> +		bootsource_name = "mmc2";
> +		barebox_name = "mmc2.barebox";
> +		default_environment_name = "mmc2.bareboxenv";
> +		default_environment_path = "/dev/mmc2.bareboxenv";
> +		break;
> +	case 3:
> +		bootsource_name = "mmc3";
> +		barebox_name = "mmc3.barebox";
> +		default_environment_name = "mmc3.bareboxenv";
> +		default_environment_path = "/dev/mmc3.bareboxenv";
> +		break;
> +	default:
> +		return 0;
> +	}
> +
> +	device_detect_by_name(bootsource_name);
> +	devfs_add_partition(bootsource_name, 0x00000, SZ_512K, DEVFS_PARTITION_FIXED, barebox_name);
> +	devfs_add_partition(bootsource_name, SZ_512K, SZ_512K, DEVFS_PARTITION_FIXED, default_environment_name);
> +
> +	return 0;
> +}
> +late_initcall(gk802_env_init);
> +
> +static int gk802_console_init(void)
> +{
> +	if (!of_machine_is_compatible("zealz,imx6q-gk802"))
> +		return 0;
> +
> +	imx6_init_lowlevel();
> +
> +	return 0;
> +}
> +postcore_initcall(gk802_console_init);
> diff --git a/arch/arm/boards/gk802/env/config-board b/arch/arm/boards/gk802/env/config-board
> new file mode 100644
> index 0000000..99540e9
> --- /dev/null
> +++ b/arch/arm/boards/gk802/env/config-board
> @@ -0,0 +1,7 @@
> +#!/bin/sh
> +
> +# board defaults, do not change in running system. Change /env/config
> +# instead
> +
> +global.hostname=gk802
> +global.linux.bootargs.base="console=ttymxc3,115200"
> diff --git a/arch/arm/boards/gk802/flash-header.imxcfg b/arch/arm/boards/gk802/flash-header.imxcfg
> new file mode 100644
> index 0000000..9638b02
> --- /dev/null
> +++ b/arch/arm/boards/gk802/flash-header.imxcfg
> @@ -0,0 +1,96 @@
> +loadaddr 0x10000000
> +soc imx6
> +dcdofs 0x400
> +wm 32 0x020e05a8 0x00000030
> +wm 32 0x020e05b0 0x00000030
> +wm 32 0x020e0524 0x00000030
> +wm 32 0x020e051c 0x00000030
> +wm 32 0x020e0518 0x00000030
> +wm 32 0x020e050c 0x00000030
> +wm 32 0x020e05b8 0x00000030
> +wm 32 0x020e05c0 0x00000030
> +wm 32 0x020e05ac 0x00020030
> +wm 32 0x020e05b4 0x00020030
> +wm 32 0x020e0528 0x00020030
> +wm 32 0x020e0520 0x00020030
> +wm 32 0x020e0514 0x00020030
> +wm 32 0x020e0510 0x00020030
> +wm 32 0x020e05bc 0x00020030
> +wm 32 0x020e05c4 0x00020030
> +wm 32 0x020e056c 0x00020030
> +wm 32 0x020e0578 0x00020030
> +wm 32 0x020e0588 0x00020030
> +wm 32 0x020e0594 0x00020030
> +wm 32 0x020e057c 0x00020030
> +wm 32 0x020e0590 0x00003000
> +wm 32 0x020e0598 0x00003000
> +wm 32 0x020e058c 0x00000000
> +wm 32 0x020e059c 0x00003030
> +wm 32 0x020e05a0 0x00003030
> +wm 32 0x020e0784 0x00000030
> +wm 32 0x020e0788 0x00000030
> +wm 32 0x020e0794 0x00000030
> +wm 32 0x020e079c 0x00000030
> +wm 32 0x020e07a0 0x00000030
> +wm 32 0x020e07a4 0x00000030
> +wm 32 0x020e07a8 0x00000030
> +wm 32 0x020e0748 0x00000030
> +wm 32 0x020e074c 0x00000030
> +wm 32 0x020e0750 0x00020000
> +wm 32 0x020e0758 0x00000000
> +wm 32 0x020e0774 0x00020000
> +wm 32 0x020e078c 0x00000030
> +wm 32 0x020e0798 0x000c0000
> +wm 32 0x021b081c 0x33333333
> +wm 32 0x021b0820 0x33333333
> +wm 32 0x021b0824 0x33333333
> +wm 32 0x021b0828 0x33333333
> +wm 32 0x021b481c 0x33333333
> +wm 32 0x021b4820 0x33333333
> +wm 32 0x021b4824 0x33333333
> +wm 32 0x021b4828 0x33333333
> +wm 32 0x021b0018 0x00081740
> +wm 32 0x021b001c 0x00008000
> +wm 32 0x021b000c 0x555a7975
> +wm 32 0x021b0010 0xff538e64
> +wm 32 0x021b0014 0x01ff00db
> +wm 32 0x021b002c 0x000026d2
> +wm 32 0x021b0030 0x005b0e21
> +wm 32 0x021b0008 0x09444040
> +wm 32 0x021b0004 0x00025576
> +wm 32 0x021b0040 0x00000027
> +wm 32 0x021b0000 0x831a0000
> +wm 32 0x021b001c 0x04088032
> +wm 32 0x021b001c 0x0408803a
> +wm 32 0x021b001c 0x00008033
> +wm 32 0x021b001c 0x0000803b
> +wm 32 0x021b001c 0x00428031
> +wm 32 0x021b001c 0x00428039
> +wm 32 0x021b001c 0x09408030
> +wm 32 0x021b001c 0x09408038
> +wm 32 0x021b001c 0x04008040
> +wm 32 0x021b001c 0x04008048
> +wm 32 0x021b0800 0xa1380003
> +wm 32 0x021b4800 0xa1380003
> +wm 32 0x021b0020 0x00005800
> +wm 32 0x021b0818 0x00000007
> +wm 32 0x021b4818 0x00000007
> +wm 32 0x021b083c 0x427b030a
> +wm 32 0x021b0840 0x02740269
> +wm 32 0x021b483c 0x43100313
> +wm 32 0x021b4840 0x027d024d
> +wm 32 0x021b0848 0x46384240
> +wm 32 0x021b4848 0x4442414a
> +wm 32 0x021b0850 0x45444645
> +wm 32 0x021b4850 0x4a354946
> +wm 32 0x021b080c 0x001f001f
> +wm 32 0x021b0810 0x001f001f
> +wm 32 0x021b480c 0x00440044
> +wm 32 0x021b4810 0x00440044
> +wm 32 0x021b08b8 0x00000800
> +wm 32 0x021b48b8 0x00000800
> +wm 32 0x021b001c 0x00000000
> +wm 32 0x021b0404 0x00011006
> +wm 32 0x020e0010 0xf00000ff
> +wm 32 0x020e0018 0x007f007f
> +wm 32 0x020e001c 0x007f007f
> diff --git a/arch/arm/boards/gk802/lowlevel.c b/arch/arm/boards/gk802/lowlevel.c
> new file mode 100644
> index 0000000..95b218d
> --- /dev/null
> +++ b/arch/arm/boards/gk802/lowlevel.c
> @@ -0,0 +1,18 @@
> +#include <common.h>
> +#include <sizes.h>
> +#include <asm/barebox-arm-head.h>
> +#include <asm/barebox-arm.h>
> +
> +extern char __dtb_imx6q_gk802_start[];
> +
> +ENTRY_FUNCTION(start_imx6_gk802)(void)
> +{
> +	uint32_t fdt;
> +
> +	__barebox_arm_head();
> +
> +	arm_cpu_lowlevel_init();
> +
> +	fdt = (uint32_t)__dtb_imx6q_gk802_start - get_runtime_offset();
> +	barebox_arm_entry(0x10000000, SZ_1G, fdt);
> +}
> diff --git a/arch/arm/configs/gk802_defconfig b/arch/arm/configs/gk802_defconfig
> new file mode 100644
> index 0000000..31fa84b
> --- /dev/null
> +++ b/arch/arm/configs/gk802_defconfig
> @@ -0,0 +1,80 @@
> +CONFIG_ARCH_IMX=y
> +CONFIG_IMX_MULTI_BOARDS=y
> +CONFIG_MACH_GK802=y
> +CONFIG_IMX_IIM=y
> +CONFIG_IMX_IIM_FUSE_BLOW=y
> +CONFIG_THUMB2_BAREBOX=y
> +CONFIG_CMD_ARM_MMUINFO=y
> +CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
> +CONFIG_ARM_UNWIND=y
> +CONFIG_BAREBOX_UPDATE=y
> +CONFIG_MMU=y
> +CONFIG_MALLOC_SIZE=0x4000000
> +CONFIG_MALLOC_TLSF=y
> +CONFIG_KALLSYMS=y
> +CONFIG_LONGHELP=y
> +CONFIG_HUSH_FANCY_PROMPT=y
> +CONFIG_CMDLINE_EDITING=y
> +CONFIG_AUTO_COMPLETE=y
> +CONFIG_MENU=y
> +CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
> +CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/gk802/env"
> +CONFIG_CMD_EDIT=y
> +CONFIG_CMD_SLEEP=y
> +CONFIG_CMD_MSLEEP=y
> +CONFIG_CMD_SAVEENV=y
> +CONFIG_CMD_EXPORT=y
> +CONFIG_CMD_READLINE=y
> +CONFIG_CMD_MENU=y
> +CONFIG_CMD_MENU_MANAGEMENT=y
> +CONFIG_CMD_TIME=y
> +CONFIG_CMD_BASENAME=y
> +CONFIG_CMD_DIRNAME=y
> +CONFIG_CMD_ECHO_E=y
> +CONFIG_CMD_MEMINFO=y
> +CONFIG_CMD_IOMEM=y
> +CONFIG_CMD_CRC=y
> +CONFIG_CMD_CRC_CMP=y
> +CONFIG_CMD_MD5SUM=y
> +# CONFIG_CMD_FLASH is not set
> +CONFIG_CMD_BOOTM_SHOW_TYPE=y
> +CONFIG_CMD_BOOTM_VERBOSE=y
> +CONFIG_CMD_BOOTM_INITRD=y
> +CONFIG_CMD_BOOTM_OFTREE=y
> +CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y
> +CONFIG_CMD_BOOTM_AIMAGE=y
> +# CONFIG_CMD_BOOTZ is not set
> +# CONFIG_CMD_BOOTU is not set
> +CONFIG_CMD_RESET=y
> +CONFIG_CMD_GO=y
> +CONFIG_CMD_OFTREE=y
> +CONFIG_CMD_OF_PROPERTY=y
> +CONFIG_CMD_OF_NODE=y
> +CONFIG_CMD_BAREBOX_UPDATE=y
> +CONFIG_CMD_TIMEOUT=y
> +CONFIG_CMD_PARTITION=y
> +CONFIG_CMD_MAGICVAR=y
> +CONFIG_CMD_MAGICVAR_HELP=y
> +CONFIG_CMD_GPIO=y
> +CONFIG_CMD_UNCOMPRESS=y
> +CONFIG_CMD_I2C=y
> +CONFIG_CMD_CLK=y
> +CONFIG_CMD_DETECT=y
> +CONFIG_OFDEVICE=y
> +CONFIG_I2C=y
> +CONFIG_I2C_IMX=y
> +CONFIG_USB=y
> +CONFIG_USB_IMX_CHIPIDEA=y
> +CONFIG_USB_IMX_PHY=y
> +CONFIG_USB_EHCI=y
> +CONFIG_USB_STORAGE=y
> +CONFIG_MCI=y
> +CONFIG_MCI_IMX_ESDHC=y
> +CONFIG_WATCHDOG=y
> +CONFIG_WATCHDOG_IMX=y
> +CONFIG_GPIO_GENERIC=y
> +CONFIG_GPIO_GENERIC_PLATFORM=y
> +CONFIG_FS_EXT4=y
> +CONFIG_FS_FAT=y
> +CONFIG_FS_FAT_LFN=y
> +CONFIG_LZO_DECOMPRESS=y
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 63956e9..15a1a62 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -1,7 +1,8 @@
>  dtb-$(CONFIG_ARCH_IMX51) += imx51-babbage.dtb \
>  	imx51-genesi-efika-sb.dtb
>  dtb-$(CONFIG_ARCH_IMX53) += imx53-qsb.dtb
> -dtb-$(CONFIG_ARCH_IMX6) += imx6q-dmo-realq7.dtb \
> +dtb-$(CONFIG_ARCH_IMX6) += imx6q-gk802.dtb \
> +	imx6q-dmo-realq7.dtb \
>  	imx6q-sabrelite.dtb \
>  	imx6q-sabresd.dtb
>  
> @@ -12,6 +13,7 @@ pbl-$(CONFIG_MACH_EFIKA_MX_SMARTBOOK) += imx51-genesi-efika-sb.dtb.o
>  pbl-$(CONFIG_MACH_FREESCALE_MX51_PDK) += imx51-babbage.dtb.o
>  pbl-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += imx53-qsb.dtb.o
>  pbl-$(CONFIG_MACH_REALQ7) += imx6q-dmo-realq7.dtb.o
> +pbl-$(CONFIG_MACH_GK802) += imx6q-gk802.dtb.o
>  
>  .SECONDARY: $(obj)/$(BUILTIN_DTB).dtb.S
>  .SECONDARY: $(patsubst %,$(obj)/%.S,$(dtb-y))
> diff --git a/arch/arm/dts/imx6q-gk802.dts b/arch/arm/dts/imx6q-gk802.dts
> new file mode 100644
> index 0000000..d15b8c8
> --- /dev/null
> +++ b/arch/arm/dts/imx6q-gk802.dts
> @@ -0,0 +1,149 @@
> +/*
> + * Copyright (C) 2013 Philipp Zabel
> + *
> + * This file is licensed under the terms of the GNU General Public License
> + * version 2.  This program is licensed "as is" without any warranty of any
> + * kind, whether express or implied.
> + */
> +
> +/dts-v1/;
> +#include "imx6q.dtsi"
> +
> +/ {
> +	model = "Zealz GK802";
> +	compatible = "zealz,imx6q-gk802", "fsl,imx6q";
> +
> +	chosen {
> +		linux,stdout-path = "/soc/aips-bus@02100000/serial@021f0000";
> +	};
> +
> +	memory {
> +		reg = <0x10000000 0x40000000>;
> +	};
> +
> +	regulators {
> +		compatible = "simple-bus";
> +
> +		reg_3p3v: 3p3v {
> +			compatible = "regulator-fixed";
> +			regulator-name = "3P3V";
> +			regulator-min-microvolt = <3300000>;
> +			regulator-max-microvolt = <3300000>;
> +			regulator-always-on;
> +		};
> +	};
> +
> +	gpio-keys {
> +		compatible = "gpio-keys";
> +
> +		recovery-button {
> +			label = "recovery";
> +			gpios = <&gpio3 16 1>;
> +			linux,code = <0x198>; /* KEY_RESTART */
> +			gpio-key,wakeup;
> +		};
> +	};
> +};
> +
> +/* Internal I2C */
> +&i2c2 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_i2c2_gk802>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	/* SDMC DM2016 1024 bit EEPROM + 128 bit OTP */
> +	eeprom: dm2016@51 {
> +		compatible = "sdmc,dm2016";
> +		reg = <0x51>;
> +	};
> +};
> +
> +/* External I2C via HDMI */
> +&i2c3 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_i2c3_gk802>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +};
> +
> +&iomuxc {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_hog>;
> +
> +	hog {
> +		pinctrl_hog: hoggrp {
> +			fsl,pins = <
> +				/* Recovery button, active-low */
> +				MX6Q_PAD_EIM_D16__GPIO3_IO16  0x100b1
> +				/* RTL8192CU enable GPIO, active-low */
> +				MX6Q_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0
> +			>;
> +		};
> +	};
> +
> +	i2c2 {
> +		pinctrl_i2c2_gk802: i2c2grp-1 {
> +			fsl,pins = <
> +				MX6Q_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
> +				MX6Q_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
> +			>;
> +		};
> +	};
> +
> +	i2c3 {
> +		pinctrl_i2c3_gk802: i2c3grp-1 {
> +			fsl,pins = <
> +				MX6Q_PAD_GPIO_5__I2C3_SCL  0x4001b8b1
> +				MX6Q_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
> +			>;
> +		};
> +	};
> +};
> +
> +&uart2 {
> +	status = "okay";
> +};
> +
> +&uart4 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_uart4_1>;
> +	status = "okay";
> +};
> +
> +/* External USB-A port (USBOTG) */
> +&usbotg {
> +	phy-mode = "utmi";
> +	dr_mode = "host";
> +	barebox,phy_type = "utmi";
> +	disable-over-current;
> +	status = "okay";
> +};
> +
> +/* Internal USB port (USBH1), connected to RTL8192CU */
> +&usbh1 {
> +	phy-mode = "utmi";
> +	dr_mode = "host";
> +	barebox,phy_type = "utmi";
> +	disable-over-current;
> +	status = "okay";
> +};
> +
> +/* External microSD */
> +&usdhc3 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usdhc3_2>;
> +	bus-width = <4>;
> +	cd-gpios = <&gpio6 11 0>;
> +	vmmc-supply = <&reg_3p3v>;
> +	status = "okay";
> +};
> +
> +/* Internal microSD */
> +&usdhc4 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usdhc4_2>;
> +	bus-width = <4>;
> +	vmmc-supply = <&reg_3p3v>;
> +	status = "okay";
> +};
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 9297a21..0da637b 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -32,6 +32,7 @@ config ARCH_TEXT_BASE
>  	default 0x97f00000 if MACH_EFIKA_MX_SMARTBOOK
>  	default 0x17800000 if MACH_SABRESD
>  	default 0x4fc00000 if MACH_REALQ7
> +	default 0x4fc00000 if MACH_GK802
>  
>  config BOARDINFO
>  	default "Eukrea CPUIMX25" if MACH_EUKREA_CPUIMX25
> @@ -61,6 +62,7 @@ config BOARDINFO
>  	default "Garz+Fricke Vincell" if MACH_GUF_VINCELL
>  	default "SabreSD" if MACH_SABRESD
>  	default "DataModul i.MX6Q Real Qseven" if MACH_REALQ7
> +	default "Zealz GK802" if MACH_GK802
>  	default "unused" if IMX_MULTI_BOARDS
>  
>  choice
> @@ -245,6 +247,12 @@ config MACH_REALQ7
>  	select HAVE_DEFAULT_ENVIRONMENT_NEW
>  	select HAVE_PBL_MULTI_IMAGES
>  
> +config MACH_GK802
> +	bool "Zealz GK802 Mini PC"
> +	select ARCH_IMX6
> +	select HAVE_DEFAULT_ENVIRONMENT_NEW
> +	select HAVE_PBL_MULTI_IMAGES
> +
>  endif
>  
>  # ----------------------------------------------------------
> diff --git a/images/Makefile.imx b/images/Makefile.imx
> index 788800e..1e605de 100644
> --- a/images/Makefile.imx
> +++ b/images/Makefile.imx
> @@ -40,3 +40,9 @@ CFG_start_imx6_realq7.pblx.imximg = $(board)/dmo-mx6-realq7/flash-header.imxcfg
>  imximage-$(CONFIG_MACH_REALQ7) += start_imx6_realq7.pblx.imximg
>  FILE_barebox-datamodul-edm-qmx6.img = start_imx6_realq7.pblx.imximg
>  image-$(CONFIG_MACH_REALQ7) += barebox-datamodul-edm-qmx6.img
> +
> +pblx-$(CONFIG_MACH_GK802) += start_imx6_gk802
> +CFG_start_imx6_gk802.pblx.imximg = $(board)/gk802/flash-header.imxcfg
> +imximage-$(CONFIG_MACH_GK802) += start_imx6_gk802.pblx.imximg
> +FILE_barebox-gk802.img = start_imx6_gk802.pblx.imximg
> +image-$(CONFIG_MACH_GK802) += barebox-gk802.img
> -- 
> 1.8.3.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2013-07-04  7:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 19:08 Philipp Zabel
2013-07-04  7:50 ` Sascha Hauer [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=20130704075059.GX516@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=philipp.zabel@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox