Message ID | 20240903153100.918077-25-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBTWX3S3AMGQEQJ5DVCQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6F07B3F1F3 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 3 Sep 2024 17:31:27 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-42bb6f0f35csf50085545e9.0 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 03 Sep 2024 08:31:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377487; cv=pass; d=google.com; s=arc-20240605; b=Z2y5qjf+cJI5EQfIDsaiqGIjGZlreS4ljuZMtQLPpccNImg46r3bzw5Sww8uyMLIEp DRATLo+YE2sIrcAHB1ML07oXnO8D+PrC7NdHI9zMIGOzXp7POUGsLnI3svBjgHI9h2AL /oelBc4zP7CpdTB6e8VT/segusMxwXPqcWZ/pkjrxtii94mkc3IgNsmhdWcmC2jvN36o T0BPgoggeV0Z8d1vZj9JrBiRhOqt4llzXcSLEPDh4ONKZCg8pFJV5P3Nu9GeG5nah9f8 VB3ck2s6zeeyIYooLu9DLbbkeAqKX5lFaAQsFpP9bg8aXhvfEIUxbaFW4pth8k6+q8+2 jBJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=FKMTbmTXvtCU3u6QoUBgQ5hbcTpWUvajOb+bd1u7PnY=; fh=/zCEQytby3BcHf8gkkX13181OSS//ctudsaLj0PAzLk=; b=NXSPadR7kcbTN0FeHPl6EEwmT9ZySjFZHecVqAka7qTG4mXBB0qumj7OBVfBZVVFKT flvi4eqU1nMf4vgiQTjirMv9Eg5kI7AokWwtc3DGTg0+oP+wHLykpbP40Y2dJ74/WF4G F/rMJIXqWKv7YXG3JwyCkxFhvNL+jhtU59l3iyTio2cRJCOJJDKrm4qPl1PP9MjyN+YD r8YZdOwbHBsT/LK5Lz86z/cuSQatNH4cjxIEtliiebwpupm9PJfeK3DJJIByokW5fnFj IDe0dPauqNjYW42xZRp4y9ycUr0NQaCB6R3cVcawTFuas/089/le68t4AXv4GdAUbRGT J3hQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IftCytcc; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725377487; x=1725982287; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=FKMTbmTXvtCU3u6QoUBgQ5hbcTpWUvajOb+bd1u7PnY=; b=D9HnQy/bHFA5cnOzFIHv1GUENXYmtfLl2HJL3e5+s5Q1F1rRqbolo43IILlXZO5niN /vEwrX1X0f1smbyYVl4eC0sYngP+a6QQsZOWtxJ/X0afAfwWZluDkal4I8iMwR8FPcej TXsTJgYpMcMbZBoTKAA9OgUf/ai0loI89xgyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377487; x=1725982287; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FKMTbmTXvtCU3u6QoUBgQ5hbcTpWUvajOb+bd1u7PnY=; b=qnXTXEeUCp7HbhMvA8nHaGaGqauzjtduc1Cftuvhru5rPkkzFm5jpTpoUaShNr/fw5 phpsYDfrIVI1ByqZEF0qJi6WpU1w8Qoll1Ffa4yUfdfPGXB9GozJB1q0XbDmaDNjXJ+h rKJDTbbaUPM9sQ3faRvwUAz0Q5a7QU4dU7EV27w89NmOdOIdR/1yVpXAtiZUx+5MUN1j q06bj7/KiWoixRa+Xc3W7YabE9pnHfT3l4CI71SlcF1QYjk5Qm3kkjFQffchPS7X9Hqu Ekcc8me9D2yRHUamKh+kyv1A7OsDhmI9o7WAnDwrMWuR2LlgARrOCS27/SwF73ZYS3qj ws/A== X-Forwarded-Encrypted: i=2; AJvYcCX7Iot5cGg6PXtDJSGYgIp4RtEBWV6YoyKGqzzi182FoyG5qQK13BOGCeKqwGBbkaBE4bC2oN5Hth99jbib@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwZGVBWfZ0/BtQ6ySUuDn/jPfRa8i3DNwDwmbUgGoJ4Gku0gPm1 AKkvpAMB5th1o6Me2fwN29sMNMKv/ABEypoJUAjF+eyc832mX9t0SaGaDeuXJXbxzA== X-Google-Smtp-Source: AGHT+IEsm4fv7CFWyRNJyRNCenSk/Ri6OR4I2W9JIzlj7iozXjxZOOzD3S2limh1vmhWrVns2g6xaQ== X-Received: by 2002:a05:600c:5494:b0:426:5dd0:a1e4 with SMTP id 5b1f17b1804b1-42bbb20568fmr101185615e9.8.1725377486910; Tue, 03 Sep 2024 08:31:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b99:b0:426:6f5a:9b6e with SMTP id 5b1f17b1804b1-42bb2a0f935ls16737145e9.2.-pod-prod-07-eu; Tue, 03 Sep 2024 08:31:25 -0700 (PDT) X-Received: by 2002:a05:600c:3b9f:b0:426:6e8b:3dc5 with SMTP id 5b1f17b1804b1-42bbb440c8bmr116849705e9.32.1725377485254; Tue, 03 Sep 2024 08:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377485; cv=none; d=google.com; s=arc-20160816; b=IKOPN+pZAUY4nnQ4AYxWPZDZFxg16CBU03aZsMj6+gVqocR99d/ikPg/GIEhoKCBvp NknPK6hTVJ7R9wb11nSu514XsLKNourUBn0GnVZgNirwIOtQKy7AocYiJBzAdTgpoWKG XQfyfjjF7gipQkBbbxZmCBvsL2yFHS5tz1flRQtPy5cbjyIt7Yr5Vjt7qBiIgrv30FPj 9q9b8I0ooz4FgYtk2tLtGIqqEQGnN+nr8cHuS+c41IXIv2FfI600baXgt4mLXMdr6Gbu 8BEHrQCKjZl80XvB51HOdLllynly5J0og3DLIBeR9oY+G+Xrz6q3tJYg1C8k6BmOSYfu mmtw== 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:to:from:dkim-signature; bh=gic+gQ5t4Z1X+io7eA9xlw+SaWBWg/DHtmd1XtPj6TU=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=o7NRyrb4B1J1nsBVoJrlhRnQEOm0ahVr3s9GVTuCvjzT5XMTW4V+VJB9z3H9vT5CxJ dLQkW5xjTG+lJvj5XhFNmHlUHTximqrtEyHV/ChaG1QoLn3NEl7zmUI0UiTiAJfV9IjE Ez302MZD/KrDUm9HsWXGw5Hc4gevB5GG5In+hBrS+yK+NiTgEEgSkehWqmgd66fHDW7F U2RK5bJe+A7FbFc+swZl6d0N0UUu4aupfww5+QaawoM2QgFoXabNi81N+2iC3g84Vs0x Q3G1hPFbffrG6LFHAn+lFxpKaR+ef9QOS/E91NL8OU4iF2YIDjGMnlbT38IGPR0iEZT4 mWZw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IftCytcc; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@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 5b1f17b1804b1-42bb6f8e554sor45016735e9.0.2024.09.03.08.31.25 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 03 Sep 2024 08:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:600c:510d:b0:42b:af52:2525 with SMTP id 5b1f17b1804b1-42bbb21603amr93268515e9.16.1725377484628; Tue, 03 Sep 2024 08:31:24 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e273e3sm174168685e9.30.2024.09.03.08.31.23 for <linux-amarula@amarulasolutions.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:31:24 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-amarula@amarulasolutions.com Subject: [PATCH 25/29] video: mxsfb: support simple frame-buffer Date: Tue, 3 Sep 2024 17:30:56 +0200 Message-ID: <20240903153100.918077-25-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> References: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IftCytcc; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 4186ccd00209..254e470230c7 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -424,7 +424,8 @@ static int mxs_video_remove(struct udevice *dev) if (priv->disp_dev) device_remove(priv->disp_dev, DM_REMOVE_NORMAL); - mxs_remove_common(priv->reg_base, plat->base); + if (!IS_ENABLED(CONFIG_VIDEO_DT_SIMPLEFB)) + mxs_remove_common(priv->reg_base, plat->base); return 0; } @@ -447,6 +448,10 @@ U_BOOT_DRIVER(mxs_video) = { .bind = mxs_video_bind, .probe = mxs_video_probe, .remove = mxs_video_remove, +#if !IS_ENABLED(CONFIG_VIDEO_DT_SIMPLEFB) .flags = DM_FLAG_PRE_RELOC | DM_FLAG_OS_PREPARE, +#else + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_OS_PREPARE | DM_FLAG_LEAVE_PD_ON, +#endif .priv_auto = sizeof(struct mxsfb_priv), };
If you want to pass the frame-buffer to the kernel, the video output is initialized by U-Boot, and kept by the kernel. The patch does not turn off the power domains or reset the peripheral if you want to support such feature. Co-Developed-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/video/mxsfb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)