summaryrefslogtreecommitdiffstats
path: root/sys/dev/smc
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2014-05-15 15:47:52 +0000
committerloos <loos@FreeBSD.org>2014-05-15 15:47:52 +0000
commitffa1dc9425d9681f0da92d9266010bcc0f81d399 (patch)
treef390584e6a8061885989b76b4f4e7822d6f45554 /sys/dev/smc
parent69ca53fdd27132e6f0401bc4df990d8dafad71ca (diff)
downloadFreeBSD-src-ffa1dc9425d9681f0da92d9266010bcc0f81d399.zip
FreeBSD-src-ffa1dc9425d9681f0da92d9266010bcc0f81d399.tar.gz
MFC r259125, r264019, r264083, r264153, r264197
r259125: Fix a few typos on the scm (control module) pin mux definitions. r264019: Fix some of the style(9) problems on ti_gpio. Remove redundant code and declarations. r264083: Move the GPIO bank initialization to a new function to make easier to detect errors. Reset the GPIO module during the initialization. This is guaranteed to be the same as a hardware reset. Tested on AM335x (BBB) and checked against the omap3 and omap4 TRM. Do a better job freeing resources when there are errors and on ti_gpio_detach(). r264153: - Fix the setup of interrupts for banks 2 and 3 on AM335x. On AM335x each one of the four GPIO banks has two physical interrupt lines, so we now allocate resources and setup our interrupt handler for all the (8) available interrupts. On OMAP3 and OMAP4 there is only one interrupt for each GPIO bank (6 banks, 6 interrupts), but there are two set of registers where the first one is used to setup the delivery of interrupts to the MPU and the second set, setup the delivery of interrupts to the DSP. On AM335x, each set of registers controls each one of the interrupt lines. - Remove nonexistent registers for OMAP4 and AM335x, replace their use with the correct ones for these SoCs. - Remove stray whitespace. r264197: Partially revert r264083. While it is the recommended initialization procedure, it hangs on the reset of the second GPIO module on pandaboard. Removes the module reset for now as more investigation is needed.
Diffstat (limited to 'sys/dev/smc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud