dsi.c (12831076ac366e887e648a1d27ab3361a7b315b8) | dsi.c (75af8fa7fd47e8f76198e13052b42e66d9e1f233) |
---|---|
1/* 2 * Copyright (C) 2013 NVIDIA Corporation 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 --- 14 unchanged lines hidden (view full) --- 23#include <drm/drm_panel.h> 24 25#include <video/mipi_display.h> 26 27#include "dc.h" 28#include "drm.h" 29#include "dsi.h" 30#include "mipi-phy.h" | 1/* 2 * Copyright (C) 2013 NVIDIA Corporation 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 --- 14 unchanged lines hidden (view full) --- 23#include <drm/drm_panel.h> 24 25#include <video/mipi_display.h> 26 27#include "dc.h" 28#include "drm.h" 29#include "dsi.h" 30#include "mipi-phy.h" |
31#include "trace.h" |
|
31 32struct tegra_dsi_state { 33 struct drm_connector_state base; 34 35 struct mipi_dphy_timing timing; 36 unsigned long period; 37 38 unsigned int vrefresh; --- 63 unchanged lines hidden (view full) --- 102 103static struct tegra_dsi_state *tegra_dsi_get_state(struct tegra_dsi *dsi) 104{ 105 return to_dsi_state(dsi->output.connector.state); 106} 107 108static inline u32 tegra_dsi_readl(struct tegra_dsi *dsi, unsigned int offset) 109{ | 32 33struct tegra_dsi_state { 34 struct drm_connector_state base; 35 36 struct mipi_dphy_timing timing; 37 unsigned long period; 38 39 unsigned int vrefresh; --- 63 unchanged lines hidden (view full) --- 103 104static struct tegra_dsi_state *tegra_dsi_get_state(struct tegra_dsi *dsi) 105{ 106 return to_dsi_state(dsi->output.connector.state); 107} 108 109static inline u32 tegra_dsi_readl(struct tegra_dsi *dsi, unsigned int offset) 110{ |
110 return readl(dsi->regs + (offset << 2)); | 111 u32 value = readl(dsi->regs + (offset << 2)); 112 113 trace_dsi_readl(dsi->dev, offset, value); 114 115 return value; |
111} 112 113static inline void tegra_dsi_writel(struct tegra_dsi *dsi, u32 value, 114 unsigned int offset) 115{ | 116} 117 118static inline void tegra_dsi_writel(struct tegra_dsi *dsi, u32 value, 119 unsigned int offset) 120{ |
121 trace_dsi_writel(dsi->dev, offset, value); |
|
116 writel(value, dsi->regs + (offset << 2)); 117} 118 119static int tegra_dsi_show_regs(struct seq_file *s, void *data) 120{ 121 struct drm_info_node *node = s->private; 122 struct tegra_dsi *dsi = node->info_ent->data; 123 struct drm_crtc *crtc = dsi->output.encoder.crtc; --- 1586 unchanged lines hidden --- | 122 writel(value, dsi->regs + (offset << 2)); 123} 124 125static int tegra_dsi_show_regs(struct seq_file *s, void *data) 126{ 127 struct drm_info_node *node = s->private; 128 struct tegra_dsi *dsi = node->info_ent->data; 129 struct drm_crtc *crtc = dsi->output.encoder.crtc; --- 1586 unchanged lines hidden --- |