Fix disabling printk's build error.

Disabling printk's via CONFIG_PRINTK in the menuconfig gives the build error:

arch/arm/common/built-in.o: In function `end_syslog_dump':
~/a-3.0/arch/arm/common/fiq_debugger.c:524: undefined reference to `log_buf_copy'
arch/arm/common/built-in.o: In function `begin_syslog_dump':
~/a-3.0/arch/arm/common/fiq_debugger.c:514: undefined reference to `do_syslog'
arch/arm/common/built-in.o: In function `dump_kernel_log':
~/a-3.0/arch/arm/common/fiq_debugger.c:208: undefined reference to `log_buf_copy'
make: *** [.tmp_vmlinux1] Error 1

This was tested on both the 4AI.1.2 and 4AI.1.3 releases with the same result.

Change-Id: I432408bdd4ee07a261d11ca6710a56164512438b
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: x0182794 <volodymyr.mieshkov@ti.com>
OMAP: EMIF: fix LP_MODE_PWR_DN value definition

According to TRM the EMIF Power-down mode is identified
by value 0x4 (EMIF_PWR_MGMT_CTRL.REG_LP_MODE)

Change-Id: I4d9b9534dea27ab4619af5b6d78de8ab14f0fead
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
OMAP4: EMIF: unify access to EMIF_PWR_MGMT_CTRL.REG_LP_MODE

Use set_lp_mode for changing EMIF_PWR_MGMT_CTRL.REG_LP_MODE.

Change-Id: Ia6410f97c8937faee6fbfc335d5d1158de41583b
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
OMAP4: EMIF: code cleanup and clarification

Removed unused fields of emif_regs structure and
functions that initialize or change them.

Also changed few names of emif_regs members
to match register names.

This made the code easier to understand and read
as well as made it a little bit faster

Change-Id: I0485a01b7f03e922b5a2e69bfb03c2ed941fcf3b
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP4430/60: EMIF: errata: Prohibit usage of Power-Down mode

A ZQ calibration long command is issued every time on exit
from active power-down and precharge power-down modes
when EMIF is configured to use Power-down mode
(EMIF_PWR_MGMT_CTRL.REG_LP_MODE=0x4).

Due to very short periods of power-down cycles, ZQ calibration
overhead creates bandwidth issues and increases overall system
power consumption.

As result, the guideline is to not allow Power-down mode and,
therefore, to not have set the
EMIF_PWR_MGMT_CTRL[10:8] REG_LP_MODE bit field to 0x4.

TI Errata i743; IMPACTED: OMAP4430/60 all revisions

Change-Id: Ib82f28e6e0c6c046ea277b90a78dc82c1ee82417
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Vitaly Chernooky <vitaly.chernooky@ti.com>
OMAP4: EMIF: LPDDR interface configuration update

In latest TRMs for OMAP4 family LPDDR recommended
setting have been changed. This patch does
corresponding changes in the code.

Change-Id: Ibd81b8196db74df5a7c3e29788c72a7b3628a22c
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>

Conflicts:
	arch/arm/mach-omap2/emif.c
ARM: OMAP4: DPLL: DO NOT do DLL reset when changing M2/frequpdate

PRCM programming model in OMAP4 and OMAP5 require that DLL reset
NOT to be done as part of frequpdate(EMIF) and when M2 divider is
changed.

Change-Id: I486e1381fa8b86ef4b903e778b8638d553800dfe
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
OMAP4: tablet: Make panel configuration dynamic

Enable support for multiple panels, and make the selection of
panel settings dynamic based on kernel boot argument
ompadss.board_id. FB ram size should not be specified since
it is being calculated.

Rebased by Dima Svetlov.

Change-Id: Idf138337d58c4c38c9d71a0f31e2affefa713d48
Signed-off-by: Peter Nordström <nordstrom@ti.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
Signed-off-by: Dima Svetlov <svetlov@ti.com>
OMAP4: Tablet: Configure TILER1D and FB allocation for WUXGA panel

- Allocate 54 MB for TILER1D for WUXGA panel
- Put FB in VRAM for WUXGA panel

Change-Id: I2c7cbc3287837a0235f6b6be08ea6d255f3873d7
Signed-off-by: Dima Svetlov <svetlov@ti.com>
Signed-off-by: Peter Nordström <nordstrom@ti.com>
remove CONFIG_STRONGLY_ORDERED

