All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 06/14] arm: mx6: cm-fx6: add hdmi console
Date: Sun, 18 Jan 2015 14:48:38 +0200	[thread overview]
Message-ID: <54BBABA6.6080705@compulab.co.il> (raw)
In-Reply-To: <54B65461.5010803@web.de>

Hi Soeren,

On 01/14/2015 01:34 PM, Soeren Moch wrote:
>> Add support for hdmi console.
>>
>> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
>> Cc: Stefano Babic <sbabic@denx.de>
>> Cc: Igor Grinberg <grinberg@compulab.co.il>
>> ---
>>   board/compulab/cm_fx6/cm_fx6.c | 51
> ++++++++++++++++++++++++++++++++++++++++++
>>   include/configs/cm_fx6.h       | 15 +++++++++++++
>>   2 files changed, 66 insertions(+)
> [...]
>> +struct display_info_t const displays[] = {
>> +	{
>> +		.bus	= -1,
>> +		.addr	= 0,
>> +		.pixfmt	= IPU_PIX_FMT_RGB24,
>> +		.detect	= detect_hdmi,
>> +		.enable	= cm_fx6_enable_hdmi,
>> +		.mode	= {
>> +			.name           = "HDMI",
>> +			.refresh        = 60,
>> +			.xres           = 1024,
>> +			.yres           = 768,
>> +			.pixclock       = 40385,
>> +			.left_margin    = 220,
>> +			.right_margin   = 40,
>> +			.upper_margin   = 21,
>> +			.lower_margin   = 7,
>> +			.hsync_len      = 60,
>> +			.vsync_len      = 10,
>> +			.sync           = FB_SYNC_EXT,
>> +			.vmode          = FB_VMODE_NONINTERLACED,
>> +		}
>> +	},
>> +};
>
>
> This is not VESA compliant.
>
>
>> +static void cm_fx6_setup_display(void)
>> +{
>> +	struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *) CCM_BASE_ADDR;
>> +	int reg;
>> +
>> +	enable_ipu_clock();
>> +	imx_setup_hdmi();
>> +	reg = __raw_readl(&mxc_ccm->CCGR3);
>> +	reg |= MXC_CCM_CCGR3_IPU1_IPU_DI0_MASK;
>> +	writel(reg, &mxc_ccm->CCGR3);
>> +}
>
>
> This will not give the correct pixel clock for a framerate of 60 frames
> per second (as probably expected).
>
> Just as a warning: Due to the non-standard video timing most hdmi
> monitors will not work. For more compatible settings please have a look
> into the tbs2910 board code.
>

Thanks for the pointer. I'll take a look at the tbs2910 code when I
expand the set of supported display presets. For now this is a
preliminary support.

-- 
Regards,
Nikita Kiryanov

  reply	other threads:[~2015-01-18 12:48 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14  8:42 [U-Boot] [PATCH 00/14] cm-fx6 updates and a new splash screen feature Nikita Kiryanov
2015-01-14  8:42 ` [U-Boot] [PATCH 01/14] arm: mx6: cm-fx6: expand boot sequence Nikita Kiryanov
2015-01-19 19:18   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 02/14] arm: mx6: cm-fx6: change dtb node for ethaddr Nikita Kiryanov
2015-01-19 19:19   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 03/14] compulab: eeprom: allow reading mac address from multiple eeproms Nikita Kiryanov
2015-01-19 19:19   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 04/14] arm: mx6: cm-fx6: pass 2nd nic mac addr to Linux Nikita Kiryanov
2015-01-19 19:20   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 05/14] arm: mx6: cm-fx6: increase size of malloc area Nikita Kiryanov
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 06/14] arm: mx6: cm-fx6: add hdmi console support Nikita Kiryanov
2015-01-14 11:34   ` [U-Boot] [PATCH 06/14] arm: mx6: cm-fx6: add hdmi console Soeren Moch
2015-01-18 12:48     ` Nikita Kiryanov [this message]
2015-01-19 19:20   ` [U-Boot] [PATCH 06/14] arm: mx6: cm-fx6: add hdmi console support Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 07/14] arm: mx6: cm-fx6: display compulab logo Nikita Kiryanov
2015-01-19 19:20   ` Igor Grinberg
2015-01-22  9:58   ` Stefano Babic
2015-01-22 17:33     ` Nikita Kiryanov
2015-01-23  9:47       ` Stefano Babic
2015-01-23 10:21         ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 08/14] arm: mx6: cm-fx6: add support for usb keyboard Nikita Kiryanov
2015-01-19 19:21   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 09/14] compulab: splash: use errno values Nikita Kiryanov
2015-01-19 19:21   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 10/14] compulab: splash: refactor splash.c Nikita Kiryanov
2015-01-19 19:21   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 11/14] compulab: splash: support multiple splash sources Nikita Kiryanov
2015-01-19 19:21   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 12/14] compulab: splash: support loading splash from sf Nikita Kiryanov
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 13/14] arm: mx6: cm-fx6: add splash screen support Nikita Kiryanov
2015-01-29 17:48   ` Stefano Babic
2015-01-14  8:42 ` [U-Boot] [PATCH 14/14] common: convert compulab splash load code to common code Nikita Kiryanov
2015-01-14 16:05   ` Tom Rini
2015-01-19 19:24   ` Igor Grinberg
2015-01-29 17:48   ` Stefano Babic
2015-01-14 16:39 ` [U-Boot] [PATCH 00/14] cm-fx6 updates and a new splash screen feature Tom Rini
2015-01-14 22:48 ` Simon Glass
2015-01-18 11:50   ` Nikita Kiryanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54BBABA6.6080705@compulab.co.il \
    --to=nikita@compulab.co.il \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.