All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Pull request: u-boot-net.git master
Date: Fri, 26 Oct 2018 15:04:09 +0200	[thread overview]
Message-ID: <20181026150401.366efbaa@crub> (raw)
In-Reply-To: <20181026115250.GO1032@bill-the-cat>

On Fri, 26 Oct 2018 07:52:50 -0400
Tom Rini trini at konsulko.com wrote:
...
> This passed travis at the time, but now it fails on vf610twr for me:
> https://travis-ci.org/trini/u-boot/jobs/446449322 so I've cc'd Alison if
> there's anything we can easily turn off in the defconfig.  But I'm also
> cc'ing York since I thought I saw Alison say they didn't have the board
> anymore?  Should we mark it orphan?  Drop it from CI for now and fully
> soon?  Or does someone else want to take it?

I've seen this too when build-testing i.MX8 patches, it is the impact
of recent drivers growth after extensions for i.MX8. Below is a raw patch
I tried to reduce the size for VF610 (not finished yet). Would something
like that be acceptable?

CMD_MEMTEST could be dropped from defconfig, the board would be bootable
without it.

Thanks,

Anatolij


diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 9999d9fe5e..1dae2dfa14 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -943,8 +943,11 @@ static const struct dm_i2c_ops mxc_i2c_ops = {
 };
 
 static const struct udevice_id mxc_i2c_ids[] = {
-	{ .compatible = "fsl,imx21-i2c", },
+#if defined(CONFIG_ARCH_VF610)
 	{ .compatible = "fsl,vf610-i2c", .data = I2C_QUIRK_FLAG, },
+#else
+	{ .compatible = "fsl,imx21-i2c", },
+#endif
 	{}
 };
 
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index 6106c1f9ec..c4be872d28 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -227,6 +227,7 @@ static int _lpuart_serial_init(struct udevice *dev)
 	return 0;
 }
 
+#if defined(CONFIG_ARCH_MX7) || defined(CONFIG_ARCH_IMX8)
 static void _lpuart32_serial_setbrg_7ulp(struct udevice *dev,
 					 int baudrate)
 {
@@ -295,6 +296,10 @@ static void _lpuart32_serial_setbrg_7ulp(struct udevice *dev,
 
 	out_le32(&base->baud, tmp);
 }
+#else
+static inline void _lpuart32_serial_setbrg_7ulp(struct udevice *dev,
+						int baudrate) { }
+#endif
 
 static void _lpuart32_serial_setbrg(struct udevice *dev,
 				    int baudrate)
@@ -502,14 +507,19 @@ static int lpuart_serial_ofdata_to_platdata(struct udevice *dev)
 	plat->reg = (void *)addr;
 	plat->flags = dev_get_driver_data(dev);
 
-	if (!fdt_node_check_compatible(blob, node, "fsl,ls1021a-lpuart"))
-		plat->devtype = DEV_LS1021A;
-	else if (!fdt_node_check_compatible(blob, node, "fsl,imx7ulp-lpuart"))
+#if defined(CONFIG_ARCH_MX7)
+	if (!fdt_node_check_compatible(blob, node, "fsl,imx7ulp-lpuart"))
 		plat->devtype = DEV_MX7ULP;
-	else if (!fdt_node_check_compatible(blob, node, "fsl,vf610-lpuart"))
+#elif defined(CONFIG_ARCH_VF610)
+	if (!fdt_node_check_compatible(blob, node, "fsl,vf610-lpuart"))
 		plat->devtype = DEV_VF610;
-	else if (!fdt_node_check_compatible(blob, node, "fsl,imx8qm-lpuart"))
+#elif defined(CONFIG_ARCH_IMX8)
+	if (!fdt_node_check_compatible(blob, node, "fsl,imx8qm-lpuart"))
 		plat->devtype = DEV_IMX8;
+#else
+	if (!fdt_node_check_compatible(blob, node, "fsl,ls1021a-lpuart"))
+		plat->devtype = DEV_LS1021A;
+#endif
 
 	return 0;
 }
@@ -522,13 +532,18 @@ static const struct dm_serial_ops lpuart_serial_ops = {
 };
 
 static const struct udevice_id lpuart_serial_ids[] = {
-	{ .compatible = "fsl,ls1021a-lpuart", .data =
-		LPUART_FLAG_REGMAP_32BIT_REG | LPUART_FLAG_REGMAP_ENDIAN_BIG },
+#if defined(CONFIG_ARCH_MX7)
 	{ .compatible = "fsl,imx7ulp-lpuart",
 		.data = LPUART_FLAG_REGMAP_32BIT_REG },
+#elif defined(CONFIG_ARCH_VF610)
 	{ .compatible = "fsl,vf610-lpuart"},
+#elif defined(CONFIG_ARCH_IMX8)
 	{ .compatible = "fsl,imx8qm-lpuart",
 		.data = LPUART_FLAG_REGMAP_32BIT_REG },
+#else
+	{ .compatible = "fsl,ls1021a-lpuart", .data =
+		LPUART_FLAG_REGMAP_32BIT_REG | LPUART_FLAG_REGMAP_ENDIAN_BIG },
+#endif
 	{ }
 };
 

  parent reply	other threads:[~2018-10-26 13:04 UTC|newest]

