From patchwork Wed Jul 24 08:12:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136121 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="mWcgc+fz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tp4r2BBFz9sLt for ; Wed, 24 Jul 2019 18:13:16 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E9A53C21BE5; Wed, 24 Jul 2019 08:12:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2BB8EC21D8A; Wed, 24 Jul 2019 08:12:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2EE83C21BE5; Wed, 24 Jul 2019 08:12:28 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id C2403C21C27 for ; Wed, 24 Jul 2019 08:12:27 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z1so45852942wru.13 for ; Wed, 24 Jul 2019 01:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PruRd7JbRGC0QRoLD6xqp3lsj4NYx8mvpDaDAgrJdtY=; b=mWcgc+fz8hw9tX2o1cwf/5erLqxhn1X/HvFpkbup2RaHjc8pdWM1vxFzBFEZvNwBb0 3kLzeCUgnUBTJsQxtgdXRpqIf/UeEN+6LKwu7KNrXRiXXOAH7Wn7+R2YCcQTFVMLWY1H SqAewTLRINRLQ/3i406JmvTcIfouqf8THEM3xWcdUnxH+PMq0idHJnmiRqnAemw7shGJ HkskqwOQb65NcBKSxTJc/1D2bcm0IJ5FlHjdiTDpVFzoYnmOL9dL14ABhvi4Y7zAs4fQ RDWPABraMP0b1CaHP7LMwDxWkmcjsGvGqKk91O05PfbyT6M87Cb/3BLq7P91ffmOBTmc Nljg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PruRd7JbRGC0QRoLD6xqp3lsj4NYx8mvpDaDAgrJdtY=; b=rzdrrZAB2awLMXFyPc3e2dagjMVjcbdKDJFONVHMLmLx0Y2nNamb8n5AlOuAPVHqD1 dltvKNYXrOzls8kPSg1t5lxfEVDhHIFJ6Qs3k5zMUCb9uDkb4YhQP0u3EG5oYzpXaxoJ ZOwQzIknlsLe7G1hP43hnKqdgV4vVSZ6bzIE5jbomxfZ1wMASrzdsJTp0kixqztSqPW2 Jgikn5wjL1m6g8sX7l0a98iWm2Rb6aMGkBvnrNR0CXGuYqF2Fpg8qNJmlyqn0R00Ax7a 8UU3HmeuHTyMhqNr1OI0/Ucc1gXgVeNjcc5Hl8gobK+Lu/9+nM4fX9VAruihOchazCf0 XjGQ== X-Gm-Message-State: APjAAAVRi9lRcHCSKz+ptpYe8j1v4MTgrm27xeCGT6DYhAFm2bg6l3l7 xe+S8DeZgQdbJpJVFs7FBXA= X-Google-Smtp-Source: APXvYqyO6FM1Saw0ZwrRbEYcPISWML26FJwNJ9/76+FpJAyozQ3RIxjJQXUabQSh5v1tTcBp2QEASQ== X-Received: by 2002:adf:80e1:: with SMTP id 88mr436409wrl.127.1563955947346; Wed, 24 Jul 2019 01:12:27 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:26 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:07 +0200 Message-Id: <20190724081220.12022-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 01/14] net: davinci_emac: convert to using the driver model X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski Now that we removed all legacy boards selecting TI_EMAC we can completely convert the driver code to using the driver model. This patch also updates all remaining users of davinci_emac. Signed-off-by: Bartosz Golaszewski Tested-by: Adam Ford #am3517-evm & da850-evm Reviewed-by: Ramon Fried --- arch/arm/mach-davinci/cpu.c | 13 ----- arch/arm/mach-omap2/omap3/emac.c | 3 +- board/davinci/da8xxevm/da850evm.c | 6 -- board/davinci/da8xxevm/omapl138_lcdk.c | 14 ----- board/logicpd/am3517evm/am3517evm.c | 1 - board/ti/ti816x/evm.c | 3 +- configs/am3517_evm_defconfig | 1 + configs/da850_am18xxevm_defconfig | 1 + configs/da850evm_defconfig | 1 + configs/da850evm_direct_nor_defconfig | 1 + configs/da850evm_nand_defconfig | 1 + configs/omapl138_lcdk_defconfig | 1 + configs/ti816x_evm_defconfig | 1 + drivers/net/ti/davinci_emac.c | 77 ++++++++++++++------------ include/netdev.h | 1 - 15 files changed, 51 insertions(+), 74 deletions(-) diff --git a/arch/arm/mach-davinci/cpu.c b/arch/arm/mach-davinci/cpu.c index f97ad3fc74..9fd6564d04 100644 --- a/arch/arm/mach-davinci/cpu.c +++ b/arch/arm/mach-davinci/cpu.c @@ -5,7 +5,6 @@ */ #include -#include #include #include @@ -90,15 +89,3 @@ int set_cpu_clk_info(void) gd->bd->bi_dsp_freq = 0; return 0; } - -/* - * Initializes on-chip ethernet controllers. - * to override, implement board_eth_init() - */ -int cpu_eth_init(bd_t *bis) -{ -#if defined(CONFIG_DRIVER_TI_EMAC) - davinci_emac_initialize(); -#endif - return 0; -} diff --git a/arch/arm/mach-omap2/omap3/emac.c b/arch/arm/mach-omap2/omap3/emac.c index c79e870183..fb0c9188f5 100644 --- a/arch/arm/mach-omap2/omap3/emac.c +++ b/arch/arm/mach-omap2/omap3/emac.c @@ -7,7 +7,6 @@ */ #include -#include #include #include @@ -24,5 +23,5 @@ int cpu_eth_init(bd_t *bis) reset &= ~CPGMACSS_SW_RST; writel(reset, &am35x_scm_general_regs->ip_sw_reset); - return davinci_emac_initialize(); + return 0; } diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index 5180128db4..43483d526a 100644 --- a/board/davinci/da8xxevm/da850evm.c +++ b/board/davinci/da8xxevm/da850evm.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -482,11 +481,6 @@ int board_eth_init(bd_t *bis) if (rmii_hw_init()) printf("RMII hardware init failed!!!\n"); #endif - if (!davinci_emac_initialize()) { - printf("Error: Ethernet init failed!\n"); - return -1; - } - return 0; } #endif /* CONFIG_DRIVER_TI_EMAC */ diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c index fe1bf44101..dd11551428 100644 --- a/board/davinci/da8xxevm/omapl138_lcdk.c +++ b/board/davinci/da8xxevm/omapl138_lcdk.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -229,19 +228,6 @@ int board_init(void) #ifdef CONFIG_DRIVER_TI_EMAC -/* - * Initializes on-board ethernet controllers. - */ -int board_eth_init(bd_t *bis) -{ - if (!davinci_emac_initialize()) { - printf("Error: Ethernet init failed!\n"); - return -1; - } - - return 0; -} - #endif /* CONFIG_DRIVER_TI_EMAC */ #define CFG_MAC_ADDR_SPI_BUS 0 diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c index 10031a4801..bfd4e78274 100644 --- a/board/logicpd/am3517evm/am3517evm.c +++ b/board/logicpd/am3517evm/am3517evm.c @@ -28,7 +28,6 @@ #include #include #include -#include #include "am3517evm.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/board/ti/ti816x/evm.c b/board/ti/ti816x/evm.c index 07a084bab8..240df8cbe1 100644 --- a/board/ti/ti816x/evm.c +++ b/board/ti/ti816x/evm.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -56,7 +55,7 @@ int board_eth_init(bd_t *bis) printf("Unable to read MAC address. Set \n"); } - return davinci_emac_initialize(); + return 0; } #ifdef CONFIG_SPL_BUILD diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig index b9f59f3291..5cb76322df 100644 --- a/configs/am3517_evm_defconfig +++ b/configs/am3517_evm_defconfig @@ -44,6 +44,7 @@ CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 CONFIG_SPL_NAND_SIMPLE=y +CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_PINCTRL=y diff --git a/configs/da850_am18xxevm_defconfig b/configs/da850_am18xxevm_defconfig index 7ecdc361ce..adcbe1d35d 100644 --- a/configs/da850_am18xxevm_defconfig +++ b/configs/da850_am18xxevm_defconfig @@ -50,6 +50,7 @@ CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y +CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_DM_SERIAL=y diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index c095058282..f7c679d3b5 100644 --- a/configs/da850evm_defconfig +++ b/configs/da850evm_defconfig @@ -59,6 +59,7 @@ CONFIG_SF_DEFAULT_SPEED=30000000 CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_SPI_FLASH_MTD=y +CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_PINCTRL=y diff --git a/configs/da850evm_direct_nor_defconfig b/configs/da850evm_direct_nor_defconfig index 166e77b8e3..9b1da07384 100644 --- a/configs/da850evm_direct_nor_defconfig +++ b/configs/da850evm_direct_nor_defconfig @@ -50,6 +50,7 @@ CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y +CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_PINCTRL=y diff --git a/configs/da850evm_nand_defconfig b/configs/da850evm_nand_defconfig index 7271016346..8f06b8592b 100644 --- a/configs/da850evm_nand_defconfig +++ b/configs/da850evm_nand_defconfig @@ -59,6 +59,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_SPI_FLASH_MTD=y +CONFIG_DM_ETH=y CONFIG_PINCTRL=y CONFIG_PINCTRL_SINGLE=y CONFIG_DM_SERIAL=y diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 48f251ebb8..466ae860cd 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -49,6 +49,7 @@ CONFIG_SPI_FLASH=y CONFIG_SF_DEFAULT_SPEED=30000000 CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y +CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_DM_SERIAL=y diff --git a/configs/ti816x_evm_defconfig b/configs/ti816x_evm_defconfig index 19519f8004..d341633fe1 100644 --- a/configs/ti816x_evm_defconfig +++ b/configs/ti816x_evm_defconfig @@ -47,6 +47,7 @@ CONFIG_SYS_I2C_OMAP24XX=y CONFIG_MMC_OMAP_HS=y CONFIG_NAND=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y +CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_SYS_NS16550=y diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c index 9d53984973..2bd9c51079 100644 --- a/drivers/net/ti/davinci_emac.c +++ b/drivers/net/ti/davinci_emac.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -107,8 +106,9 @@ static u_int8_t num_phy; phy_t phy[CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT]; -static int davinci_eth_set_mac_addr(struct eth_device *dev) +static int davinci_emac_write_hwaddr(struct udevice *dev) { + struct eth_pdata *pdata = dev_get_platdata(dev); unsigned long mac_hi; unsigned long mac_lo; @@ -118,12 +118,12 @@ static int davinci_eth_set_mac_addr(struct eth_device *dev) * Using channel 0 only - other channels are disabled * */ writel(0, &adap_emac->MACINDEX); - mac_hi = (dev->enetaddr[3] << 24) | - (dev->enetaddr[2] << 16) | - (dev->enetaddr[1] << 8) | - (dev->enetaddr[0]); - mac_lo = (dev->enetaddr[5] << 8) | - (dev->enetaddr[4]); + mac_hi = (pdata->enetaddr[3] << 24) | + (pdata->enetaddr[2] << 16) | + (pdata->enetaddr[1] << 8) | + (pdata->enetaddr[0]); + mac_lo = (pdata->enetaddr[5] << 8) | + (pdata->enetaddr[4]); writel(mac_hi, &adap_emac->MACADDRHI); #if defined(DAVINCI_EMAC_VERSION2) @@ -411,7 +411,7 @@ static void __attribute__((unused)) davinci_eth_gigabit_enable(int phy_addr) } /* Eth device open */ -static int davinci_eth_open(struct eth_device *dev, bd_t *bis) +static int davinci_emac_start(struct udevice *dev) { dv_reg_p addr; u_int32_t clkdiv, cnt, mac_control; @@ -447,7 +447,7 @@ static int davinci_eth_open(struct eth_device *dev, bd_t *bis) writel(1, &adap_emac->TXCONTROL); writel(1, &adap_emac->RXCONTROL); - davinci_eth_set_mac_addr(dev); + davinci_emac_write_hwaddr(dev); /* Set DMA 8 TX / 8 RX Head pointers to 0 */ addr = &adap_emac->TX0HDP; @@ -588,7 +588,7 @@ static void davinci_eth_ch_teardown(int ch) } /* Eth device close */ -static void davinci_eth_close(struct eth_device *dev) +static void davinci_emac_stop(struct udevice *dev) { debug_emac("+ emac_close\n"); @@ -619,8 +619,8 @@ static int tx_send_loop = 0; * This function sends a single packet on the network and returns * positive number (number of bytes transmitted) or negative for error */ -static int davinci_eth_send_packet (struct eth_device *dev, - void *packet, int length) +static int davinci_emac_send(struct udevice *dev, + void *packet, int length) { int ret_status = -1; int index; @@ -672,7 +672,7 @@ static int davinci_eth_send_packet (struct eth_device *dev, /* * This function handles receipt of a packet from the network */ -static int davinci_eth_rcv_packet (struct eth_device *dev) +static int davinci_emac_recv(struct udevice *dev, int flags, uchar **packetp) { volatile emac_desc *rx_curr_desc; volatile emac_desc *curr_desc; @@ -682,6 +682,7 @@ static int davinci_eth_rcv_packet (struct eth_device *dev) rx_curr_desc = emac_rx_active_head; if (!rx_curr_desc) return 0; + *packetp = rx_curr_desc->buffer; status = rx_curr_desc->pkt_flag_len; if ((status & EMAC_CPPI_OWNERSHIP_BIT) == 0) { if (status & EMAC_CPPI_RX_ERROR_FRAME) { @@ -693,7 +694,6 @@ static int davinci_eth_rcv_packet (struct eth_device *dev) rx_curr_desc->buff_off_len & 0xffff; invalidate_dcache_range(tmp, tmp + ALIGN(len, PKTALIGN)); - net_process_received_packet(rx_curr_desc->buffer, len); ret = len; } @@ -742,6 +742,7 @@ static int davinci_eth_rcv_packet (struct eth_device *dev) } return (ret); } + return (0); } @@ -750,30 +751,12 @@ static int davinci_eth_rcv_packet (struct eth_device *dev) * EMAC modules power or pin multiplexors, that is done by board_init() * much earlier in bootup process. Returns 1 on success, 0 otherwise. */ -int davinci_emac_initialize(void) +static int davinci_emac_probe(struct udevice *dev) { u_int32_t phy_id; u_int16_t tmp; int i; int ret; - struct eth_device *dev; - - dev = malloc(sizeof *dev); - - if (dev == NULL) - return -1; - - memset(dev, 0, sizeof *dev); - strcpy(dev->name, "DaVinci-EMAC"); - - dev->iobase = 0; - dev->init = davinci_eth_open; - dev->halt = davinci_eth_close; - dev->send = davinci_eth_send_packet; - dev->recv = davinci_eth_rcv_packet; - dev->write_hwaddr = davinci_eth_set_mac_addr; - - eth_register(dev); davinci_eth_mdio_enable(); @@ -854,5 +837,29 @@ int davinci_emac_initialize(void) phy[i].auto_negotiate(i); } #endif - return(1); + return 0; } + +static const struct eth_ops davinci_emac_ops = { + .start = davinci_emac_start, + .send = davinci_emac_send, + .recv = davinci_emac_recv, + .stop = davinci_emac_stop, + .write_hwaddr = davinci_emac_write_hwaddr, +}; + +static const struct udevice_id davinci_emac_ids[] = { + { .compatible = "ti,davinci-dm6467-emac" }, + { .compatible = "ti,am3517-emac", }, + { .compatible = "ti,dm816-emac", }, + { } +}; + +U_BOOT_DRIVER(davinci_emac) = { + .name = "davinci_emac", + .id = UCLASS_ETH, + .of_match = davinci_emac_ids, + .probe = davinci_emac_probe, + .ops = &davinci_emac_ops, + .platdata_auto_alloc_size = sizeof(struct eth_pdata), +}; diff --git a/include/netdev.h b/include/netdev.h index 0a1a3a2d8d..a40c4adaad 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -30,7 +30,6 @@ int bcm_sf2_eth_register(bd_t *bis, u8 dev_num); int bfin_EMAC_initialize(bd_t *bis); int calxedaxgmac_initialize(u32 id, ulong base_addr); int cs8900_initialize(u8 dev_num, int base_addr); -int davinci_emac_initialize(void); int dc21x4x_initialize(bd_t *bis); int designware_initialize(ulong base_addr, u32 interface); int dm9000_initialize(bd_t *bis); From patchwork Wed Jul 24 08:12:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136132 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="OzmV1MbD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tp5R6B3Fz9sBF for ; Wed, 24 Jul 2019 18:13:47 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 61ED2C21D56; Wed, 24 Jul 2019 08:13:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BE187C21DD3; Wed, 24 Jul 2019 08:12:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B16B4C21C29; Wed, 24 Jul 2019 08:12:31 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by lists.denx.de (Postfix) with ESMTPS id D6546C21C50 for ; Wed, 24 Jul 2019 08:12:28 +0000 (UTC) Received: by mail-wr1-f42.google.com with SMTP id f9so45843918wre.12 for ; Wed, 24 Jul 2019 01:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sD/81TSANU7OXXbodr9M15AoNiWepLK3nxv0cGh629g=; b=OzmV1MbDIJS1Gdi5SZhmGlQ/3nMjki3dLiwdVhJAOgQzhYBSp+qjfOiLYccSg4o7+t DGZy2Qr0RvWFk1+lHgoiI+CvTrJvCubPIuLchjav8qBG1LxU9Q6vp2tJd1QRTjZpOAzq 5+bKPZUD0zSQMRAcvyRJMoDMVFnQva33FDoWiDiQW6mJ4ovv6IZuE3O14iomFargffSe wFbZs+OSfuZ/Y0nLFfdr7wfwVvAB0QC3iwGkKpCOOG6ICJUClXUtXXK4xYcjyMhNgFNT P9S74zJDQGGbldT3ctXnSZ+5LZ7o3HvurHsRCTH1f/7NGHAeuYvc2WMS4h7seiv6CMCm sNbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sD/81TSANU7OXXbodr9M15AoNiWepLK3nxv0cGh629g=; b=EicUELH1bySrp5PqsnXpGD1zikCLd16kwISKpUiq6/BzyZOK8cZOPtQMtcVJ9daNFI 9OXU42+7KZe9KYCA3LiQYNQ5HBW6uCcIw9e5cVUPVmKWhUhxzEFm17XohtnO2005DJjx ylcTcJB1PuGYUMgd0R7rriPvBProo9pcx4BwN7X/IODB0d8mvkXwWUbO98yrdf2DD+4A stLHnsXeQfRyFAwRT/OpuAce0uBprGOOSeK9H5mylbPiqnV7UcOUrPOGzENGqL5k5mjw EqFRldENVCNQueBxCJov0c2sGIvQyIl3Q3IRTK5Qkhk7sySdAN0kvaibxGCDt0AsMlq9 h37w== X-Gm-Message-State: APjAAAVakknbV+QqsBRM4ALGJU7Jed22I225GRvf1sx3mXu3PVpt9c37 IFExSms92g2sIqaoor5zHSw= X-Google-Smtp-Source: APXvYqyfamO9YY0ckpVNbu0mlO5t4UkTpqFm9qxeb2oDq3JxjeO4RA2jjySyGYcWP96zI4D1cxD/Dw== X-Received: by 2002:adf:e504:: with SMTP id j4mr83865430wrm.222.1563955948550; Wed, 24 Jul 2019 01:12:28 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.27 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:28 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:08 +0200 Message-Id: <20190724081220.12022-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 02/14] davinci: remove CONFIG_DM_I2C_COMPAT from defconfigs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski This option is no longer used on any davinci board but still selected in defconfigs which causes the following warning: ===================== WARNING ====================== This board uses CONFIG_DM_I2C_COMPAT. Please remove (possibly in a subsequent patch in your series) before sending patches to the mailing list. ==================================================== Remove all references to CONFIG_DM_I2C_COMPAT from davinci. Signed-off-by: Bartosz Golaszewski Acked-by: Heiko Schocher --- configs/da850_am18xxevm_defconfig | 1 - configs/omapl138_lcdk_defconfig | 1 - include/configs/am3517_evm.h | 1 - include/configs/da850evm.h | 8 -------- include/configs/omapl138_lcdk.h | 8 -------- 5 files changed, 19 deletions(-) diff --git a/configs/da850_am18xxevm_defconfig b/configs/da850_am18xxevm_defconfig index adcbe1d35d..2291c548ba 100644 --- a/configs/da850_am18xxevm_defconfig +++ b/configs/da850_am18xxevm_defconfig @@ -43,7 +43,6 @@ CONFIG_DM=y CONFIG_SPL_DM=y CONFIG_DA8XX_GPIO=y CONFIG_DM_I2C=y -CONFIG_DM_I2C_COMPAT=y CONFIG_SYS_I2C_DAVINCI=y CONFIG_MTD_DEVICE=y CONFIG_DM_SPI_FLASH=y diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 466ae860cd..b5d41bd3f6 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -36,7 +36,6 @@ CONFIG_ENV_IS_IN_NAND=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DM=y CONFIG_DM_I2C=y -CONFIG_DM_I2C_COMPAT=y CONFIG_SYS_I2C_DAVINCI=y CONFIG_DM_MMC=y CONFIG_NAND=y diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h index e0521abe90..8afbe2d333 100644 --- a/include/configs/am3517_evm.h +++ b/include/configs/am3517_evm.h @@ -14,7 +14,6 @@ #include -#undef CONFIG_DM_I2C_COMPAT #define CONFIG_REVISION_TAG /* Hardware drivers */ diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h index ccdac0abec..5d02c35279 100644 --- a/include/configs/da850evm.h +++ b/include/configs/da850evm.h @@ -18,14 +18,6 @@ #define CONFIG_USE_SPIFLASH #endif -/* -* Disable DM_* for SPL build and can be re-enabled after adding -* DM support in SPL -*/ -#ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_I2C -#undef CONFIG_DM_I2C_COMPAT -#endif /* * SoC Configuration */ diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index da615e5063..db4a663c53 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -16,14 +16,6 @@ #undef CONFIG_USE_SPIFLASH #undef CONFIG_SYS_USE_NOR -/* -* Disable DM_* for SPL build and can be re-enabled after adding -* DM support in SPL -*/ -#ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_I2C -#undef CONFIG_DM_I2C_COMPAT -#endif /* * SoC Configuration */ From patchwork Wed Jul 24 08:12:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136139 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="NgFUauSe"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpBk3vBvz9sBF for ; Wed, 24 Jul 2019 18:18:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 37AB5C21DAF; Wed, 24 Jul 2019 08:14:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C347BC21DB5; Wed, 24 Jul 2019 08:12:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B48F2C21DC1; Wed, 24 Jul 2019 08:12:33 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id F1EBEC21D72 for ; Wed, 24 Jul 2019 08:12:29 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n9so20815218wrr.4 for ; Wed, 24 Jul 2019 01:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tE5lJA78CqVXh8bvWxMBpitVOFPd2+lgwzQn1Tsdtbo=; b=NgFUauSeUDXdqEmkgoUu1/o67mwre79i0uRq/xEVk2/cXEmxvIiFfTl86qLr858jgK 8EyLPlLvN7SH/abVuaGvUsQv0nZEVak86XT7XWRaFAVr724UfJboZwO1rgL5lozBxWYB PvUA5IRmVoi0XgB9NpdP+6NJNoiyYnGGZAVdHW/lUfVJVaHYqshpx/GTuoH3jZv0i8xN vVVIj9eHehfaYgTq279d5m/qc3Ghz5SYfHE91dfpudmZDcKmEq98qMYgcWVskCwW06xD VOD4WlRhZGVNLnZbS4OF9TOLzqTDE/TkMvW5T3VnoKf5B49uJBYsE+9DNxb1y3DFTGUD dExA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tE5lJA78CqVXh8bvWxMBpitVOFPd2+lgwzQn1Tsdtbo=; b=idu33pMI1rXqk+7F4hIF0JSDyjBAQBhIfvogDDvZ2+NuM0yZyXz+JVVm/+rvinh56Z jHd5t1/+xbfpJhFU5nvunYNDlyGrdj0j7bIQCgGPOL1kjkk5BAunlkVbhd2CMjvalg8K nlN6Se+yYKxBzndCojbSW6boXm/BcZRZkrxAciJNwbO9dynzOneXgGo2sIjTyr4zRQ7H 8Z4qOzzhgDetEzXbMvJe9Fh+jDtXrKa32akVQ+gMhPe+M7/dwCbXfCrH8JWfUJIOdRUq gdwDleBC+fC1/oflBdNGwd2tXg9k74iKTGKxAdc5kJMxh9CWiFE3pxdf4uVCpGsK6Jm7 lSfQ== X-Gm-Message-State: APjAAAWsr3s48R0L089LEBEcp4GyK0suKhBTxHQspfYBYd1iCtjFhSr+ cX2qRV8aAqo+So4qDEbwm1Y= X-Google-Smtp-Source: APXvYqxngwhmOEjDmOJEFg4VaQ6Sxry2wT2156PWkYuEUrfMp8miqSbZS5BcZfpx4ml9kVqh4oDIwA== X-Received: by 2002:a5d:5507:: with SMTP id b7mr85061641wrv.35.1563955949636; Wed, 24 Jul 2019 01:12:29 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:29 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:09 +0200 Message-Id: <20190724081220.12022-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 03/14] sandbox: remove CONFIG_DM_I2C_COMPAT from defconfigs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski There are no more "real" users of CONFIG_DM_I2C_COMPAT and we'll soon remove it altogether. Stop building it in sandbox mode. Signed-off-by: Bartosz Golaszewski Acked-by: Heiko Schocher --- Makefile | 2 +- configs/sandbox64_defconfig | 1 - configs/sandbox_defconfig | 1 - configs/sandbox_flattree_defconfig | 1 - configs/sandbox_noblk_defconfig | 1 - configs/sandbox_spl_defconfig | 1 - configs/tools-only_defconfig | 1 - 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 73fdf70cdd..57ffa4c99f 100644 --- a/Makefile +++ b/Makefile @@ -936,7 +936,7 @@ ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) endif endif endif -ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y) +ifeq ($(CONFIG_DM_I2C_COMPAT),y) @echo >&2 "===================== WARNING ======================" @echo >&2 "This board uses CONFIG_DM_I2C_COMPAT. Please remove" @echo >&2 "(possibly in a subsequent patch in your series)" diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index 827b8761cd..c177ff8ad5 100644 --- a/configs/sandbox64_defconfig +++ b/configs/sandbox64_defconfig @@ -89,7 +89,6 @@ CONFIG_BOARD=y CONFIG_BOARD_SANDBOX=y CONFIG_PM8916_GPIO=y CONFIG_SANDBOX_GPIO=y -CONFIG_DM_I2C_COMPAT=y CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_I2C_CROS_EC_LDO=y CONFIG_DM_I2C_GPIO=y diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 61391a7acd..068d311dca 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -104,7 +104,6 @@ CONFIG_PM8916_GPIO=y CONFIG_SANDBOX_GPIO=y CONFIG_DM_HWSPINLOCK=y CONFIG_HWSPINLOCK_SANDBOX=y -CONFIG_DM_I2C_COMPAT=y CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_I2C_CROS_EC_LDO=y CONFIG_DM_I2C_GPIO=y diff --git a/configs/sandbox_flattree_defconfig b/configs/sandbox_flattree_defconfig index af335285c9..a574144cd9 100644 --- a/configs/sandbox_flattree_defconfig +++ b/configs/sandbox_flattree_defconfig @@ -74,7 +74,6 @@ CONFIG_BOARD=y CONFIG_BOARD_SANDBOX=y CONFIG_PM8916_GPIO=y CONFIG_SANDBOX_GPIO=y -CONFIG_DM_I2C_COMPAT=y CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_I2C_CROS_EC_LDO=y CONFIG_DM_I2C_GPIO=y diff --git a/configs/sandbox_noblk_defconfig b/configs/sandbox_noblk_defconfig index da9229fc79..381bad2003 100644 --- a/configs/sandbox_noblk_defconfig +++ b/configs/sandbox_noblk_defconfig @@ -81,7 +81,6 @@ CONFIG_BOARD=y CONFIG_BOARD_SANDBOX=y CONFIG_PM8916_GPIO=y CONFIG_SANDBOX_GPIO=y -CONFIG_DM_I2C_COMPAT=y CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_I2C_CROS_EC_LDO=y CONFIG_DM_I2C_GPIO=y diff --git a/configs/sandbox_spl_defconfig b/configs/sandbox_spl_defconfig index 27034cfaa9..c40a79cc73 100644 --- a/configs/sandbox_spl_defconfig +++ b/configs/sandbox_spl_defconfig @@ -95,7 +95,6 @@ CONFIG_BOARD=y CONFIG_BOARD_SANDBOX=y CONFIG_PM8916_GPIO=y CONFIG_SANDBOX_GPIO=y -CONFIG_DM_I2C_COMPAT=y CONFIG_I2C_CROS_EC_TUNNEL=y CONFIG_I2C_CROS_EC_LDO=y CONFIG_DM_I2C_GPIO=y diff --git a/configs/tools-only_defconfig b/configs/tools-only_defconfig index aa73661a92..4808b49850 100644 --- a/configs/tools-only_defconfig +++ b/configs/tools-only_defconfig @@ -12,7 +12,6 @@ CONFIG_DEFAULT_DEVICE_TREE="sandbox" CONFIG_IP_DEFRAG=y # CONFIG_UDP_FUNCTION_FASTBOOT is not set CONFIG_SANDBOX_GPIO=y -CONFIG_DM_I2C_COMPAT=y CONFIG_PCI=y CONFIG_DM_PCI=y CONFIG_PCI_SANDBOX=y From patchwork Wed Jul 24 08:12:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136137 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="Oz8kABHM"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpB81Cl0z9sLt for ; Wed, 24 Jul 2019 18:17:52 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B854BC21C51; Wed, 24 Jul 2019 08:13:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B0958C21DF3; Wed, 24 Jul 2019 08:12:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B6AFCC21DAF; Wed, 24 Jul 2019 08:12:34 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id AD89DC21C6A for ; Wed, 24 Jul 2019 08:12:31 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id s15so19357398wmj.3 for ; Wed, 24 Jul 2019 01:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qr088eCI+qVS2D7el6+wavXr2euLlfp3tSM7uxS0ZWo=; b=Oz8kABHM30stDxtlvRBmYGBeeIVBhpsEJewyo+RvmfnRKzSamMWQO7DPEybbtMxG1W 6sqgMvhuLK83TChI78+PAzLN9879cELgBujZ2FdjVdf8j3btGnuM7CsrrhPBcJBlQv8n QP4+ZPFd3xrZxXE9UrxHuy3A6FD67r2oLHBBYx6RQKTtqfUUahv8YZMvkn9zkRRhlUnh hbbHIGdc9PnsHni/KAnJ2X0WVb/igJig6x0/VMF7OArFNFztQkGlv/BfxZmwL+/YOYfB t6vdgVnbkjL0P4VonbtaXdrvFbqjcJvq9D9SeZDwESH7gZNii6Hpwp8qLf+yMZBzSmMO qjnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qr088eCI+qVS2D7el6+wavXr2euLlfp3tSM7uxS0ZWo=; b=ChCqJGip/omm5XhNf7z4xtbEKRziJtEX9p4B1Jmew1df7tAsDibnKFQT/eXHSHtb7D oMMVrgH21qu4D2CW9GIWMKMx6k5vX4+FhD8v19sG+fS3NUCeYgbx0k+2jRr6clGPX63Q CmaQpBIG8MbXgkeHpFiAayWjC7rN0MhxTGnGCGPKGE73xcwvfj+/AQivyeB/VIPCFVSn xJzSOjmuuUMeIUPNFiv/7vY5ShOTxFVY8m0jVsYaTuoeSXLFhBYf54zdPBD9d/o2aK8+ ryFiLfAzmXu48r4n0X0zE0Bo87SQG171NxILRWjbvuW3ALNwzjTW9RFBt27vcZVXFpHU 0w2Q== X-Gm-Message-State: APjAAAXBlnA/mAFMYaKE9k/aEaBN+DhJtApv3PI3wcgCkWSl7UPohy6g OcdWFx61FycbxA/4dEYl8fo= X-Google-Smtp-Source: APXvYqxoVEYX5hYlu0NoIO1Tgjv0Lo7AiB5oAUWUtc0T2WXfXp2ctRPPyaWl44QhXbghU23k3MsUhQ== X-Received: by 2002:a7b:c4c1:: with SMTP id g1mr75607230wmk.14.1563955951048; Wed, 24 Jul 2019 01:12:31 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:30 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:10 +0200 Message-Id: <20190724081220.12022-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 04/14] i2c: remove i2c driver-model compatibility layer X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski There are no more users of the compatibility layer for i2c. Remove the driver and all references to it. Signed-off-by: Bartosz Golaszewski Acked-by: Heiko Schocher --- Makefile | 7 -- drivers/i2c/Kconfig | 13 +--- drivers/i2c/Makefile | 1 - drivers/i2c/i2c-uclass-compat.c | 128 -------------------------------- include/_exports.h | 3 +- include/exports.h | 3 +- include/i2c.h | 80 -------------------- 7 files changed, 3 insertions(+), 232 deletions(-) delete mode 100644 drivers/i2c/i2c-uclass-compat.c diff --git a/Makefile b/Makefile index 57ffa4c99f..4341a0494e 100644 --- a/Makefile +++ b/Makefile @@ -936,13 +936,6 @@ ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) endif endif endif -ifeq ($(CONFIG_DM_I2C_COMPAT),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board uses CONFIG_DM_I2C_COMPAT. Please remove" - @echo >&2 "(possibly in a subsequent patch in your series)" - @echo >&2 "before sending patches to the mailing list." - @echo >&2 "====================================================" -endif ifeq ($(CONFIG_MMC),y) ifneq ($(CONFIG_DM_MMC)$(CONFIG_OF_CONTROL)$(CONFIG_BLK),yyy) @echo >&2 "===================== WARNING ======================" diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 4772db3837..03d2fed341 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -12,18 +12,7 @@ config DM_I2C write and speed, is implemented with the bus drivers operations, which provide methods for bus setting and data transfer. Each chip device (bus child) info is kept as parent platdata. The interface - is defined in include/i2c.h. When i2c bus driver supports the i2c - uclass, but the device drivers not, then DM_I2C_COMPAT config can - be used as compatibility layer. - -config DM_I2C_COMPAT - bool "Enable I2C compatibility layer" - depends on DM - help - Enable old-style I2C functions for compatibility with existing code. - This option can be enabled as a temporary measure to avoid needing - to convert all code for a board in a single commit. It should not - be enabled for any board in an official release. + is defined in include/i2c.h. config I2C_CROS_EC_TUNNEL tristate "Chrome OS EC tunnel I2C bus" diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile index dc40055efb..c2f75d8755 100644 --- a/drivers/i2c/Makefile +++ b/drivers/i2c/Makefile @@ -3,7 +3,6 @@ # (C) Copyright 2000-2007 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. obj-$(CONFIG_DM_I2C) += i2c-uclass.o -obj-$(CONFIG_DM_I2C_COMPAT) += i2c-uclass-compat.o obj-$(CONFIG_DM_I2C_GPIO) += i2c-gpio.o obj-$(CONFIG_$(SPL_)I2C_CROS_EC_TUNNEL) += cros_ec_tunnel.o obj-$(CONFIG_$(SPL_)I2C_CROS_EC_LDO) += cros_ec_ldo.o diff --git a/drivers/i2c/i2c-uclass-compat.c b/drivers/i2c/i2c-uclass-compat.c deleted file mode 100644 index b3ade88113..0000000000 --- a/drivers/i2c/i2c-uclass-compat.c +++ /dev/null @@ -1,128 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (c) 2014 Google, Inc - */ - -#include -#include -#include -#include - -static int cur_busnum __attribute__((section(".data"))); - -static int i2c_compat_get_device(uint chip_addr, int alen, - struct udevice **devp) -{ - struct dm_i2c_chip *chip; - int ret; - - ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, alen, devp); - if (ret) - return ret; - chip = dev_get_parent_platdata(*devp); - if (chip->offset_len != alen) { - printf("I2C chip %x: requested alen %d does not match chip offset_len %d\n", - chip_addr, alen, chip->offset_len); - return -EADDRNOTAVAIL; - } - - return 0; -} - -int i2c_probe(uint8_t chip_addr) -{ - struct udevice *bus, *dev; - int ret; - - ret = uclass_get_device_by_seq(UCLASS_I2C, cur_busnum, &bus); - if (ret) { - debug("Cannot find I2C bus %d: err=%d\n", cur_busnum, ret); - return ret; - } - - if (!bus) - return -ENOENT; - - return dm_i2c_probe(bus, chip_addr, 0, &dev); -} - -int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, - int len) -{ - struct udevice *dev; - int ret; - - ret = i2c_compat_get_device(chip_addr, alen, &dev); - if (ret) - return ret; - - return dm_i2c_read(dev, addr, buffer, len); -} - -int i2c_write(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, - int len) -{ - struct udevice *dev; - int ret; - - ret = i2c_compat_get_device(chip_addr, alen, &dev); - if (ret) - return ret; - - return dm_i2c_write(dev, addr, buffer, len); -} - -int i2c_get_bus_num_fdt(int node) -{ - struct udevice *bus; - int ret; - - ret = uclass_get_device_by_of_offset(UCLASS_I2C, node, &bus); - if (ret) - return ret; - - return bus->seq; -} - -unsigned int i2c_get_bus_num(void) -{ - return cur_busnum; -} - -int i2c_set_bus_num(unsigned int bus) -{ - cur_busnum = bus; - - return 0; -} - -void i2c_init(int speed, int slaveaddr) -{ - /* Nothing to do here - the init happens through driver model */ -} - -void board_i2c_init(const void *blob) -{ - /* Nothing to do here - the init happens through driver model */ -} - -uint8_t i2c_reg_read(uint8_t chip_addr, uint8_t offset) -{ - struct udevice *dev; - int ret; - - ret = i2c_compat_get_device(chip_addr, 1, &dev); - if (ret) - return 0xff; - return dm_i2c_reg_read(dev, offset); -} - -void i2c_reg_write(uint8_t chip_addr, uint8_t offset, uint8_t val) -{ - struct udevice *dev; - int ret; - - ret = i2c_compat_get_device(chip_addr, 1, &dev); - if (!ret) - dm_i2c_reg_write(dev, offset, val); -} diff --git a/include/_exports.h b/include/_exports.h index c15050e30b..0dee05f077 100644 --- a/include/_exports.h +++ b/include/_exports.h @@ -40,8 +40,7 @@ EXPORT_FUNC(simple_strtol, long, simple_strtol, const char *, char **, unsigned int) EXPORT_FUNC(strcmp, int, strcmp, const char *cs, const char *ct) -#if defined(CONFIG_CMD_I2C) && \ - (!defined(CONFIG_DM_I2C) || defined(CONFIG_DM_I2C_COMPAT)) +#if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C) EXPORT_FUNC(i2c_write, int, i2c_write, uchar, uint, int , uchar * , int) EXPORT_FUNC(i2c_read, int, i2c_read, uchar, uint, int , uchar * , int) #else diff --git a/include/exports.h b/include/exports.h index a4b862f191..bf8d53c6b0 100644 --- a/include/exports.h +++ b/include/exports.h @@ -32,8 +32,7 @@ long simple_strtol(const char *cp, char **endp, unsigned int base); int strcmp(const char *cs, const char *ct); unsigned long ustrtoul(const char *cp, char **endp, unsigned int base); unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base); -#if defined(CONFIG_CMD_I2C) && \ - (!defined(CONFIG_DM_I2C) || defined(CONFIG_DM_I2C_COMPAT)) +#if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C) int i2c_write (uchar, uint, int , uchar* , int); int i2c_read (uchar, uint, int , uchar* , int); #endif diff --git a/include/i2c.h b/include/i2c.h index a5c760c711..33570f5404 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -271,86 +271,6 @@ int i2c_get_chip_offset_len(struct udevice *dev); */ int i2c_deblock(struct udevice *bus); -#ifdef CONFIG_DM_I2C_COMPAT -/** - * i2c_probe() - Compatibility function for driver model - * - * Calls dm_i2c_probe() on the current bus - */ -int i2c_probe(uint8_t chip_addr); - -/** - * i2c_read() - Compatibility function for driver model - * - * Calls dm_i2c_read() with the device corresponding to @chip_addr, and offset - * set to @addr. @alen must match the current setting for the device. - */ -int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, - int len); - -/** - * i2c_write() - Compatibility function for driver model - * - * Calls dm_i2c_write() with the device corresponding to @chip_addr, and offset - * set to @addr. @alen must match the current setting for the device. - */ -int i2c_write(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, - int len); - -/** - * i2c_get_bus_num_fdt() - Compatibility function for driver model - * - * @return the bus number associated with the given device tree node - */ -int i2c_get_bus_num_fdt(int node); - -/** - * i2c_get_bus_num() - Compatibility function for driver model - * - * @return the 'current' bus number - */ -unsigned int i2c_get_bus_num(void); - -/** - * i2c_set_bus_num() - Compatibility function for driver model - * - * Sets the 'current' bus - */ -int i2c_set_bus_num(unsigned int bus); - -static inline void I2C_SET_BUS(unsigned int bus) -{ - i2c_set_bus_num(bus); -} - -static inline unsigned int I2C_GET_BUS(void) -{ - return i2c_get_bus_num(); -} - -/** - * i2c_init() - Compatibility function for driver model - * - * This function does nothing. - */ -void i2c_init(int speed, int slaveaddr); - -/** - * board_i2c_init() - Compatibility function for driver model - * - * @param blob Device tree blbo - * @return the number of I2C bus - */ -void board_i2c_init(const void *blob); - -/* - * Compatibility functions for driver model. - */ -uint8_t i2c_reg_read(uint8_t addr, uint8_t reg); -void i2c_reg_write(uint8_t addr, uint8_t reg, uint8_t val); - -#endif - /** * struct dm_i2c_ops - driver operations for I2C uclass * From patchwork Wed Jul 24 08:12:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136138 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="lNHhUbbp"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpBQ3QFVz9sBF for ; Wed, 24 Jul 2019 18:18:06 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 05F91C21DE8; Wed, 24 Jul 2019 08:13:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A8B26C21DB6; Wed, 24 Jul 2019 08:12:51 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C80B5C21D83; Wed, 24 Jul 2019 08:12:35 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id 8BED2C21CB1 for ; Wed, 24 Jul 2019 08:12:32 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id a15so40890770wmj.5 for ; Wed, 24 Jul 2019 01:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w5CTZOcZ606h8M+pdenqzc/1Xym19QXVy9JkKPUwVFs=; b=lNHhUbbp2vELm2y/4z0XjtvkiwIZgQzzfJ3rdEhQAbpqLYwhR1XqDZjNpmVJR8/s8e Ve2DDXoHy5JIOofiwVVZbnj+Jb26+GWM2TjPn8WaO/M6nGyFdOEtjlanAl/OImgkJV1W /pV54dUHL3n/QFxtGr9HhcIE6JHDKSisZ9O0WKQjBz4+KSRDvyXr7K52BGTs7bEVZEKC CrPlqOyfdBW3ISYsM+bWq09dBgnoH27ohRdWiU7Zw7ZOxFjeOnsVflsD6bG1uiIWE4dC FjtRb1kCTvJBD81txkRm0JwGqSVm+892dsDktRtvcNdkQEITr3XMUeegjuTK+6LubmTc J/2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w5CTZOcZ606h8M+pdenqzc/1Xym19QXVy9JkKPUwVFs=; b=rdDCvplgY3cWXBTGcQXifczo7j20Fc/t0N8IgSrXlMbHH3J/QKc/BkVjhb7N+qtHs5 i7hKGXqK+aL6e/vRTnbHkDvQG9+i+zGoYot3meyqkG2goSLmH39tR2h3PxVQXMPQnYVQ BHShiHO3YKARj/G92pOJi2MH86dWrZ8EFnWiW7z1JzX6RvfAjqI/trp6680pbUpx9Qyh P5mOTC3MmwlMtKMfoHtkMnKsF30vZHcviBbAyQkLEn3vHFBsRbZX9Oyg08/ekSRs8S6P tFUClHZRTG9tKwaPW6jAVhT+7LvJ/BBuHqhz6301s7DgfsKVz0wnLoS9OEitNPiEPmyT kVsA== X-Gm-Message-State: APjAAAVY4VeaIqGkLIXsWIT3+YHoS+JxhLtsAig1TxPJWuuk9vlgKhyM D8TN0tJLIFcfznOz2+M4z+U2IBRP X-Google-Smtp-Source: APXvYqzz1rVnVIuxEhDsq2YehaFk+cN9xiHPquX16Q2a3kxQZzHRilCDFEDLceN87Sfy7nASJ5xRtQ== X-Received: by 2002:a1c:5f87:: with SMTP id t129mr77084252wmb.150.1563955952231; Wed, 24 Jul 2019 01:12:32 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:31 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:11 +0200 Message-Id: <20190724081220.12022-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 05/14] omapl138_lcdk_defconfig: don't build support for SPI X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski The following warning is emited when building u-boot for da850-lcdk: ===================== WARNING ====================== This board does not use CONFIG_DM_SPI. Please update the board before v2019.04 for no dm conversion and v2019.07 for partially dm converted drivers. Failure to update can lead to driver/board removal See doc/driver-model/MIGRATION.txt for more info. ==================================================== ===================== WARNING ====================== This board does not use CONFIG_DM_SPI_FLASH. Please update the board to use CONFIG_SPI_FLASH before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/MIGRATION.txt for more info. ==================================================== While we could fix it by selecting CONFIG_DM_SPI, there's no need to build it at all as SPI is disabled on da850-lcdk. Remove all unneeded options from the defconfig. Signed-off-by: Bartosz Golaszewski Acked-by: Heiko Schocher --- configs/omapl138_lcdk_defconfig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index b5d41bd3f6..7752308564 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -26,6 +26,7 @@ CONFIG_CRC32_VERIFY=y # CONFIG_CMD_FLASH is not set # CONFIG_CMD_GPIO is not set CONFIG_CMD_NAND=y +# CONFIG_CMD_SPI is not set # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_MTDPARTS=y CONFIG_CMD_DIAG=y @@ -44,14 +45,9 @@ CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y CONFIG_SYS_NAND_U_BOOT_OFFS=0x28000 CONFIG_SPL_NAND_SIMPLE=y -CONFIG_SPI_FLASH=y CONFIG_SF_DEFAULT_SPEED=30000000 -CONFIG_SPI_FLASH_STMICRO=y -CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_DM_SERIAL=y CONFIG_SYS_NS16550=y -CONFIG_SPI=y -CONFIG_DAVINCI_SPI=y From patchwork Wed Jul 24 08:12:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136133 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="OUtwhdt6"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tp7c5NBqz9s4Y for ; Wed, 24 Jul 2019 18:15:40 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 72264C21DCA; Wed, 24 Jul 2019 08:13:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 47E8DC21DA6; Wed, 24 Jul 2019 08:12:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 755D2C21DA2; Wed, 24 Jul 2019 08:12:36 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id 9067AC21D4A for ; Wed, 24 Jul 2019 08:12:33 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id 31so45934393wrm.1 for ; Wed, 24 Jul 2019 01:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rJLzpiJKWu5iHMbmy8U1VZWYT1UvmtlVkjYTnjWpbyI=; b=OUtwhdt64i4kQcN8vcqJlYqjfe4kgsbzpjM/o6MNCuY+qsuNwpIYCrwbfunFa8jG+u IA8p87g3IRUHwYT2UWzUvrYvioUnFlIH4o62MREfJGIsAnK/GZ426ZI7q/eYoY+GhcK+ N914ag13AvM9YsxyWQtdX0LyLfuflXr7WkRQ56glFOiuHVhDT/sbNhUvEj0Y2jt7G3vs YkSdQ/Ely0WH2waH8nwlno+vHnvaFRxLLX7oSUcIY8Rq3i8B36z92ULB+V3c/vYNYP+E ZbYctqh88ZNEg0f/NW4eSFVbslB7v9E1t9/29X9E4qz24zqqrzajqca3BzJ5S/MJ2zcy r8sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rJLzpiJKWu5iHMbmy8U1VZWYT1UvmtlVkjYTnjWpbyI=; b=PFQQk1CCCHsXt/yrjx8N5utuHtOaiqMl3Yqu8GTxXh7PY+yLxrQnKOSXmJ9ems2f8f 1T+nyoP3hVzkqwqwzGU2gP3dzQZjKHWrMRKrhNMU37UY/C9r6GL0CVLBkRPImEwqjlDM MKZoxCrtrMpn88z37V9sPb/ZQIsZIFgDtHEAPSEYBvvpUQHsFUHkX2Kh6946yTtw7muo TJOiyELqDAx6OpCvnkGXJipxMX4hZqpp4al1rj/EeMl1p9IuMVbvJfFSmbVlOfW12wS2 1d7eogxLPal9A22UoQdYjV11dEgrIh7j8eao/8NeiTptcLGfC0oowstGAazy1T34oojC dyFg== X-Gm-Message-State: APjAAAXyOYINy6GWC7wygoXvUyX1xQb8diNoZ2/PM2D5i3AxccgF6xHo 6s6rAkRNRLoyQbjYWSzBdYE= X-Google-Smtp-Source: APXvYqyjm/vOfeDZWpLEbNmoMsEGAVMc/WXGjfgaefD7UV7G6LDuvLdm2SvnY6Y47ubGbullvSBseg== X-Received: by 2002:adf:f1d1:: with SMTP id z17mr13907573wro.190.1563955953247; Wed, 24 Jul 2019 01:12:33 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:32 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:12 +0200 Message-Id: <20190724081220.12022-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 06/14] nand: davinci: make davinci_nand_init() static X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski This function is only used within the driver itself. No need to export it. Signed-off-by: Bartosz Golaszewski --- arch/arm/include/asm/ti-common/davinci_nand.h | 2 -- drivers/mtd/nand/raw/davinci_nand.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/include/asm/ti-common/davinci_nand.h b/arch/arm/include/asm/ti-common/davinci_nand.h index e26381c7fd..28842c3b15 100644 --- a/arch/arm/include/asm/ti-common/davinci_nand.h +++ b/arch/arm/include/asm/ti-common/davinci_nand.h @@ -95,6 +95,4 @@ struct davinci_emif_regs { #define DAVINCI_ABCR_ASIZE_16BIT 1 #define DAVINCI_ABCR_ASIZE_8BIT 0 -void davinci_nand_init(struct nand_chip *nand); - #endif diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index cfa9b535c8..e1c4498cb9 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -730,7 +730,7 @@ static int nand_davinci_dev_ready(struct mtd_info *mtd) return __raw_readl(&davinci_emif_regs->nandfsr) & 0x1; } -void davinci_nand_init(struct nand_chip *nand) +static void davinci_nand_init(struct nand_chip *nand) { #if defined CONFIG_KEYSTONE_RBL_NAND int i; From patchwork Wed Jul 24 08:12:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136136 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="tImwUcFC"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tp9G2bdjz9sBF for ; Wed, 24 Jul 2019 18:17:06 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 395B2C21DAF; Wed, 24 Jul 2019 08:14:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4AA74C21C6A; Wed, 24 Jul 2019 08:12:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C570BC21BE5; Wed, 24 Jul 2019 08:12:37 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by lists.denx.de (Postfix) with ESMTPS id C08D8C21C2F for ; Wed, 24 Jul 2019 08:12:34 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id p74so40869499wme.4 for ; Wed, 24 Jul 2019 01:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sTEK2pofny/nSHKajSFJKyK4/BgtSqlqA/hSFjRmV4E=; b=tImwUcFC0sjs1V8yTqPZ7BJcGwPGBowclI4q/4BrbIHgQL2rKKYy+bEB+YrbGTQMeJ jr8J4b0jrvBJExFQBOYLsodgIKpdisBBAwSUk6Z998OW8Of+3y4f3MfD59+8LwYvx4Zo GSNsActkYxq4CsNabBiOqioA4sW5+3zksi41E50+RuPXG7ye2ECBIGRlhS5lJKqZOjlu R7k6Bl+vxCMM+jozV4BWF1RXtgUEptkmXI9axp5qQxca0ko/Hj3/c8Qv0i3RwBEjtRfw 4b8aSnk0QjftkmGlaLZcYyXeHYaWgtmMFVdgYC+gXWi8X+iHLF2YB+fdEAhoUCz3QBCK UjEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sTEK2pofny/nSHKajSFJKyK4/BgtSqlqA/hSFjRmV4E=; b=df1/5JI1XNz7R8Ccxgvh72ad80UilC3DMsB8zBXOU+Uycra3K64XbWP/AZ688AfLU7 9JIoybYqYMAfK4NQJGk0MldZ1zv9s7zRwKo/8ru6t5vxluTOGcZn0E913dH6QFRVYG1t 5ek6y7NtbFpD0aBjUKMiMWpFH68/LvYK1Fc8B1lpkicr5Frx0Sz6g0CseQPJHu1D8330 hHxLN7nbgGV/YlDtpI1vIeCOv5qVFIQUO+eJgQ5J9ygJuHy/ImyNr0ee+AplqPAdgKR0 wZEl2Zn3ctMSakjIaFCFdvDQipBHlXFKKAWA5ksam2DaPeN2HFFvIdzp3K3BKMlejogl Q87Q== X-Gm-Message-State: APjAAAU0fOBGTpx+WDQW2AwNTVJdsmguxCbVSqRpNunA87BeSHsmZnl8 bJYC07I0xkGLHXZMyl6H/cw= X-Google-Smtp-Source: APXvYqy5rm4jZ55nKSz9UV3PfvVrOW2kv+Vr1pomXnmQ2LqNzIzzuR47X7miaPiDQMVowwt37iLvxA== X-Received: by 2002:a1c:b457:: with SMTP id d84mr77310295wmf.153.1563955954424; Wed, 24 Jul 2019 01:12:34 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:33 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:13 +0200 Message-Id: <20190724081220.12022-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 07/14] nand: davinci: add support for driver model X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski Extend the davinci NAND driver to support the driver model. For now this doesn't add any device-tree parsing due to the fact that we can't access the actual nand node on the device-tree - it's a subnode of the aemif device and we don't have an aemif driver on davinci at the moment. Signed-off-by: Bartosz Golaszewski --- drivers/mtd/nand/raw/davinci_nand.c | 46 ++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index e1c4498cb9..33c2f16be8 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -31,6 +31,7 @@ #include #include #include +#include #include /* Definitions for 4-bit hardware ECC */ @@ -785,10 +786,53 @@ static void davinci_nand_init(struct nand_chip *nand) nand->dev_ready = nand_davinci_dev_ready; } -int board_nand_init(struct nand_chip *chip) __attribute__((weak)); +#ifdef CONFIG_SYS_NAND_SELF_INIT +static int davinci_nand_probe(struct udevice *dev) +{ + struct nand_chip *nand = dev_get_priv(dev); + struct mtd_info *mtd = nand_to_mtd(nand); + int ret; + + nand->IO_ADDR_R = (void __iomem *)CONFIG_SYS_NAND_BASE; + nand->IO_ADDR_W = (void __iomem *)CONFIG_SYS_NAND_BASE; + + davinci_nand_init(nand); + + ret = nand_scan(mtd, CONFIG_SYS_NAND_MAX_CHIPS); + if (ret) + return ret; + + return nand_register(0, mtd); +} + +static const struct udevice_id davinci_nand_ids[] = { + { .compatible = "ti,davinci-nand" }, + { } +}; + +U_BOOT_DRIVER(davinci_nand) = { + .name = "davinci-nand", + .id = UCLASS_MTD, + .of_match = davinci_nand_ids, + .probe = davinci_nand_probe, + .priv_auto_alloc_size = sizeof(struct nand_chip), +}; + +void board_nand_init(void) +{ + struct udevice *dev; + int ret; + ret = uclass_get_device_by_driver(UCLASS_MTD, + DM_GET_DRIVER(davinci_nand), &dev); + if (ret && ret != -ENODEV) + pr_err("Failed to initialize %s: %d\n", dev->name, ret); +} +#else +int board_nand_init(struct nand_chip *chip) __attribute__((weak)); int board_nand_init(struct nand_chip *chip) { davinci_nand_init(chip); return 0; } +#endif /* CONFIG_SYS_NAND_SELF_INIT */ From patchwork Wed Jul 24 08:12:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136140 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="lWPlUhiG"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpBt4PVpz9sBF for ; Wed, 24 Jul 2019 18:18:30 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 343E0C21C4A; Wed, 24 Jul 2019 08:14:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 551EEC21E15; Wed, 24 Jul 2019 08:12:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0BA29C21C51; Wed, 24 Jul 2019 08:12:38 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id DC511C21CB6 for ; Wed, 24 Jul 2019 08:12:35 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v19so40739387wmj.5 for ; Wed, 24 Jul 2019 01:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/EBJ9TxLUJ1qk+15kbBhgjsOsvx/F2bnSoAFZxTaLNo=; b=lWPlUhiGEJBgP+uoZGjNjG91K/XFyQmXxV0EwuZ/KMfB7e/Zvr8bkLVwfG+++R4fxi qcC2MUQXhLOCpx5/sksFwftJggKTM7BVbcpl2kZt21U1svUO7lw2IvYrb4lwy+5m2LDV J2fnowHMOGHO+7zY1gNkISNpKeeV0EvMc2wyioe+a1qHO2xJT7Z7APIVMVLNUVPhcDRi wbmb1SO7Zkr+DVBO8ETiVYHtoAe4KbUIIMZcDay/W+lgL3r0e2THR6L2kyJUwAioXnUx 2VOuLcx/Su9SVC0XvjQueRLyemXZDDKxLPNDPwUmegDgar4les93iLFRaIsELfatL4CS x+bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/EBJ9TxLUJ1qk+15kbBhgjsOsvx/F2bnSoAFZxTaLNo=; b=Vw14kmqUwHecbsmVx/ZHU1C0nG1CuBW0CAlu0Pb38i99YkS42L/4Q57ght063I/hZV /yMAcFv72/Z7DhaQWzpIEKKakO4lIw00wC5RWX9TalLorv/Ie1pSVC2spvpXA/JquuYM 1fDdimqNRoRBZg9TqHz8YNqjJXRJkA09lvrMeO43OA36EL2UGiPyZP5/uqprfuBEXn/G inz72nNWpdWAYGp/SnHAbD8PVKTf+Y5MOh5qYtYNaKigJpAxqLPa5CsZ93Jn7/S4aPMH QBlfGaCwetAyO2sILinxtzOzZWy7TnM2P0gAHeq0PAwjaVG5F+H6wI6V5nGMNf2u4UWT 1aWA== X-Gm-Message-State: APjAAAUgMMnncV6KeZr0ItrcbSdWjYMtUOn9PphIdFB6RPcToRINm9OY GXLHM4LI+0Ki1mueRcn2tg0= X-Google-Smtp-Source: APXvYqxK1ILWXmpPehdadmH53nu62gM/6CEpKM99DnZrEPItKsT/EyzcHn2lQbzhLerco6hoicrQGg== X-Received: by 2002:a1c:c706:: with SMTP id x6mr71697184wmf.162.1563955955522; Wed, 24 Jul 2019 01:12:35 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:35 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:14 +0200 Message-Id: <20190724081220.12022-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 08/14] davinci: omapl138-lcdk: enable driver model for NAND X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski Enable the driver-model on da850-lcdk. We need to add a dummy nand node to the device tree, as the real nand node is a sub-node of the aemif device. On linux the aemif driver populates all its child nodes, but we can't do it in u-boot currently. Signed-off-by: Bartosz Golaszewski --- arch/arm/dts/da850-lcdk-u-boot.dtsi | 4 ++++ configs/omapl138_lcdk_defconfig | 1 + include/configs/omapl138_lcdk.h | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/arch/arm/dts/da850-lcdk-u-boot.dtsi b/arch/arm/dts/da850-lcdk-u-boot.dtsi index 80dda8ef58..541f4ca200 100644 --- a/arch/arm/dts/da850-lcdk-u-boot.dtsi +++ b/arch/arm/dts/da850-lcdk-u-boot.dtsi @@ -9,4 +9,8 @@ aliases { i2c0 = &i2c0; }; + + nand { + compatible = "ti,davinci-nand"; + }; }; diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 7752308564..fa4ce692ff 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -39,6 +39,7 @@ CONFIG_DM=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_DAVINCI=y CONFIG_DM_MMC=y +CONFIG_MTD=y CONFIG_NAND=y CONFIG_NAND_DAVINCI=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index db4a663c53..20fd7ff713 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -168,6 +168,10 @@ #define CONFIG_SPL_NAND_DRIVERS #define CONFIG_SPL_NAND_ECC #define CONFIG_SPL_NAND_LOAD + +#ifndef CONFIG_SPL_BUILD +#define CONFIG_SYS_NAND_SELF_INIT +#endif #endif #ifdef CONFIG_SYS_USE_NOR From patchwork Wed Jul 24 08:12:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136154 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="w6qknnlN"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpDg2Tmfz9sBF for ; Wed, 24 Jul 2019 18:20:03 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 10CEEC21E29; Wed, 24 Jul 2019 08:14:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D88B8C21E26; Wed, 24 Jul 2019 08:12:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5A148C21D4A; Wed, 24 Jul 2019 08:12:39 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id 0257BC21DA6 for ; Wed, 24 Jul 2019 08:12:37 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id g17so45898646wrr.5 for ; Wed, 24 Jul 2019 01:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oQV3N9DzMUhnPOCHU9i8fTKm9+xdESXqjRJAwN9hdUo=; b=w6qknnlNX8ospRC7gg0N6bEG8wEc6EHyK+a4FUvqVw60PlsR3CetD7MgdyvBSw/xuj NriFvCl2KOONx8adNCwU11LcNgUiruPij5ycKR286v6DTWYWbBM2YOUBMEqxZLzhKcdm 6w9KwH9dOQg1loEavOFrTXb8SCRFYX3VT1k0uUBxomFf58GLnjzegHvz0dGvXs5OrecV zc7CPNCxdbq8xrtLJt6BVp3XW41lX0v68QXiU1imMNSkf/IWXH6fdbECkqw3ruc6tSp2 beL86ubetkqXxUn8aGoxkGBpQsSsPMh5yjItX363wpyn41D6tRRJ/TgMFOzQGAgK5RaB tjZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oQV3N9DzMUhnPOCHU9i8fTKm9+xdESXqjRJAwN9hdUo=; b=b8fl0kPgIMOdMQzDxGomkN2cTNwlS8FHPwYdpVcu/hzi1OM3y22giefWOtE7s0eY/m 5eJqhYMX6T2FiYId4F35umxoJrA5lbJKx+Z26Gw1J16JefuE3MWX2Xho5Ea6/6pO51RI ACKIoIXX1RgcfR8wxwYLj/ptMgDcXE3NZaEwVgXUT1LZVWVpjtRnd2b7EnXstp9k3dy5 mFChaQMsaH2MvrhY3zgoUcABxk1IreU3hfLIyRZc2w+ZtL/x2urH6hT2CqMHJtT3TgBI quZUVcKt9heAjY+xXL8DbRkoZFF5iyz1Gn5wQkH0hKwUVcSqbSqJiFi2ImV7OHHrrsc3 QfWw== X-Gm-Message-State: APjAAAWd42n1gOY5ENB1LfqjbCga9XmgNOMdQ7lyhCAYpBQ+Y3Je9+f/ jSXgMh03Kh0fdpWj2ssIdjM= X-Google-Smtp-Source: APXvYqxzeUxOnndrK7zHRafTA4eMNFP8V2tI/x9rJ2/SGgIYPkwyiwTSlqCWzc3AWkWVDOAlSsW6Og== X-Received: by 2002:adf:e552:: with SMTP id z18mr88709720wrm.45.1563955956669; Wed, 24 Jul 2019 01:12:36 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:36 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:15 +0200 Message-Id: <20190724081220.12022-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 09/14] davinci: da850-evm: enable driver model for NAND X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski Enable the driver-model on da850-evm. We need to add a dummy nand node to the device tree, as the real nand node is a sub-node of the aemif device. On linux the aemif driver populates all its child nodes, but we can't do it in u-boot currently. Signed-off-by: Bartosz Golaszewski Tested-by: Adam Ford #da850-evm --- arch/arm/dts/da850-evm-u-boot.dtsi | 4 ++++ configs/da850evm_defconfig | 1 + configs/da850evm_direct_nor_defconfig | 1 + configs/da850evm_nand_defconfig | 1 + include/configs/da850evm.h | 4 ++++ 5 files changed, 11 insertions(+) diff --git a/arch/arm/dts/da850-evm-u-boot.dtsi b/arch/arm/dts/da850-evm-u-boot.dtsi index 1683f3472e..d9e8b9926a 100644 --- a/arch/arm/dts/da850-evm-u-boot.dtsi +++ b/arch/arm/dts/da850-evm-u-boot.dtsi @@ -10,6 +10,10 @@ soc@1c00000 { u-boot,dm-spl; }; + + nand { + compatible = "ti,davinci-nand"; + }; }; &flash { diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index f7c679d3b5..0f93d88cc6 100644 --- a/configs/da850evm_defconfig +++ b/configs/da850evm_defconfig @@ -52,6 +52,7 @@ CONFIG_DA8XX_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_DAVINCI=y CONFIG_DM_MMC=y +CONFIG_MTD=y CONFIG_MTD_DEVICE=y CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH=y diff --git a/configs/da850evm_direct_nor_defconfig b/configs/da850evm_direct_nor_defconfig index 9b1da07384..152ec7ae9a 100644 --- a/configs/da850evm_direct_nor_defconfig +++ b/configs/da850evm_direct_nor_defconfig @@ -42,6 +42,7 @@ CONFIG_DA8XX_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_DAVINCI=y # CONFIG_MMC is not set +CONFIG_MTD=y CONFIG_MTD_NOR_FLASH=y CONFIG_FLASH_CFI_DRIVER=y CONFIG_SYS_FLASH_PROTECTION=y diff --git a/configs/da850evm_nand_defconfig b/configs/da850evm_nand_defconfig index 8f06b8592b..30ffba2d73 100644 --- a/configs/da850evm_nand_defconfig +++ b/configs/da850evm_nand_defconfig @@ -49,6 +49,7 @@ CONFIG_DM_GPIO=y CONFIG_DA8XX_GPIO=y CONFIG_DM_I2C=y CONFIG_DM_MMC=y +CONFIG_MTD=y CONFIG_NAND=y CONFIG_NAND_DAVINCI=y CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h index 5d02c35279..9b4b8f2c94 100644 --- a/include/configs/da850evm.h +++ b/include/configs/da850evm.h @@ -174,6 +174,10 @@ #define CONFIG_SPL_NAND_DRIVERS #define CONFIG_SPL_NAND_ECC #define CONFIG_SPL_NAND_LOAD + +#ifndef CONFIG_SPL_BUILD +#define CONFIG_SYS_NAND_SELF_INIT +#endif #endif /* From patchwork Wed Jul 24 08:12:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136134 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="Ul6gucrF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tp7h37bhz9s4Y for ; Wed, 24 Jul 2019 18:15:44 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2348DC21D9A; Wed, 24 Jul 2019 08:13:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 21F82C21DFD; Wed, 24 Jul 2019 08:12:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 442A9C21DB6; Wed, 24 Jul 2019 08:12:41 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id 1B5E3C21D9A for ; Wed, 24 Jul 2019 08:12:38 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id w9so32848397wmd.1 for ; Wed, 24 Jul 2019 01:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7KxoLzPnzcwaSX2eyIGkP4v5cB7XdYWasazXPbxdC0A=; b=Ul6gucrFOAsI5CWTPuuaPe+QqINQpuGxESen3/F398FOLiU/FDLQ6d1XVmOBXh+LQt v5x/hdD1T1JgWoHP4gs8uFiFHnYS0Fi3ZBiZgKL8CWU3/fDtxm3EVnTap8hfGezPIwAD 3ER38hSjEItp3Dm302qnz3Ebl1iN1rwqnvoTj2wiFsXscLSN5Hk9hJDWFPqvBjiVoleO NBwg3BSHqiLg+z3jzsS0TE/WR9TaZs1za1+uaFpJmOMBZfq6S+z+2j0Ax7HG5tynijDr f5PVTzTAMeqON0UbU7zmnEjWyKxSkPZMovSdFER8kzpGMGbwQIeAZzJeTEpUhaKxdlJ4 EfsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7KxoLzPnzcwaSX2eyIGkP4v5cB7XdYWasazXPbxdC0A=; b=nmWiGJeuR+oC48FIfbXyHfRaNMoR7KJkisozi03PBO4rUlmKCptIPDmk/l+Trd2PQZ aaPesbzgcP6jLdQ7TUXGVrDLSUNECvPe7Lir4OIFOBAEwsuezA5RhMVnbzGLDggTlPRH 5xH+WnuTlkniDgBGdhukMUNzXTlnenVAvVM5/nfWYTyljT2XKrOXfVA8ndVeYvo3hDl/ 4EIl+PdbqxMLGvcLhX/BMl+xdnZ7gl+vHUFCl4Zc8+TWcUPMNM/GQQm91em0BLEomzqe Asztzd6XgiuHOVaEL8UuhCmXrM3mGH6oCY+rb87yqqMXn85UtOLuG+3dnMmVbEqjpaSJ NoGw== X-Gm-Message-State: APjAAAXt0vgh4dCyR6UX5jmFWHZZlJC//hUC5nMIYdluxeZhqbpuaSVk J0T3YLOWY1+YYO+Gwl6q2zw= X-Google-Smtp-Source: APXvYqxMYHpjPwwxl6XOeaWkl5AhJBWwpZrTNG7IIoMMGuBdEV47qmhQ2fWy8zscB/0aeDH+I75vdA== X-Received: by 2002:a1c:9e4d:: with SMTP id h74mr76836000wme.9.1563955957759; Wed, 24 Jul 2019 01:12:37 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:37 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:16 +0200 Message-Id: <20190724081220.12022-11-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 10/14] davinci: omapl138-lcdk: enable SPL_SYS_MALLOC_SIMPLE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski We're working towards enabling the driver model in SPL for da850-lcdk. Enable SPL_SYS_MALLOC_SIMPLE in defconfig to reduce SPL size. Signed-off-by: Bartosz Golaszewski --- configs/omapl138_lcdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index fa4ce692ff..bfb88e397a 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -18,6 +18,7 @@ CONFIG_VERSION_VARIABLE=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL_TEXT_BASE=0x80000000 +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xb5 CONFIG_SPL_NAND_SUPPORT=y CONFIG_HUSH_PARSER=y From patchwork Wed Jul 24 08:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136142 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="QfTdrYCL"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpCX5H0bz9sBF for ; Wed, 24 Jul 2019 18:19:04 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5F4D0C21E08; Wed, 24 Jul 2019 08:15:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 05356C21DF8; Wed, 24 Jul 2019 08:13:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3A926C21DE8; Wed, 24 Jul 2019 08:12:43 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 443FCC21CB6 for ; Wed, 24 Jul 2019 08:12:39 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id y4so45909918wrm.2 for ; Wed, 24 Jul 2019 01:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OzeIBQy/npsyS04kSnwEmUIx1HGVcp4VsXGGtshUuGk=; b=QfTdrYCLeq4js4MhwkngMZjjLuc4MOjFmHFXQICanY46zsMgrYVTAxX93EW80cjdiT Fmqv8BiKVuNYq9StYNcTgmKwq1BOSQTi2ZY/fJIT88SPNoBCTqcLRnzbVvwGNqovc8OU Qf/79w3E3aHrYyymAdfyi3z8TswFZApdxZWyVnAmtY/TY7qvU5tTS7qxL+DZAHcO3r3p 4BXkhtbmBf8OuScqn2sYTJJ3DFl8MeQNgKOnP8hakfWhWd2wb2Z/KEDuzObB99b0lVdl KpH5ZooaYmhlzxCOx90MvyHWiGOs9TCncGDqy0uefajt9eKvgrbKJRKJfdCSxv1DSjFy ugAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OzeIBQy/npsyS04kSnwEmUIx1HGVcp4VsXGGtshUuGk=; b=mJtVzq8aNexwSr+ULqOZ02qFmvt368J0aipv52HPTMM5YygOIW/bOoEzIxEdeqdVsr fwNSQF+LoZfoQP8oyX4HhkfNL6hTKPn04Z/2RDywVIrtxI/aLAO7LZBqiHgExztO7IOY QialkjUHpMzMXgoE3qdAget1gAp7JFrVcHJRAGhXCiTriQHIF+X8sqcNfNp3IKrLJatT q40PFhvevMLJo0nEhVFkA8MgKzzjzeug13syozR+ZRG26/BFmlakKcrwP8eD1l4ELDVq 340xAp75aJ+rsqKdxpS/NkFfp2f8XXoonM5CK3zm75oNoP2hNrTqk/hLTOt4BvxMOQcS cKug== X-Gm-Message-State: APjAAAVQa94FhhpW6Ejclw690AnB72Avfpyi+7HyRwY/jHWRnP0rl5Ci JK4pLTMwAa6AzeH0C3jbwx0= X-Google-Smtp-Source: APXvYqzZ3VLi8Ys1NeK6uWh1U3WXTlAJUqcpEeyU1S0YORPXEbcR86tG85BivvW/dx3mWvXoUq88qA== X-Received: by 2002:a5d:4284:: with SMTP id k4mr83572130wrq.194.1563955958970; Wed, 24 Jul 2019 01:12:38 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:38 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:17 +0200 Message-Id: <20190724081220.12022-12-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 11/14] davinci: omapl138-lcdk: enable CONFIG_USE_TINY_PRINTF X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski We're working towards enabling the driver-model in SPL for da850-lcdk. Enable CONFIG_USE_TINY_PRINTF in defconfig to reduce SPL size. Signed-off-by: Bartosz Golaszewski --- configs/omapl138_lcdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index bfb88e397a..c4eebb3612 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -53,3 +53,4 @@ CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y CONFIG_DM_SERIAL=y CONFIG_SYS_NS16550=y +CONFIG_USE_TINY_PRINTF=y From patchwork Wed Jul 24 08:12:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136153 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="1DJdQ7gq"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpD54Mr5z9sML for ; Wed, 24 Jul 2019 18:19:33 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 527CFC21E2B; Wed, 24 Jul 2019 08:14:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 42F59C21C38; Wed, 24 Jul 2019 08:13:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 715CDC21E02; Wed, 24 Jul 2019 08:12:45 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 55284C21D74 for ; Wed, 24 Jul 2019 08:12:40 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id z1so45853613wru.13 for ; Wed, 24 Jul 2019 01:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4tRMqjAz8bF2TPiGfRqJzYCWkyhTeqjNyFAAESZFtVU=; b=1DJdQ7gqT1AmuVgxkfSZhLLG5EpfQ0u0N/lYqoqHnLDDeg7iwGjwhZcMtAyipbqSBe QxVfzAg+9wtSHDBlkond2+uI+kYyu9bVokTeg40ZokRtiEHriE6Be2JRN7mZ8qdbf4U4 9m1vSe1y5R27s+hqspEWFW4o0PF60h3bewRI33G/G6mStOT1qpmlnp0TrZwY/dywn/vV bkdNaqoWcFfatcQ2NAx4A4m67qPUshRwrROhFtIC4dhhBQBC/QqP8MNCnmzIzKX46WZV aBgY5pKy2FYXpb0nV3+kgxPjfki7rDrOl3RxXSLUkb/9Fee6DPGU5enafwk1ageOsfq2 ztZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4tRMqjAz8bF2TPiGfRqJzYCWkyhTeqjNyFAAESZFtVU=; b=hRGmLhMxdGpn2seW84b57PzZMTb+fWfKDy89FxuGmULvLsR3ngD5xkebh2xWtlt8ro 4ncBQXwT+55mRB1/72r+WVj2uTxYAwvYSMG2p9gHzEEmyFn5NoGEjv6RC9MBopbj41TI Nh0QeEgojmcjXfxmCyYe+ZT+BlX+SrOeHSqPOQpTRu+vGEYJyn2HJkfEeWJTvTt5K7EN zVHYw0mGEIO1T/LFq28dQTbJ1me1iEk/wGeh7luVRnJRvc15s6BarVDZT3rED/PYIKEI RMQr62hb7H1ZBGdB6I7UlRAD5tur9Fa4x6YY+32S64qUMqfWqxT7WN3k4Z/TFQ1DOI8g zWnw== X-Gm-Message-State: APjAAAUQyyyy3QgwDyYonIW7wcIn7JkmX8yYUlaqaE7VKXMPLip7+ZmJ 0LWUKt/rQ2izl4kSjge+/TI= X-Google-Smtp-Source: APXvYqxxaMVmucWmdZpPNB34l/l+7octNvLbunWDrWu+P4DbshRnaLrcqfagExkilJRnXLxU1wxVeA== X-Received: by 2002:adf:80e1:: with SMTP id 88mr437666wrl.127.1563955960034; Wed, 24 Jul 2019 01:12:40 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:39 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:18 +0200 Message-Id: <20190724081220.12022-13-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 12/14] davinci: omapl138-lcdk: remove unneeded includes X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski There's no SPI on da850-lcdk. Remove unnecessary includes. Signed-off-by: Bartosz Golaszewski --- board/davinci/da8xxevm/omapl138_lcdk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c index dd11551428..7f8c28b953 100644 --- a/board/davinci/da8xxevm/omapl138_lcdk.c +++ b/board/davinci/da8xxevm/omapl138_lcdk.c @@ -11,8 +11,6 @@ #include #include #include -#include -#include #include #include #include From patchwork Wed Jul 24 08:12:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136152 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="oYLKFnCB"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tpD23gr4z9sML for ; Wed, 24 Jul 2019 18:19:30 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 23833C21DA6; Wed, 24 Jul 2019 08:15:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D5B00C21DA6; Wed, 24 Jul 2019 08:14:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0E0A2C21C51; Wed, 24 Jul 2019 08:12:47 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id 76794C21DB5 for ; Wed, 24 Jul 2019 08:12:41 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id n4so45960047wrs.3 for ; Wed, 24 Jul 2019 01:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DEz/XSicdX+hy5IVypomxHmw44skkmb/mUvu5FTEMUM=; b=oYLKFnCBiEE9N4TdPiFOuGRevWhWsHnA/oROSaMgcgtAxL4pbr0vLV9KLJDvHVZkBQ dl/zwKMF/wiTOdhafEPFQOSECAomesRxBRRWOzEYVLeWNjOkO9iZHGf6iEleUkOrjLS1 YsAMYXxajeBQpPGUEJNY5kywjFaKaCeEma0MS7oLuqKZvWl4vWME9o7DFifohiUEpsrq c9/YxSSVfVUFxAWX7wBYLa00XAVTMq+Dsw7tzT1lqndYVnX9m3X6OwJmyPSJX4w0mUZn tlqiHJoeBjGvj2TONo/P6/JtP/1zaznrc1LlwNZbfORW1L1mlAPdjsuBgHAZEMyOP3X6 xf7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DEz/XSicdX+hy5IVypomxHmw44skkmb/mUvu5FTEMUM=; b=CzaSUb+Q0moEd/fSC/AHnZiLlE9bhZNIfJsuxp5PyVzUmmd5lNMe+ywvQ3DavkYw9J OvZsLZVAbGyPWxpRdmmEBzll6+rQjd/SaNdel82PS0sLR35vXkiBx7awL5ZMbJ1pvylD P+P4+/LncyupFfy01K60XKEohqRl/NZ5qqibjAoolmVH+eIJ3MIWqjeXtCg8ETkj3PwL vMtu8X1sX6dX9hAdQU6RrHGDA8i3Ld+wn/mhQdkRWVcWpmCtWVtt3sFqQwqOrPJUDi0Z m+pX91NOdtL+LScbVSMBjQLni0RmbfFZtBIOKghR7w3gEOM93EUJe4dwkqTq0Km6JPNt eS5w== X-Gm-Message-State: APjAAAWF2hHdLZlxxzBR8m1VAGqJxTscM9GPLc1j/66/1tOH+jcDAjXb 9uTQBt4twf2MAjWs/r+u7p4= X-Google-Smtp-Source: APXvYqxjG2RhqLeHswR/CJwosljB5io7YgudWClPOyCucaVGcSn5H9T9K/VPcB01Z7Xnf7K5GgLuWA== X-Received: by 2002:adf:e504:: with SMTP id j4mr83866638wrm.222.1563955961184; Wed, 24 Jul 2019 01:12:41 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:40 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:19 +0200 Message-Id: <20190724081220.12022-14-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 13/14] davinci: omapl138-lcdk: enable driver-model in SPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski Enable CONFIG_SPL_DM and enable the driver model for serial by defining an appropriate device in the board file for da850-lcdk. Signed-off-by: Bartosz Golaszewski --- board/davinci/da8xxevm/omapl138_lcdk.c | 16 ++++++++++++++++ configs/omapl138_lcdk_defconfig | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c index 7f8c28b953..578d928443 100644 --- a/board/davinci/da8xxevm/omapl138_lcdk.c +++ b/board/davinci/da8xxevm/omapl138_lcdk.c @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include #include #include @@ -355,3 +357,17 @@ int board_mmc_init(bd_t *bis) } #endif #endif + +#ifdef CONFIG_SPL_BUILD +static const struct ns16550_platdata serial_pdata = { + .base = DAVINCI_UART2_BASE, + .reg_shift = 2, + .clock = 228000000, + .fcr = UART_FCR_DEFVAL, +}; + +U_BOOT_DEVICE(omapl138_uart) = { + .name = "ns16550_serial", + .platdata = &serial_pdata, +}; +#endif diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index c4eebb3612..26b4950f8f 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -33,10 +33,13 @@ CONFIG_CMD_MTDPARTS=y CONFIG_CMD_DIAG=y CONFIG_CMD_UBI=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="da850-lcdk" +CONFIG_SPL_OF_PLATDATA=y CONFIG_ENV_IS_IN_NAND=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DM=y +CONFIG_SPL_DM=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_DAVINCI=y CONFIG_DM_MMC=y @@ -51,6 +54,8 @@ CONFIG_SF_DEFAULT_SPEED=30000000 CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y +CONFIG_SPECIFY_CONSOLE_INDEX=y CONFIG_DM_SERIAL=y CONFIG_SYS_NS16550=y CONFIG_USE_TINY_PRINTF=y +# CONFIG_SPL_OF_LIBFDT is not set From patchwork Wed Jul 24 08:12:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1136135 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="wRazRCCb"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45tp881Vtnz9s4Y for ; Wed, 24 Jul 2019 18:16:08 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DBDFCC21DED; Wed, 24 Jul 2019 08:14:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 9CFC7C21DA2; Wed, 24 Jul 2019 08:13:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id ED6F7C21DA6; Wed, 24 Jul 2019 08:12:48 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 8844DC21DDC for ; Wed, 24 Jul 2019 08:12:42 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n9so20815902wrr.4 for ; Wed, 24 Jul 2019 01:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JEpLzJXA6QDU7ytJtnixM8udG3T+LErrJAy7SJvbzDk=; b=wRazRCCbHFaxyoSca5ngsjJgAOErrgSTy/wgj8cWSjEa/pijYV/oCaGQ23TJz3/Xdw YApAc4Pbo87HmLzS/lsH2hM51AMd+ckc35PfWeIRvWcYksYR6tx/uFHsVXdDojdk4GhL vxGekMFiGbOel+j+52kydGQtuJU6NNI63sih3IRrZVshLi+OPDbWKFrCBgz8wlOuhhwx NHINJQJsV70pcmDtnMrEki7xaRXJwroKjFZg4cE35EASAWwKUTDKj5MMz763VQhBElUF xc2SP+RSXO4l2Flz1A6EqI3A1rosp2ZEST9O+Djhnoeghjf1lZ9IwpZm+4CSkBPCiXV0 1rgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JEpLzJXA6QDU7ytJtnixM8udG3T+LErrJAy7SJvbzDk=; b=QkXBKR3mNN3zo1qiu1SghgjNk2TPYkxQRZFkaKEDg9KjXuThxz5EH474J0PdDoEqOp 9UAAJ1UolsnnwvHP5D9DSFHW9LFfdHZhIxeoCiknb36BohPlqGNbVImO1DA4FHeMJWtQ adPXGlduv6mtDHd2/WMmjvxcIE5le9I1JTSN86wJ2QbgDXCgAp5wxUB9y+Z0+dcHyv1t gT/2HpxLmh7/LOBdDx8ynE24pp9I0XtE0jfPO1lJhUhBF8M5LBQ9tkq4agCuHlgJORUI Y5bPSDRYI3qer7vyHlxyi+rchorZjs8Nkkn+HCV7VFiqVlrC07XadoVQFOvi2fnRSO5L fqkg== X-Gm-Message-State: APjAAAXWXSx0re6/jK7PGaNe7/aclrwxIkWqFLGZz9cVYoVHUE1eIXY/ ZX9L8dbfIpZiLYzM6MKvJ91yC8Fh X-Google-Smtp-Source: APXvYqybV8X1Hj+o+vvwzSJpZtnykp9zRY47wbY57xlLpWjlDn152prHWuqebcjx3WvlJ83f+wcxSw== X-Received: by 2002:a5d:5507:: with SMTP id b7mr85062867wrv.35.1563955962248; Wed, 24 Jul 2019 01:12:42 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id h133sm48384003wme.28.2019.07.24.01.12.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 01:12:41 -0700 (PDT) From: Bartosz Golaszewski To: Albert Aribaud , Adam Ford , Sekhar Nori , Kevin Hilman , David Lechner , Tom Rini , Peter Howard , Simon Glass , Mario Six , Heiko Schocher , Joe Hershberger Date: Wed, 24 Jul 2019 10:12:20 +0200 Message-Id: <20190724081220.12022-15-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724081220.12022-1-brgl@bgdev.pl> References: <20190724081220.12022-1-brgl@bgdev.pl> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Bartosz Golaszewski Subject: [U-Boot] [PATCH v2 14/14] configs: omapl138_lcdk: enable NAND self-init in SPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Bartosz Golaszewski Now that we have enabled the driver-model in SPL, we can remove the code disabling NAND self-init in SPL from the config include for omapl138-lcdk. Signed-off-by: Bartosz Golaszewski --- include/configs/omapl138_lcdk.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index 20fd7ff713..db4a663c53 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -168,10 +168,6 @@ #define CONFIG_SPL_NAND_DRIVERS #define CONFIG_SPL_NAND_ECC #define CONFIG_SPL_NAND_LOAD - -#ifndef CONFIG_SPL_BUILD -#define CONFIG_SYS_NAND_SELF_INIT -#endif #endif #ifdef CONFIG_SYS_USE_NOR