Change-Id: I76049f4a79ca14380ae5768ffa0bed30814e771b
OMAP: rfkill driver for ST-E modem

Driver skeleton aimed at controlling ST-E modem rfkill switches.
It will bind to relevant modem devices drivers once registered, and
create relevant sysfs entries.
Preliminary version, actual rfkill switch control is not implemented.

Change-Id: I6836689495db8c0e3099545020d1eca8a1ca9407
Signed-off-by: Julien Vuillaumier <j-vuillaumier@ti.com>
Enable OMAP_RFKILL_STE_MODEM for 'ste-p5780'

Create and register a platform device for 'ste-p5780' after the modem detection
procedure.
The platform device registering creates a WWAN RFKILL device.

Change-Id: Iebd712c2ea9211a71242df04a684b24cce281528
Signed-off-by: Julien Vuillaumier <j-vuillaumier@ti.com>
Signed-off-by: Patrick Combes <p-combes@ti.com>
OMAP4: Blaze: Add dsi timing parameters

The dsi timing parameters have moved from being
hard coded in the driver to be specified in the
board file.

Change-Id: Ife3d887fd7302242467ce093bc65330acdbf1fc2
Signed-off-by: Peter Nordström <nordstrom@ti.com>
twl6040: errata: PDMUP State In Sleep/Deep Sleep Mode

When AUDPWRON is set to 0 at any time in the IC operation to
put it into sleep or deep sleep mode, there is a finite probability
that the value of PDMUP could be at logic 1 (VDDVIO). In this state,
the resistive pulldown on OMAP on this pin results in a current drain.

Adding new impacted revisions (ES1.3, ES2.0, ES2.2) to errata workaround.

Change-Id: I049fe85eb2e1e9d04c72a9820f3adcc25db35646
Signed-off-by: Vadym Shovkoplias <shovkoplias.vadym@ti.com>
OMAP: UART: Enable RTS line control in UART driver

On suspend path single data byte can be losted by UART.
For prevent the issue we need to enable RTS control in
UART driver. Rising the RTS line right after suspend
routine start preventing send additional data from client
and thereby preventing data lost.
Since this featute was already implemented in UART driver
and depends of platfrom setting that doing this via
platform data and just for UART1.

Change-Id: I4cb3f5da3b5719a1d4f7b902d73272e99eeae8ac
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
OMAP4: board: power: Set sense resistor value for current measurement

This patch sets resistor value (10 mOhm) for current measurement in
the board file for Blaze and Tablet/Tablet2.

Change-Id: I041a45fce65075d721b1f37ec9d3fb7ab3ac4565
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
OMAP4: Tablet: Set correct pixel clock value

Set the correct pixel clock value for the Samsung/Hydis
WUXGA display.

Change-Id: I133380f6332f1e90d77e9257c9e29151201c1252
Signed-off-by: Peter Nordström <nordstrom@ti.com>
OMAP4: TABLET : Initialize HDMI default

Intialize HDMI defaults to 1080p timings.

Change-Id: I3e5b4fab080baa1705eb4d591a8c8da63f6c9f7c
Signed-off-by: Dandawate Saket <dsaket@ti.com>
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
OMAP4: Add platform data to support HDMI default display

Adding new platform data to support HDMI default display feature.
HDMI platform data is selected if HDMI is selected as default
display in boot args.

Change-Id: Ic5968c4b293e2a1edff61490b2deab2e4af6dbcb
Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
OMAP: UART: Specify DMA RX buffer size

At the moment DMA mode is disabled for UART. When enable it -- there is
continuously printing "DMA misaligned error" even though data is aligned
properly (tested with IS_ALIGNED() macro). Actually the problem is in zero
length size for RX DMA buffer.

This patch set RX DMA buffer size equals to default size to prevent futher
problems if DMA will be enabled for UART. Also it set other DMA RX fields to
their default values.

This patch inspired by OMAP5 serial board file (board-omap5evm-serial.c)
in k3.4.

Change-Id: Id73c30892b2104b4283783e740f137514be64a1f
Signed-off-by: Semen Protsenko <semen.protsenko@ti.com>