From patchwork Sat Jul 11 22:45:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 1327435 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VP7XrTjf; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B44lD2FpLz9sQt for ; Sun, 12 Jul 2020 08:46:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D1D281F80; Sun, 12 Jul 2020 00:46:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VP7XrTjf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D06D8217B; Sun, 12 Jul 2020 00:46:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 69C5781C2B for ; Sun, 12 Jul 2020 00:46:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=daniel.schwierzeck@gmail.com Received: by mail-wm1-x32b.google.com with SMTP id l17so9651384wmj.0 for ; Sat, 11 Jul 2020 15:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=il+c7Wok8qSNosax6ogmidoH2nQqXRmo0d8kJbS/c3A=; b=VP7XrTjfJQa8cRTosT+Rkth+U2ynov+vAsK1/polxftuD8wO+GeJO4idcQ9WIR14PP u0zvTgS9YKGUPdFcISXrRvKYOOoyv+O3gkQ8xi/nCN8jssCNUSR6AYYbWp9sZfgPfOGo ZDgs2oYDbRlXuhuluyixO+xnqYA+7VPk2lMtaZaPGjk+1AG1/WU6m/5CCy3Pv2rbSnSk EUcXaTL9JO+dE72VQzJRQiadhJr8jD6Acfl19pit/dIX/bH+L+/MR1UzMemG6AxtIrnl +VRUARftzq6rKjOqujZQUv7NO2A1QwGq1FThHRRS/KJXCNfjQ43Wyg1OgQKplsVu3ZyS h7IQ== 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:mime-version :content-transfer-encoding; bh=il+c7Wok8qSNosax6ogmidoH2nQqXRmo0d8kJbS/c3A=; b=N1f+rs2f42AF27ZHNRx5zr4S6i2pqC/wnHG00wE3jlID0muz4apIgCKxAiuN9b+HKG UljuQzDiVvlbRsdK2mwQfm52k3kWzKpj6PN4guIElucXxFSJF/dmzaCe91kxeN6Jp9C/ a605e4TlFeaFxY1AUf7W2SS2rmUMpPWvOvN0bwXNyzmC4E1ckZ4UoNdMHZCDTtnLGP47 cqt1JhXynogZN4uaJ9LwbE6K3CCcfZWgY1Gp3YDTghw4Me6nXjfdtXRDarCaah1RWE2Q D5m/MlN3TEGESi8uE982cM61ndnxV8rFbM/NF4mKiDN1rjJ3MPIAdsi+MDdrp5TGLIl/ k3UA== X-Gm-Message-State: AOAM5315q7Z3g71Q1PSJz6gCh9ujg13yk08dY26fsXtRLlKK+cFwuTD2 6NGfZWMjk7DuoeZ4A9iwNswvX6Ph X-Google-Smtp-Source: ABdhPJwPStu6j5SrVJd9cum2MAm18r6bq6qorxH1SVrvB6/gg/wpkaclCfNWaSsQlBrnp7aFKQw5hA== X-Received: by 2002:a1c:3142:: with SMTP id x63mr11301613wmx.62.1594507563761; Sat, 11 Jul 2020 15:46:03 -0700 (PDT) Received: from workstation.lan.schwierd.dedyn.io ([2001:16b8:559e:4701:4026:74cf:a34a:dfa1]) by smtp.gmail.com with ESMTPSA id r28sm15886860wrr.20.2020.07.11.15.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2020 15:46:03 -0700 (PDT) From: Daniel Schwierzeck To: u-boot@lists.denx.de Cc: Stefan Roese , Daniel Schwierzeck Subject: [PATCH 0/4] MIPS: refactor and cleanup start.S (part 1) Date: Sun, 12 Jul 2020 00:45:53 +0200 Message-Id: <20200711224557.612848-1-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This is the first part of upcoming refactorings in start.S to cleanup the multiple and hard-to-follow code flows as well as adding more extension points required for modern and complex multi-core SoC's. The first parts concentrates on caches. Daniel Schwierzeck (4): mips: start.S: remove dead code mips: add KSEG1 wrapper for change_k0_cca mips: refactor disabling of caches mips: add config options for generic cache setup code arch/mips/Kconfig | 24 ++++++++++++++++++++++++ arch/mips/cpu/start.S | 24 +++++++++--------------- arch/mips/lib/cache_init.S | 38 ++++++++++++++++++++++++-------------- 3 files changed, 57 insertions(+), 29 deletions(-)