From nobody Wed Sep 07 15:10:40 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MN5Kr4fCLz4bPWF; Wed, 7 Sep 2022 15:10:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MN5Kr3GG4z3b97; Wed, 7 Sep 2022 15:10:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RgxB0at6UoO3Hq5tUPyxIXQGj+i2KWbMh7ZC8jj/iFY=; b=r0WpNapBC9Fhm07tu/LYB0fyq1NhDpkraCph4zyYFON0zS4zHds4oQpBHqizngbUKL8IjS 2m1D/BkQdudhLqGeounI4r0NnetIJPlakzrsFB2icvVITEsyW8hSrLAwrG/+g2I8tYi104 2AHfkjAC+3662q6CRMEur17PC51NwrJL/1X4w1lYZDVcwZS98sVYEBw0W9W1d2WbYQ7AEi SwggsJEvPCjDrScY5r6HcEm1VWmYeb1vzMv/m1K4NZExTYd0ropm83R8xprNOV0VsqSJH2 N2GH1ZAk0yeCiohfSREhKQ6gaIDdErVy2mjoFo7IjT9bSBTUxAwp8Yd4aMWgXA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MN5Kr26wrzYxP; Wed, 7 Sep 2022 15:10:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 287FAe2m026603; Wed, 7 Sep 2022 15:10:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287FAe3D026590; Wed, 7 Sep 2022 15:10:40 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:10:40 GMT Message-Id: <202209071510.287FAe3D026590@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 7392ea254c81 - stable/13 - linuxkpi: Add video/mipi_display.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7392ea254c81069cfe9759cfeb0b57f3c4c1c916 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RgxB0at6UoO3Hq5tUPyxIXQGj+i2KWbMh7ZC8jj/iFY=; b=Q+lFCDAtSI4SxQQPWUyy+wwDO3R6BYuFHQjHmACA8QblznTnWIBS4UJN+1x3BokavWr2/T M+gJwO5C6TO7a4/oukqhYAsklUpbAd6+KvosnjDoUxHL7ep6pYkxpDZmx+DMxLtTvq13Ej 825Ch//zQDuOGPrerFTkA71KKOIMbeNY6yCq5cKHmmD9xd3EF9AURawZb8jgKZNARoTDt7 YnLwJ3u2pi9nRBfaOyM8xTLJGddNHn03aodrnLfsXkfeaMUlpmcQlyKIKQYpMiU51fo2ie fMAHz58fz2TYh+fe+PFn7N4efxs+3fRFkQ/dakXuzKBD1Ex8eAG76AmVeujeWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563440; a=rsa-sha256; cv=none; b=QC64DkhWSTyqFUWM3QH41nQHVU59VIwNFmMqYlfVl7BMmC14waMRmRHH3vrm/tcWfs8JuD fYIqHIFcCAAxo1Vnapwd0F+GKtZE2OX/mVXK5lWRau2IIegl5t7dXxLhqz/jgXQ9QWFwj9 oimM5YY/+/oITQia8b6uD9Xcgs8Vu9zff7ao6U+Ua6QPyRffMVKa97UDWOwim4jL5Srvvj Wi3Oz85aVbqpkRwV3nGRaqQ4Zos6WCWdYLWgxEk+zGE9/F86IKMtVnkcb/h6ZUFjHg29Q7 /dMLUjgNtCo2pFQ+4BHjEKzNeWjHFLrU13ZUhlzNQq/9F+3ugOio21AVz0gzVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=7392ea254c81069cfe9759cfeb0b57f3c4c1c916 commit 7392ea254c81069cfe9759cfeb0b57f3c4c1c916 Author: Emmanuel Vadot AuthorDate: 2022-08-09 09:40:34 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:06 +0000 linuxkpi: Add video/mipi_display.h Needed by drm-kmod. Reviewed by: bz Obtained from: OpenBSD Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36103 (cherry picked from commit 73e342328b538e5936f248c03a299884dbe22047) --- .../linuxkpi/common/include/video/mipi_display.h | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/video/mipi_display.h b/sys/compat/linuxkpi/common/include/video/mipi_display.h new file mode 100644 index 000000000000..ea079a57d39f --- /dev/null +++ b/sys/compat/linuxkpi/common/include/video/mipi_display.h @@ -0,0 +1,64 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_VIDEO_MIPI_DISPLAY_H_ +#define _LINUXKPI_VIDEO_MIPI_DISPLAY_H_ + +#define MIPI_DSI_V_SYNC_START 0x01 +#define MIPI_DSI_V_SYNC_END 0x11 +#define MIPI_DSI_H_SYNC_START 0x21 +#define MIPI_DSI_H_SYNC_END 0x31 +#define MIPI_DSI_COMPRESSION_MODE 0x07 +#define MIPI_DSI_END_OF_TRANSMISSION 0x08 +#define MIPI_DSI_COLOR_MODE_OFF 0x02 +#define MIPI_DSI_COLOR_MODE_ON 0x12 +#define MIPI_DSI_SHUTDOWN_PERIPHERAL 0x22 +#define MIPI_DSI_TURN_ON_PERIPHERAL 0x32 +#define MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM 0x03 +#define MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM 0x13 +#define MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM 0x23 +#define MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM 0x04 +#define MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM 0x14 +#define MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM 0x24 +#define MIPI_DSI_DCS_SHORT_WRITE 0x05 +#define MIPI_DSI_DCS_SHORT_WRITE_PARAM 0x15 +#define MIPI_DSI_DCS_READ 0x06 +#define MIPI_DSI_EXECUTE_QUEUE 0x16 +#define MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE 0x37 +#define MIPI_DSI_NULL_PACKET 0x09 +#define MIPI_DSI_BLANKING_PACKET 0x19 +#define MIPI_DSI_GENERIC_LONG_WRITE 0x29 +#define MIPI_DSI_DCS_LONG_WRITE 0x39 +#define MIPI_DSI_PICTURE_PARAMETER_SET 0x0a +#define MIPI_DSI_COMPRESSED_PIXEL_STREAM 0x0b +#define MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 0x0c +#define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 0x1c +#define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 0x2c +#define MIPI_DSI_PACKED_PIXEL_STREAM_30 0x0d +#define MIPI_DSI_PACKED_PIXEL_STREAM_36 0x1d +#define MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12 0x3d +#define MIPI_DSI_PACKED_PIXEL_STREAM_16 0x0e +#define MIPI_DSI_PACKED_PIXEL_STREAM_18 0x1e +#define MIPI_DSI_PIXEL_STREAM_3BYTE_18 0x2e +#define MIPI_DSI_PACKED_PIXEL_STREAM_24 0x3e + +#define MIPI_DCS_NOP 0x00 +#define MIPI_DCS_SOFT_RESET 0x01 +#define MIPI_DCS_GET_POWER_MODE 0x0a +#define MIPI_DCS_GET_PIXEL_FORMAT 0x0c +#define MIPI_DCS_ENTER_SLEEP_MODE 0x10 +#define MIPI_DCS_EXIT_SLEEP_MODE 0x11 +#define MIPI_DCS_SET_DISPLAY_OFF 0x28 +#define MIPI_DCS_SET_DISPLAY_ON 0x29 +#define MIPI_DCS_SET_COLUMN_ADDRESS 0x2a +#define MIPI_DCS_SET_PAGE_ADDRESS 0x2b +#define MIPI_DCS_SET_TEAR_OFF 0x34 +#define MIPI_DCS_SET_TEAR_ON 0x35 +#define MIPI_DCS_SET_PIXEL_FORMAT 0x3a +#define MIPI_DCS_SET_TEAR_SCANLINE 0x44 +#define MIPI_DCS_SET_DISPLAY_BRIGHTNESS 0x51 +#define MIPI_DCS_GET_DISPLAY_BRIGHTNESS 0x52 +#define MIPI_DCS_WRITE_CONTROL_DISPLAY 0x53 +#define MIPI_DCS_GET_CONTROL_DISPLAY 0x54 +#define MIPI_DCS_WRITE_POWER_SAVE 0x55 + +#endif /* _LINUXKPI_VIDEO_MIPI_DISPLAY_H_ */