Thread overview: 176+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-24 19:45 [U-Boot] Pull request: u-boot-net.git master Joe Hershberger
2018-10-26 11:52 ` Tom Rini
2018-10-26 12:24   ` Stefano Babic
2018-10-26 12:40     ` Tom Rini
2018-10-26 13:04   ` Anatolij Gustschin [this message]
2018-10-26 14:46   ` York Sun
2018-10-26 16:45 ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2019-09-04 16:42 Joe Hershberger
2019-09-05 13:24 ` Tom Rini
2019-07-25 18:38 Joe Hershberger
2019-07-26 19:37 ` Tom Rini
2019-07-26 19:39   ` Joe Hershberger
2019-07-18 21:38 Joe Hershberger
2019-07-23 13:46 ` Tom Rini
2019-07-15 22:49 Joe Hershberger
2019-07-16 14:57 ` Tom Rini
2019-06-01 23:10 Joe Hershberger
2019-06-02 20:03 ` Tom Rini
2019-05-14 19:57 Joe Hershberger
2019-05-15 17:42 ` Tom Rini
2019-05-08 22:30 Joe Hershberger
2019-05-09 22:25 ` Tom Rini
2019-05-07 22:09 Joe Hershberger
2019-05-08 22:24 ` Joe Hershberger
2019-05-08 22:37   ` Tom Rini
2019-05-08 22:40   ` [U-Boot] [EXT] " Vladimir Oltean
2019-05-08 22:42     ` Tom Rini
2019-05-08 22:45       ` [U-Boot] " Vladimir Oltean
2019-05-08 22:48         ` Tom Rini
2019-05-08 22:52           ` Vladimir Oltean
2019-05-08 22:54             ` Tom Rini
2019-05-08 23:05               ` Vladimir Oltean
2019-05-09  2:38                 ` Tom Rini
2019-05-09 12:51                 ` Vladimir Oltean
2019-05-10 21:50                   ` Joe Hershberger
2019-05-15 14:58                     ` Tom Rini
2019-07-25 22:40                       ` Vladimir Oltean
2019-07-25 23:12                         ` Tom Rini
2019-11-02 13:17                       ` Michael Walle
2019-11-02 14:12                         ` Tom Rini
2019-11-02 14:30                           ` Vladimir Oltean
2019-11-02 15:05                             ` Tom Rini
2019-11-03 15:22                               ` Michael Walle
2019-03-12 18:15 Joe Hershberger
2019-03-19 22:41 ` Tom Rini
2019-04-30 21:15   ` Joe Hershberger
2019-04-30 21:28     ` Tom Rini
2019-05-01  0:56       ` Joe Hershberger
2019-05-01  1:19         ` Tom Rini
2019-03-05 18:02 Joe Hershberger
2019-03-07 14:15 ` Tom Rini
2019-01-24 17:35 Joe Hershberger
2019-01-25 15:16 ` Tom Rini
2018-11-05 17:51 Joe Hershberger
2018-11-06  4:06 ` Tom Rini
2018-11-06 20:58   ` Joe Hershberger
2018-10-11 19:23 Joe Hershberger
2018-10-12 15:52 ` Tom Rini
2018-07-26 19:12 Joe Hershberger
2018-07-27 17:09 ` Tom Rini
2018-07-02 19:49 Joe Hershberger
2018-07-02 19:57 ` Tom Rini
2018-07-02 20:09   ` Joe Hershberger
2018-07-03  3:24 ` Tom Rini
2018-06-13 19:00 Joe Hershberger
2018-06-14 15:36 ` Tom Rini
2018-04-15  4:18 Joe Hershberger
2018-04-15 17:52 ` Tom Rini
2018-03-22 20:39 Joe Hershberger
2018-03-23  1:21 ` Tom Rini
2018-02-27 17:17 Joe Hershberger
2018-02-28  3:41 ` Tom Rini
2018-01-15 18:06 Joe Hershberger
2018-01-16  2:25 ` Tom Rini
2018-01-17 18:46   ` Joe Hershberger
2018-01-03 21:32 Joe Hershberger
2018-01-04  1:09 ` Tom Rini
2018-01-04 17:56   ` Joe Hershberger
2018-01-09 18:06 ` Tom Rini
2018-01-15 18:10   ` Joe Hershberger
2018-01-15 18:13     ` Tom Rini
2018-01-15 18:15       ` Joe Hershberger
2018-01-15 18:22         ` Tom Rini
2018-01-15 18:23           ` Joe Hershberger
2017-09-07 18:29 Joe Hershberger
2017-09-08  0:02 ` Tom Rini
2017-08-14 17:48 Joe Hershberger
2017-08-15  0:03 ` Tom Rini
2017-08-07 20:30 Joe Hershberger
2017-08-08 21:03 ` Tom Rini
2017-06-02 19:45 Joe Hershberger
2017-06-04 17:11 ` Tom Rini
2017-03-27 16:50 Joe Hershberger
2017-04-04 19:59 ` Tom Rini
2017-03-07 20:01 Joe Hershberger
2017-03-08 17:48 ` Tom Rini
2017-02-09 16:25 Joe Hershberger
2017-02-09 19:50 ` Tom Rini
2016-12-08 16:37 Joe Hershberger
2016-12-09 12:12 ` Tom Rini
2016-12-09 16:22   ` Joe Hershberger
2016-12-09 17:43     ` Michal Simek
2016-12-09 18:35       ` Joe Hershberger
2016-12-09 19:09         ` Michal Simek
2016-12-09 19:52         ` Tom Rini
2016-11-07 17:29 Joe Hershberger
2016-11-08 20:52 ` Tom Rini
2016-10-13 17:34 Joe Hershberger
2016-10-13 22:45 ` Tom Rini
2016-09-09 18:52 Joe Hershberger
2016-09-09 19:53 ` Tom Rini
2016-08-23  2:26 Joe Hershberger
2016-08-24 15:32 ` Tom Rini
2016-08-15 20:30 Joe Hershberger
2016-08-16  1:09 ` Tom Rini
2016-08-15 20:20 Joe Hershberger
2016-08-15 20:26 ` Joe Hershberger
2016-07-06 15:46 Joe Hershberger
2016-07-08  2:50 ` Tom Rini
2016-06-21 22:04 Joe Hershberger
2016-06-22 14:38 ` Tom Rini
2016-05-24 16:50 Joe Hershberger
2016-05-24 23:18 ` Tom Rini
2016-05-03 22:58 Joe Hershberger
2016-05-04  1:35 ` Tom Rini
2016-05-03 20:01 Joe Hershberger
2016-05-03 21:34 ` Tom Rini
2016-05-03 21:49   ` Joe Hershberger
2016-02-26 19:42 Joe Hershberger
2016-02-28  1:19 ` Tom Rini
2016-02-18 17:39 Joe Hershberger
2016-02-20  0:54 ` Tom Rini
2016-01-28 23:32 Joe Hershberger
2016-02-09 17:01 ` Tom Rini
2015-10-29 19:34 Joe Hershberger
2015-10-30  2:09 ` Tom Rini
2015-09-30 17:23 Joe Hershberger
2015-10-03  0:35 ` Tom Rini
2015-08-21 21:48 Joe Hershberger
2015-08-24 13:44 ` Tom Rini
2015-08-12 19:37 Joe Hershberger
2015-08-13 13:16 ` Tom Rini
2015-06-01 18:24 Joe Hershberger
2015-06-02 12:55 ` Tom Rini
2015-05-26 17:24 Joe Hershberger
2015-05-27  2:02 ` Tom Rini
2015-05-27 16:17   ` Joe Hershberger
2015-05-19 18:56 Joe Hershberger
2015-05-20 11:28 ` Tom Rini
2015-05-20 17:11   ` Joe Hershberger
2015-05-21 13:09     ` Tom Rini
2015-05-21 13:50       ` Joe Hershberger
2015-04-20 23:08 Joe Hershberger
2015-04-21 14:06 ` Tom Rini
2015-01-30 22:01 Joe Hershberger
2015-02-02 18:59 ` Tom Rini
2014-01-14 19:12 Joe Hershberger
2014-01-14 21:01 ` Tom Rini
2013-11-22 23:08 Joe Hershberger
2013-11-25 21:56 ` Tom Rini
2013-08-19 17:39 Joe Hershberger
2013-08-19 21:59 ` Tom Rini
2013-06-25  0:21 Joe Hershberger
2013-06-25 14:55 ` Tom Rini
2012-12-15 18:41 Joe Hershberger
2012-12-18 19:59 ` Tom Rini
2012-12-11 19:38 Joe Hershberger
2012-12-11 23:47 ` Langer Thomas
2012-12-12  3:42   ` Joe Hershberger
2012-12-12 13:16     ` Tom Rini
2012-09-27 17:38 Joe Hershberger
2012-09-27 20:05 ` Tom Rini
2012-07-24 19:19 Joe Hershberger
2012-07-26  8:57 ` Wolfgang Denk
2012-07-19 16:54 Joe Hershberger
2012-07-20  6:57 ` Wolfgang Denk
2012-05-23 19:36 Joe Hershberger
2012-05-24 19:24 ` Wolfgang Denk

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=20181026150401.366efbaa@crub \
    --to=agust@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 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.