From patchwork Wed May 27 12:56:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1274 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C2C9A3F066 for ; Wed, 27 May 2020 14:57:04 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id o192sf19473299pfg.19 for ; Wed, 27 May 2020 05:57:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590584223; cv=pass; d=google.com; s=arc-20160816; b=SFRrbifisUmcSqBx5+1/JX/Z3ewq4xcsOo53pDZo7oadgdmzTF/cCoaTgmK7e97SyD 0K6TPwhbfpBwYD0w8MP9CH1lwO9wR64/hgsnt3Jo8u2O+KBFW2EuJte3QSjkdzvPxnGZ yU6gR8bBrHsAsNkmitasdcSfbtPTI9KTwQuCbixUY/faTZaOTFEPyQXXONNuF685IHU8 gFZshoQvhYyFvCkwivLU9LvX1dYP0JeSlQ3iFD5H9NoVwWf4k1QX7FqxopQ7VZYpGPNC fO9W5+EK9UZPFp5Y6Zpk1EXeNGD/UYNr5Bx3MMe4lvLBEqEpNhCBdCsX9D6T6c5Kkz/8 wAXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sJcfc6kfuXAAb54rZgDWOKWfS7BeA7VGXXLICdvk+TA=; b=URiJGz7ioncCOr7IQuwBvN09q6h+SyEJym1U9mPoB+V0h6XTsWcUk/eWsUUAQXXhJz 3To9N59mJ5N0U/uAlzff6CTVJf17zSIDB5uGTTIKRgucSPQCODI2udE+HQwDZsNVvO74 GUSmDAk4sl4QbaARLFf4XJFis2MbCm2UvXjJEv9XKKPUPQx4fEnKu1OYtIwoXW8rD71f iHVLL/LLK2x2ZRpoiUALORT8XDo0UQYaApBTgoliE8tEC6EBLzWZzuh8LFhOkOUdxLST QuknDQdHuwd4uOXdSDKD99RdSKEjYl0Sj+ix6NToUUCA6nN5NVp7f2zpn7NjK2/7aV9a WStA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZKj8vDPt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=sJcfc6kfuXAAb54rZgDWOKWfS7BeA7VGXXLICdvk+TA=; b=A/dRTIkVyb73Tw1zyXt4VJkn2UYsU3RDFAFMNMdH2aIw41gfkbeJdEsy+947o21VIb 1IBmFFdL991qaCxOzwtodT7bE0YBjXfv2UXPjFa8qgMXTe/X00Yvy5/0J3OOgiDxOk5f zCkGv6w+qiE+9rA5AN2982c+wZQlV7bXOlRUY= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=sJcfc6kfuXAAb54rZgDWOKWfS7BeA7VGXXLICdvk+TA=; b=YgnTzLXeDMVxC4WmqjRGPEh41rkFlniu0NHb68bUQizTFXGC9NKxDcMMK1W7zm0XQY mKQLZ9mC5Upaen0eEjW1ATrrJQOxDj06mMFN3iR3zaUe8kzWvuQ6ZcicPgIyyK5Vwp1k o9tHPd9C1bkdQ+YcngtKRnIe1FEzK7Nxc8rpHX+SDU1MRMt/4lmkvJMqCG18SxKlcEJo E1iFemWS6Hb627GpD/vpauqhxTRgywrHKJtIPypeEvBnM9yI8ufGCBR3Hm3kPOTYMbrE ruLYp6CN2/+bv/ApwI6k/GodW6b/afGvje7ojKTVbLA16+2YiGU62Ee02qsaYP5d/w6I XOgw== X-Gm-Message-State: AOAM532f9++ZHMav4kb2RAJLIbItYAA+27j/Dhpys+f5UL0SponW67Q0 3xM2nN7O7vaqxFQ3aC5SaeKOzhEW X-Google-Smtp-Source: ABdhPJx8ZKrxudeex7XTqJOmkI9iKHQ/1uh+0EwJKpeo/YqS1daDGN3F5KzLBC0QsLUzhuFYQ2lLAA== X-Received: by 2002:aa7:9e92:: with SMTP id p18mr3771872pfq.195.1590584223588; Wed, 27 May 2020 05:57:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:28c7:: with SMTP id o190ls89055pgo.3.gmail; Wed, 27 May 2020 05:57:03 -0700 (PDT) X-Received: by 2002:a63:6447:: with SMTP id y68mr3708617pgb.395.1590584223128; Wed, 27 May 2020 05:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590584223; cv=none; d=google.com; s=arc-20160816; b=wNKbrphzOcYs6DV4wNU5zmpQwQ+0/OZXkHXbIKWrxVvNKicKv40iMAfP0Z8g7BHSjC jRAySqpfoE56b0q57VGD81odTodRhD0xh4hhXoLEbw7a862M3wC8T1uKwgkOputqbLbs +g+1ZQi7iOLY/lXjFlnMUcb8LLW4LW0JcdVUcz9cd7sW8ZgFoBe5Sq3/ELE6XdeRANov dr4RWVggTrmO6oitW993EhkD+sfqIjnyUe48gbm8Ty9ncUtEyWllQJWLM3fB6WviCMlS PrmJtUnchgxnbMyD6aNo0RKUy0z5k7chbZ9mqxh99AQPTdiwHFeQOHhb1jtjvyVi/EG9 hMeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=j7WuR1AzWqPLOy7jklVj6EPDOhON3Wv/OvnFw6221Tg=; b=bJ1qa2Ri7DTNAJyGm5lksCQXvYisihRf/iF3F+tXxymVhy/HhspYWIN2wU1F5bo3f7 YkvA0A24CZ1H1H/tTg/aqv8kr7bmAe5v4+Tee64IHKTxSnXh1tCHcYN3hF2t+RLU9x+b mKKADCAirLC+mez88Ock6RydxT7mi2mPX3cKlOCDfBAiJAKCCCDxUxSgVHQYePRADC6T 2wLpsU4H+Vtx7M2E+ueTaFaCtRmeTY50tM5Fijah/IJ9Ie4rc2tYurb//jsw0psehwRW IepqQwWj8J2JNtbP5YXmMU5T29pzrWc+GCcGZzGNnv5ckeyUfI9LrV31FeTrR/eddja+ SENA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZKj8vDPt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 95sor2135458pld.66.2020.05.27.05.57.03 for (Google Transport Security); Wed, 27 May 2020 05:57:03 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:d68e:: with SMTP id v14mr5686499ply.262.1590584222755; Wed, 27 May 2020 05:57:02 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ac3b:7dcd:80:b788]) by smtp.gmail.com with ESMTPSA id k4sm2078274pgg.88.2020.05.27.05.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 05:57:01 -0700 (PDT) From: Jagan Teki To: Simon Glass , Tom Rini Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Samuel Egli Subject: [PATCH v2 05/23] siemens: draco: Enable DM_SPI, DM_SPI_FLASH Date: Wed, 27 May 2020 18:26:19 +0530 Message-Id: <20200527125637.149189-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200527125637.149189-1-jagan@amarulasolutions.com> References: <20200527125637.149189-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZKj8vDPt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable DM_SPI, DM_SPI_FLASH for siemens draco board. Build is fine, but not tested. Cc: Samuel Egli Signed-off-by: Jagan Teki --- Changes for v2: - new patch configs/draco_defconfig | 4 ++++ configs/etamin_defconfig | 4 ++++ configs/rastaban_defconfig | 4 ++++ configs/thuban_defconfig | 4 ++++ include/configs/siemens-am33x-common.h | 3 --- 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/configs/draco_defconfig b/configs/draco_defconfig index 4c326211d7..48fd0c750d 100644 --- a/configs/draco_defconfig +++ b/configs/draco_defconfig @@ -58,11 +58,13 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:128k(spl),128k(spl.backup1),128k( CONFIG_CMD_UBI=y # CONFIG_DOS_PARTITION is not set CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_EMBED=y CONFIG_DEFAULT_DEVICE_TREE="am335x-draco" CONFIG_ENV_IS_IN_NAND=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y CONFIG_DFU_NAND=y @@ -70,12 +72,14 @@ CONFIG_MMC_OMAP_HS=y CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y CONFIG_SPI_FLASH=y +CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_MTD_UBI_FASTMAP=y CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHY_SMSC=y CONFIG_DRIVER_TI_CPSW=y CONFIG_SPI=y +CONFIG_DM_SPI=y CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_MUSB_HOST=y diff --git a/configs/etamin_defconfig b/configs/etamin_defconfig index 16202c848c..36fb19e410 100644 --- a/configs/etamin_defconfig +++ b/configs/etamin_defconfig @@ -59,11 +59,13 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand_concat:512k(spl),512k(spl.backup1), CONFIG_CMD_UBI=y # CONFIG_DOS_PARTITION is not set CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_EMBED=y CONFIG_DEFAULT_DEVICE_TREE="am335x-draco" CONFIG_ENV_IS_IN_NAND=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y CONFIG_DFU_NAND=y @@ -71,12 +73,14 @@ CONFIG_MMC_OMAP_HS=y CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y CONFIG_SPI_FLASH=y +CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_MTD_UBI_FASTMAP=y CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHY_SMSC=y CONFIG_DRIVER_TI_CPSW=y CONFIG_SPI=y +CONFIG_DM_SPI=y CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_MUSB_HOST=y diff --git a/configs/rastaban_defconfig b/configs/rastaban_defconfig index c4a4e13737..ed761326d7 100644 --- a/configs/rastaban_defconfig +++ b/configs/rastaban_defconfig @@ -58,11 +58,13 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:128k(spl),128k(spl.backup1),128k( CONFIG_CMD_UBI=y # CONFIG_DOS_PARTITION is not set CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_EMBED=y CONFIG_DEFAULT_DEVICE_TREE="am335x-draco" CONFIG_ENV_IS_IN_NAND=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y CONFIG_DFU_NAND=y @@ -70,12 +72,14 @@ CONFIG_MMC_OMAP_HS=y CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y CONFIG_SPI_FLASH=y +CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_MTD_UBI_FASTMAP=y CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHY_SMSC=y CONFIG_DRIVER_TI_CPSW=y CONFIG_SPI=y +CONFIG_DM_SPI=y CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_MUSB_HOST=y diff --git a/configs/thuban_defconfig b/configs/thuban_defconfig index d81981a827..139318da28 100644 --- a/configs/thuban_defconfig +++ b/configs/thuban_defconfig @@ -58,11 +58,13 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:128k(spl),128k(spl.backup1),128k( CONFIG_CMD_UBI=y # CONFIG_DOS_PARTITION is not set CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_EMBED=y CONFIG_DEFAULT_DEVICE_TREE="am335x-draco" CONFIG_ENV_IS_IN_NAND=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y CONFIG_DFU_NAND=y @@ -70,12 +72,14 @@ CONFIG_MMC_OMAP_HS=y CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y CONFIG_SPI_FLASH=y +CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_MTD_UBI_FASTMAP=y CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHY_SMSC=y CONFIG_DRIVER_TI_CPSW=y CONFIG_SPI=y +CONFIG_DM_SPI=y CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_MUSB_HOST=y diff --git a/include/configs/siemens-am33x-common.h b/include/configs/siemens-am33x-common.h index ed93117650..0746b229c6 100644 --- a/include/configs/siemens-am33x-common.h +++ b/include/configs/siemens-am33x-common.h @@ -68,10 +68,7 @@ #define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */ /* NS16550 Configuration */ -#ifdef CONFIG_SPL_BUILD #define CONFIG_SYS_NS16550_SERIAL -#define CONFIG_SYS_NS16550_REG_SIZE (-4) -#endif #define CONFIG_SYS_NS16550_CLK (48000000) #define CONFIG_SYS_NS16550_COM1 0x44e09000 #define CONFIG_SYS_NS16550_COM4 0x481a6000