merrifield: added early printk support for debug UART
authorBin Gao <bin.gao@intel.com>
Fri, 9 Mar 2012 01:58:02 +0000 (17:58 -0800)
committerbuildbot <buildbot@intel.com>
Sat, 10 Mar 2012 02:22:36 +0000 (18:22 -0800)
commitc4946b2807ab046ea81b089a2fd5551e0c9d5f25
tree42ebcbb8a913ecf1c657368249af387268db552f
parentc15d7f893c0549282268de063d1bf1c57b3f080b
merrifield: added early printk support for debug UART

BZ: 25951

Currently we have 3 types of early printk consoles: max3110 SPI-UART, HSU and PTI.
PTI is awlays supported because it's a Soc debugging feature.
HSU is always supported but also depends on board design. Some boards don't have
HSU UART pins routed to the connector so we can't use it.
Max3110 SPI-UART is a stand-alone chip with SPI interface located in the debug card.
Drivers can access to this chip via Soc's SPI controller or SSP controller(working
in SPI mode).

Previously for mrst, mdfld and clv, max3110 was connected to SPI controller,
but for mrfld, max3110 is connected to SSP controller. This patch is to enable the
early printk console via the SSP controller.

Change-Id: I8ea0e39cd0cb1f2eca3785854fed878f46d9aa1d
Signed-off-by: Mark F. Brown <mark.f.brown@intel.com>
Signed-off-by: Claude Brouat <claude.brouat@intel.com>
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/37359
Reviewed-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/include/asm/intel-mid.h
arch/x86/kernel/early_printk.c
arch/x86/platform/intel-mid/early_printk_intel_mid.c