summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/cdc.h
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-02-23 09:09:08 -0300
committerStefano Babic <sbabic@denx.de>2015-03-02 09:57:05 +0100
commitfe021777c7fd0171c00a73d2114c2e795519ad4e (patch)
tree0cceed6c1f6da5db5f90f845615a0d2e1129ee9f /include/linux/usb/cdc.h
parent86a390d30526ac96ae161fb389c7f151a136208f (diff)
mx31: Fix boot hang by avoiding vector relocation
Since commit 3ff46cc42b9d73d0 ("arm: relocate the exception vectors") mx31 does not boot anymore. Add a specific relocate_vectors macro that skips the vector relocation, as the i.MX31 SoC does not provide RAM at the high vectors address (0xFFFF0000), and (0x00000000) maps to ROM. This allows mx31 to boot again. Cc: Anatolij Gustschin <agust@denx.de> Cc: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'include/linux/usb/cdc.h')
0 files changed, 0 insertions, 0 deletions
pan class="hl com"> * * read timebase as "long long" */ .globl get_ticks get_ticks: 1: mftbu r3 mftb r4 mftbu r5 cmp 0,r3,r5 bne 1b blr /* * Delay for a number of ticks */ .globl wait_ticks wait_ticks: mflr r8 /* save link register */ mr r7, r3 /* save tick count */ bl get_ticks /* Get start time */ /* Calculate end time */ addc r7, r4, r7 /* Compute end time lower */ addze r6, r3 /* and end time upper */ WATCHDOG_RESET /* Trigger watchdog, if needed */ 1: bl get_ticks /* Get current time */ subfc r4, r4, r7 /* Subtract current time from end time */ subfe. r3, r3, r6 bge 1b /* Loop until time expired */ mtlr r8 /* restore link register */ blr