ASI1230: Modify OMAP related makefiles and platform sources to avoid unnecessarily compiling in support for HDMI, FB, VPSS, USB, VIDEOIN, VIDEOOUT
ASI1230: Fix SATA and PCI PLL init.

The relevant code wasn't #ifdef'ed out when SATA and PCI were disabled in config
causing asi1230 to spin forever
ASI1230: Call SoC family function to reserve memory
ASI1230: Temporarily swap MISO and MOSI pins when configuring McSPIs to work around a ASI1230 Rev A issue.
ASI1230: Temporarily set the version field of struct omap2_hsmmc_info to MMC_CTRL_VERSION_1 instead of MMC_CTRL_VERSION_2 to work around ASI1230 Rev A not routing card detect and write protect signals to the SoC.
ASI1230: Blink RJ-45 activity LED at a 10Hz rate
ASI1230: Lindent-ed board file
ASI1230: Fixed unused variable warning
omap2: use generic clk_enable/disable

The omap2_ functions will be called via clk function table

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
omap2: clock: mark usecount change policy

Mark where clock prevents changes when usecount > 1 (With //?EWB)
Change usecount errors to warnings.
?should not set this policy here, there are valid scenarios where
changing a clock used by multiple children is allowed?
ti814x: clock: correct clkout divider behaviour

Division ratio is N+1 not 2^N

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
ASI1230: Revert "ASI1230: Temporarily swap MISO and MOSI pins when configuring McSPIs to work around a ASI1230 Rev A issue."

This reverts commit 22cfeafda76b9f93a1a22e6e313e5d8196443865.
ASI1230: Temporarily remove SPI master 0 (SPI flash) from board devices for revA HW. To be reverted for revB HW.
ASI1230: Enable McASP0's clock during board setup so it can be accessed by other CPUs
ASI1230: Add spidev1.1 and spidev1.2 declaration to board init file
Avoid unnecessary ADPLL DCO MODE (SELFREQDCO) switching

In _dpll_get_rounded_vals() set M2 to the default value only on the first call.
Modify _adpll_test_dco_freq() to search for an acceptable M2 value
starting with the current value. This fixes cases where a small change
in target freq causes the dco mode (SELFREQDCO) to change resulting
in loss of PLL lock.

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
Fix cpts_systime_read(): clear time_push before entering poll loop

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
Add locking around calls to cpts_time_evts_fifo_pop()

Add locking around calls to cpts_time_evts_fifo_pop() in
cpts_rx_timestamp() and cpts_tx_timestamp()

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
Fix CPTS timestamping in cpsw_rx_handler()

cpsw_rx_handler() is missing a last minute check of the timestamp FIFO
which causes some events to get lost.
Make the last minute timestamp FIFO check in cpsw_rx_handler() and
cpsw_tx_handler() conditional on the state of the FIFO.

V2

Add unlikely() macros around cpts_reg->intstat_raw register checks

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
Fix event loss and reduce lookup times in cpts_time_evts_fifo_pop()

A bug caused the current head item to be lost whenever
cpts_time_evts_fifo_pop() returned an item (!= head) inside the FIFO.
Another bug prevented the FIFO's item count to decrease once it reached
its maximum size, which increased event lookup times.
NOTE: The cpts_time_evts_fifo_*() functions and datastructure names
are misleading because items which are not at the head of the FIFO
can be removed.

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>