Svyatoslav Ryhel | 75fec41 | 2024-01-23 19:16:18 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2010 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef _TEGRA_DC_H |
| 8 | #define _TEGRA_DC_H |
| 9 | |
| 10 | #ifndef __ASSEMBLY__ |
| 11 | #include <linux/bitops.h> |
| 12 | #endif |
| 13 | |
| 14 | /* arch-tegra/dc exists only because T124 uses it */ |
| 15 | #include <asm/arch-tegra/dc.h> |
| 16 | |
| 17 | #define TEGRA_DSI_A "dsi@54300000" |
| 18 | #define TEGRA_DSI_B "dsi@54400000" |
| 19 | |
| 20 | struct tegra_dc_plat { |
| 21 | struct udevice *dev; /* Display controller device */ |
| 22 | struct dc_ctlr *dc; /* Display controller regmap */ |
Svyatoslav Ryhel | be908d6 | 2024-05-14 09:05:00 +0300 | [diff] [blame] | 23 | int pipe; /* DC number: 0 for A, 1 for B */ |
Svyatoslav Ryhel | d16c105 | 2024-01-23 19:16:23 +0200 | [diff] [blame] | 24 | ulong scdiv; /* Shift clock divider */ |
Svyatoslav Ryhel | 75fec41 | 2024-01-23 19:16:18 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | /* This holds information about a window which can be displayed */ |
| 28 | struct disp_ctl_win { |
| 29 | enum win_color_depth_id fmt; /* Color depth/format */ |
| 30 | unsigned int bpp; /* Bits per pixel */ |
| 31 | phys_addr_t phys_addr; /* Physical address in memory */ |
| 32 | unsigned int x; /* Horizontal address offset (bytes) */ |
| 33 | unsigned int y; /* Veritical address offset (bytes) */ |
| 34 | unsigned int w; /* Width of source window */ |
| 35 | unsigned int h; /* Height of source window */ |
| 36 | unsigned int stride; /* Number of bytes per line */ |
| 37 | unsigned int out_x; /* Left edge of output window (col) */ |
| 38 | unsigned int out_y; /* Top edge of output window (row) */ |
| 39 | unsigned int out_w; /* Width of output window in pixels */ |
| 40 | unsigned int out_h; /* Height of output window in pixels */ |
| 41 | }; |
| 42 | |
| 43 | #endif /* _TEGRA_DC_H */ |