blob: 48c114e6c11c8d4b408d48bc40764ab8ca64c628 [file] [log] [blame]
/*
* arch/arm/cpu/armv8/tl1/hdmirx/hdmirx.h
*
* Copyright (C) 2012 AMLOGIC, INC. All Rights Reserved.
* Author: hongmin hua <hongmin hua@amlogic.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the smems of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*/
#ifndef _HDMIRX_H
#define _HDMIRX_H
enum port_sts {
E_PORT0,
E_PORT1,
E_PORT2,
E_PORT3,
E_PORT_NUM,
E_5V_LOST = 0xfd,
E_HPD_RESET = 0xfe,
E_INIT = 0xff,
};
struct hdmirx_data_s {
unsigned char repeater;/*if hdmitx exist,set 1*/
unsigned char dbg_en;
unsigned int port_map;
int up_phy_addr;/*d c b a 4bit*/
unsigned char *edid_buf;
int edid_size;
};
/* EDID */
#define EDID_DEFAULT_START 132
#define EDID_DESCRIP_OFFSET 2
#define EDID_BLOCK1_OFFSET 128
#define EDID_DEFAULT_LEN 256
#define EDID_CLK_DIV 9 /* sys clk/(9+1) = 20M */
#define ACR_MODE 0
void hdmirx_hw_init(unsigned int port_map,
unsigned char *pedid_data,
int edid_size);
#endif