From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 08/18] exynos5: config: prepare for dm i2c support
Date: Fri, 09 Jan 2015 07:37:56 +0100 [thread overview]
Message-ID: <54AF7744.5010000@denx.de> (raw)
In-Reply-To: <1420716809-16276-8-git-send-email-p.marczak@samsung.com>
Hello Przemyslaw Marczak,
Am 08.01.2015 12:33, schrieb Przemyslaw Marczak:
> This commit allows for test i2c drivers with new i2c api
> on Exynos5xxx based boards.
>
> The S3C24X0 I2C driver supports driver model I2C api,
> but i2c peripherials drivers on exynos5 boards doesn't.
> So this commit allows for test ported driver before switch
> the Exynos5 boards to DM I2C at all.
Hmm... so this is just a patch for test purposes not for mainline?
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> Cc: Akshay Saraswat <akshay.s@samsung.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> ---
> include/configs/exynos5-common.h | 29 ++++++++++++++++++-----------
> 1 file changed, 18 insertions(+), 11 deletions(-)
>
> diff --git a/include/configs/exynos5-common.h b/include/configs/exynos5-common.h
> index ad63f3c..b7af8a5 100644
> --- a/include/configs/exynos5-common.h
> +++ b/include/configs/exynos5-common.h
> @@ -54,13 +54,6 @@
> #define CONFIG_CMD_DTT
> #define CONFIG_TMU_CMD_DTT
>
> -/* TPM */
> -#define CONFIG_TPM
> -#define CONFIG_CMD_TPM
> -#define CONFIG_TPM_TIS_I2C
> -#define CONFIG_TPM_TIS_I2C_BUS_NUMBER 3
> -#define CONFIG_TPM_TIS_I2C_SLAVE_ADDR 0x20
> -
> /* MMC SPL */
> #define COPY_BL2_FNPTR_ADDR 0x02020030
> #define CONFIG_SUPPORT_EMMC_BOOT
> @@ -126,15 +119,29 @@
> #define SPI_FLASH_UBOOT_POS (CONFIG_SEC_FW_SIZE + CONFIG_BL1_SIZE)
>
> /* I2C */
> -#define CONFIG_SYS_I2C_INIT_BOARD
> -#define CONFIG_SYS_I2C
> +#if 0 /* For test */
> +#define CONFIG_DM_I2C
> +#endif
Hmm.. no, please no dead code in mainline ... maybe you
enable "CONFIG_DM_I2C" if "CONFIG_DM" is set?
bye,
Heiko
> #define CONFIG_CMD_I2C
> -#define CONFIG_SYS_I2C_S3C24X0_SPEED 100000 /* 100 Kbps */
> #define CONFIG_SYS_I2C_S3C24X0
> -#define CONFIG_I2C_MULTI_BUS
> +#define CONFIG_SYS_I2C_S3C24X0_SPEED 100000 /* 100 Kbps */
> #define CONFIG_SYS_I2C_S3C24X0_SLAVE 0x0
> +#ifndef CONFIG_DM_I2C
> +#define CONFIG_SYS_I2C_INIT_BOARD
> +#define CONFIG_SYS_I2C
> +#define CONFIG_I2C_MULTI_BUS
> +#endif /* ifndef CONFIG_DM_I2C */
> #define CONFIG_I2C_EDID
>
> +/* TPM */
> +#ifndef CONFIG_DM_I2C
> +#define CONFIG_TPM
> +#define CONFIG_CMD_TPM
> +#define CONFIG_TPM_TIS_I2C
> +#define CONFIG_TPM_TIS_I2C_BUS_NUMBER 3
> +#define CONFIG_TPM_TIS_I2C_SLAVE_ADDR 0x20
> +#endif
> +
> /* SPI */
> #ifdef CONFIG_SPI_FLASH
> #define CONFIG_EXYNOS_SPI
>
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2015-01-09 6:37 UTC|newest]
Thread overview: 92+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 11:28 [U-Boot] [PATCH 00/18] Exynos: move i2c driver to dm api Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 01/18] arndale: config: disable max77686 support Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 02/18] exynos5250: config: disable max77686 driver Przemyslaw Marczak
2015-01-27 3:13 ` Simon Glass
2015-01-08 11:33 ` [U-Boot] [PATCH 03/18] smdk5250: config: enable max77686 driver support Przemyslaw Marczak
2015-01-27 3:13 ` Simon Glass
2015-01-08 11:33 ` [U-Boot] [PATCH 04/18] exynos4: dts: add missing i2c properties Przemyslaw Marczak
2015-01-27 3:13 ` Simon Glass
2015-01-08 11:33 ` [U-Boot] [PATCH 05/18] arndale: dts: add missing i2c aliases Przemyslaw Marczak
2015-01-27 3:13 ` Simon Glass
2015-01-08 11:33 ` [U-Boot] [PATCH 06/18] exynos5: pinmux: check flag for i2c config Przemyslaw Marczak
2015-01-27 3:13 ` Simon Glass
2015-01-08 11:33 ` [U-Boot] [PATCH 07/18] dm: i2c: s3c24x0: adjust to dm-i2c api Przemyslaw Marczak
2015-01-09 6:31 ` Heiko Schocher
2015-01-09 8:57 ` Przemyslaw Marczak
2015-01-20 3:18 ` Simon Glass
2015-01-23 15:15 ` Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 08/18] exynos5: config: prepare for dm i2c support Przemyslaw Marczak
2015-01-08 14:11 ` Minkyu Kang
2015-01-09 6:37 ` Heiko Schocher [this message]
2015-01-09 20:51 ` Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 09/18] exynos5250: config: temporary disable sound for dm i2c Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 10/18] arndale: config: temporary disable pmic " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 11/18] exynos5-dt: " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 12/18] snow: config: temporary disable cros ec i2c " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 13/18] smdk5250: config: temporary disable pmic " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 14/18] smdk5420: board: fix build warning for testing " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 15/18] peach-pi: config: temporary disable video parade for " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 16/18] peach-pit: " Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 17/18] trats2: board: cleanup power init code Przemyslaw Marczak
2015-01-08 11:33 ` [U-Boot] [PATCH 18/18] trats2: config: disable i2c peripherals if testing dm i2c Przemyslaw Marczak
2015-01-08 14:11 ` Minkyu Kang
2015-01-09 8:49 ` Przemyslaw Marczak
2015-01-27 3:13 ` [U-Boot] [PATCH 01/18] arndale: config: disable max77686 support Simon Glass
2015-01-29 17:33 ` Simon Glass
2015-01-08 12:13 ` [U-Boot] [PATCH 00/18] Exynos: move i2c driver to dm api Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 00/10] exynos: enable dm i2c Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 01/10] arndale: config: disable max77686 support Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 02/10] exynos5250: config: disable max77686 driver Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 03/10] smdk5250: config: enable max77686 driver support Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 04/10] exynos4: dts: add missing i2c properties Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 05/10] arndale: dts: add missing i2c aliases Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 06/10] exynos5: pinmux: check flag for i2c config Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 07/10] dm: i2c: s3c24x0: adjust to dm-i2c api Przemyslaw Marczak
2015-01-27 3:13 ` Simon Glass
2015-01-27 8:01 ` Przemyslaw Marczak
2015-01-26 15:21 ` [U-Boot] [PATCH v2 08/10] odroid u3: dts: add missing i2c aliases Przemyslaw Marczak
2015-01-27 3:14 ` Simon Glass
2015-01-26 15:21 ` [U-Boot] [PATCH v2 09/10] odroid u3: enable dm i2c support Przemyslaw Marczak
2015-01-27 3:14 ` Simon Glass
2015-01-26 15:21 ` [U-Boot] [PATCH v2 10/10] exynos5: enable dm i2c Przemyslaw Marczak
2015-01-27 3:14 ` Simon Glass
2015-01-26 15:32 ` [U-Boot] [PATCH v2 00/10] exynos: " Przemyslaw Marczak
2015-01-27 12:36 ` [U-Boot] [PATCH v3 00/12] " Przemyslaw Marczak
2015-01-27 12:36 ` [U-Boot] [PATCH v3 01/12] dm: i2c-uclass-compat: fix missed argument Przemyslaw Marczak
2015-01-27 15:38 ` Simon Glass
2015-01-29 17:32 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 02/12] arndale: config: disable max77686 support Przemyslaw Marczak
2015-01-27 12:36 ` [U-Boot] [PATCH v3 03/12] exynos5250: config: disable max77686 driver Przemyslaw Marczak
2015-01-29 17:33 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 04/12] smdk5250: config: enable max77686 driver support Przemyslaw Marczak
2015-01-29 17:33 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 05/12] exynos4: dts: add missing i2c properties Przemyslaw Marczak
2015-01-29 17:33 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 06/12] arndale: dts: add missing i2c aliases Przemyslaw Marczak
2015-01-29 17:34 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 07/12] exynos5: pinmux: check flag for i2c config Przemyslaw Marczak
2015-01-27 15:38 ` Simon Glass
2015-01-29 17:34 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 08/12] i2c: s3c24x0: reduce transmission status timeout Przemyslaw Marczak
2015-01-27 15:38 ` Simon Glass
2015-01-27 15:44 ` Przemyslaw Marczak
2015-02-06 20:48 ` Simon Glass
2015-02-06 21:47 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 09/12] dm: i2c: s3c24x0: adjust to dm-i2c api Przemyslaw Marczak
2015-01-27 15:38 ` Simon Glass
2015-01-29 17:34 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 10/12] odroid u3: dts: add missing i2c aliases Przemyslaw Marczak
2015-01-29 17:34 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 11/12] odroid u3: enable dm i2c support Przemyslaw Marczak
2015-01-29 17:34 ` Simon Glass
2015-01-27 12:36 ` [U-Boot] [PATCH v3 12/12] exynos5: enable dm i2c Przemyslaw Marczak
2015-01-29 17:35 ` Simon Glass
2015-01-27 12:40 ` [U-Boot] [PATCH v3 00/12] exynos: " Przemyslaw Marczak
2015-01-27 15:38 ` Simon Glass
2015-01-29 0:00 ` Simon Glass
2015-01-29 1:58 ` Minkyu Kang
2015-01-29 2:02 ` Simon Glass
-- strict thread matches above, loose matches on Subject: below --
2015-01-09 9:21 [U-Boot] [PATCH 08/18] exynos5: config: prepare for dm i2c support Akshay Saraswat
2015-01-12 9:19 ` Przemyslaw Marczak
2015-01-12 9:28 ` Przemyslaw Marczak
2015-01-12 10:02 Akshay Saraswat
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=54AF7744.5010000@denx.de \
--to=hs@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox