aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/intel/gma/i915.h
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-05-20 02:47:37 +0200
committerNico Huber <nico.h@gmx.de>2017-05-22 10:26:11 +0200
commit746aa054e2633e3c328631ea0d50bec31460f9e7 (patch)
tree427028ff7b7430b27f1958cadbd4c342750cec83 /src/drivers/intel/gma/i915.h
parent0df9a010097b8842fbb286059953bfbea71feeed (diff)
drivers/intel/gma: Drop unused INTEL_DP
Change-Id: I786848cd48c6fcfecf9b72c60623cadcfcbb7db7 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/19803 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/drivers/intel/gma/i915.h')
-rw-r--r--src/drivers/intel/gma/i915.h200
1 files changed, 0 insertions, 200 deletions
diff --git a/src/drivers/intel/gma/i915.h b/src/drivers/intel/gma/i915.h
index d9bb940fa4..9a2acdb96b 100644
--- a/src/drivers/intel/gma/i915.h
+++ b/src/drivers/intel/gma/i915.h
@@ -81,201 +81,7 @@ enum {
unsigned long io_i915_read32(unsigned long addr);
void io_i915_write32(unsigned long val, unsigned long addr);
-/*
- * To communicate to and control the extracted-from-kernel code,
- * we need this struct. It has a counterpart in the ARM code, so
- * there is a precedent.
- */
-
-#define DP_RECEIVER_CAP_SIZE 0xf
-#define DP_LINK_STATUS_SIZE 6
-#define DP_LINK_CHECK_TIMEOUT (10 * 1000)
-
-#define DP_LINK_CONFIGURATION_SIZE 9
-
-struct intel_dp_m_n {
- uint32_t tu;
- uint32_t gmch_m;
- uint32_t gmch_n;
- uint32_t link_m;
- uint32_t link_n;
-};
-
-struct intel_dp {
- int gen; // 6 for link, 7 for wtm2
- int has_pch_split; // 1 for link and wtm2
- int has_pch_cpt; // 1 for everything we know about.
- int is_haswell;
- /* output register offset in MMIO space. Usually DP_A */
- u32 output_reg;
- /* The initial value of the DP register.
- * Mainboards can set this to a non-zero
- * value in the case that there are undetectable
- * but essential parameters.
- */
- u32 DP;
- uint8_t link_configuration[DP_LINK_CONFIGURATION_SIZE];
- u32 color_range;
- /* these paramaters are determined after reading the DPCD */
- int dpms_mode;
- uint8_t link_bw;
- uint8_t lane_count;
- /* This data is read from the panel via the AUX channel.*/
- uint8_t dpcd[DP_RECEIVER_CAP_SIZE];
- int type;
- int edp;
- int is_pch_edp;
- /* state related to training. */
- uint8_t train_set[4];
- /* Determined from EDID or coreboot hard-sets. */
- int panel_power_up_delay;
- int panel_power_down_delay;
- int panel_power_cycle_delay;
- int backlight_on_delay;
- int backlight_off_delay;
- int want_panel_vdd;
- u32 clock;
- int port;
- int pipe;
- int plane;
- int pipe_bits_per_pixel;
- /* i2c on aux is ... interesting.
- * Before you do an i2c cycle, you need to set the address.
- * This requires we remember it from one moment to the next.
- * Remember it here.
- */
- u16 address;
- /* timing parameters for aux channel IO. They used to compute these on
- * each and every entry to the functions, which is kind of stupid, and it had
- * errors anyway.
- * note: you can get these from watching YABEL output. E.g.:
- * you see an outb of 0x802300e1 to 64010. the 3 is the precharge
- * and the e1 is the clock divider.
- */
- u32 aux_clock_divider;
- u32 precharge;
- /* EDID, raw and processed */
- u8 rawedid[256];
- int edidlen;
- struct edid edid;
- /* computed values needed for "i915" registers */
- int bytes_per_pixel;
- u32 htotal;
- u32 hblank;
- u32 hsync;
- u32 vtotal;
- u32 vblank;
- u32 vsync;
- u32 pfa_sz;
- u32 pfa_pos;
- u32 pfa_ctl;
- u32 pipesrc;
- u32 stride;
- struct intel_dp_m_n m_n;
- u32 flags;
- u32 transcoder;
- /* parameters computed by the early startup, to be used
- * in the GMA code.
- */
- u8 *graphics;
- /* physical address, not to be used directly. */
- u64 physbase;
-};
-
-/* we may yet need these. */
-void intel_dp_mode_set(struct intel_dp *intel_dp);
-void intel_dp_start_link_train(struct intel_dp *intel_dp);
-
-int intel_dp_i2c_init(struct intel_dp *intel_dp);
-int intel_dp_i2c_aux_ch(struct intel_dp *intel_dp,
- int mode, uint8_t write_byte, uint8_t *read_byte);
-
-int intel_dp_get_dpcd(struct intel_dp *intel_dp);
-struct edid *intel_dp_get_edid(struct intel_dp *intel_dp);
-
-void intel_dp_sink_dpms(struct intel_dp *intel_dp, int mode);
-void ironlake_edp_pll_on(void);
-void ironlake_edp_panel_vdd_on(struct intel_dp *intel_dp);
-void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, int sync);
-int intel_dp_get_max_downspread(struct intel_dp *intel_dp, u8 *max_downspread);
-void ironlake_edp_panel_on(struct intel_dp *intel_dp);
-void ironlake_edp_backlight_on(struct intel_dp *intel_dp);
-/* needed only on haswell. */
-void intel_ddi_prepare_link_retrain(struct intel_dp *intel_dp, int port);
-int intel_dp_aux_ch(struct intel_dp *intel_dp,
- uint8_t *send, int send_bytes,
- uint8_t *recv, int recv_size);
-void unpack_aux(u32 src, uint8_t *dst, int dst_bytes);
-int intel_channel_eq_ok(struct intel_dp *intel_dp,
- uint8_t link_status[DP_LINK_STATUS_SIZE]);
-void ironlake_edp_panel_off(struct intel_dp *intel_dp);
-void ironlake_edp_backlight_off(struct intel_dp *intel_dp);
-
-/* drm_dp_helper.c */
-int drm_dp_channel_eq_ok(u8 link_status[DP_LINK_STATUS_SIZE],
- int lane_count);
-int drm_dp_clock_recovery_ok(u8 link_status[DP_LINK_STATUS_SIZE],
- int lane_count);
-u8 drm_dp_get_adjust_request_voltage(u8 link_status[DP_LINK_STATUS_SIZE],
- int lane);
-u8 drm_dp_get_adjust_request_pre_emphasis(u8 link_status[DP_LINK_STATUS_SIZE],
- int lane);
-
-
-void intel_dp_wait_reg(unsigned long addr,
- unsigned long val);
-
-void intel_dp_wait_panel_power_control(unsigned long val);
-
-void intel_dp_compute_m_n(unsigned int bits_per_pixel,
- unsigned int nlanes,
- unsigned int pixel_clock,
- unsigned int link_clock,
- struct intel_dp_m_n *m_n);
-
-u32 intel_ddi_calc_transcoder_flags(u32 pipe_bpp,
- enum port port,
- enum pipe pipe,
- int type,
- int lane_count,
- int pf_sz,
- u8 phsync,
- u8 pvsync);
-
-enum transcoder intel_ddi_get_transcoder(enum port port,
- enum pipe pipe);
-
-void intel_dp_set_m_n_regs(struct intel_dp *intel_dp);
-int intel_dp_bw_code_to_link_rate(u8 link_bw);
-void intel_dp_set_resolution(struct intel_dp *intel_dp);
-
-int intel_dp_i2c_write(struct intel_dp *intel_dp,
- u8 val);
-
-int intel_dp_i2c_read(struct intel_dp *intel_dp,
- u8 *val);
-
-int intel_dp_set_bw(struct intel_dp *intel_dp);
-int intel_dp_set_lane_count(struct intel_dp *intel_dp);
-int intel_dp_set_training_lane0(struct intel_dp *intel_dp,
- u8 val);
-int intel_dp_set_training_pattern(struct intel_dp *intel_dp,
- u8 pat);
-
-int intel_dp_get_link_status(struct intel_dp *intel_dp,
- uint8_t link_status[DP_LINK_STATUS_SIZE]);
-
-int intel_dp_get_training_pattern(struct intel_dp *intel_dp,
- u8 *recv);
-
-int intel_dp_get_lane_count(struct intel_dp *intel_dp,
- u8 *recv);
-
-int intel_dp_get_lane_align_status(struct intel_dp *intel_dp,
- u8 *recv);
-
void intel_prepare_ddi(void);
-void intel_ddi_set_pipe_settings(struct intel_dp *intel_dp);
int gtt_poll(u32 reg, u32 mask, u32 value);
void gtt_write(u32 reg, u32 data);
@@ -295,14 +101,8 @@ drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *
const struct i915_gpu_controller_info *
intel_gma_get_controller_info(void);
-int i915lightup(unsigned int physbase, unsigned int mmio,
- unsigned int gfx, unsigned int init_fb);
-int panel_lightup(struct intel_dp *dp, unsigned int init_fb);
void *igd_make_opregion(void);
-/* display.c */
-void compute_display_params(struct intel_dp *dp);
-
/* vbt.c */
struct device;
void