summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/omap
AgeCommit message (Collapse)Author
2017-11-27OMAP4 has two watchdog timers timer 2/MPU and timer 3/IVA.Jonathan Gray
Previously the device tree only described one but now it describes both. Do not attempt to set the global variable that points to a softc or register a watchdog if this has already been done. Fixes rebooting on the OMAP4 based PandaBoard-ES with a device tree from linux 4.15-rc1.
2017-10-25Storing the address of a stack variable in a global variable is a bad idea.Mark Kettenis
Rework the code to store the relevant information in the softc. As a bonus, this reduces the stack space that is used such that this file compiles with clang. ok ians@
2017-09-11Avoid using an uninitialised variable. Found by the clang static analyser.Jonathan Gray
ok ians@
2017-09-11Don't test if an array is NULL. Fixes the build with clang which raisedJonathan Gray
a -Wtautological-pointer-compare warning. ok ians@
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-08-31Add OpenBSD CVS tags at the top of amdisplay/nxphdmi(4) files.ians
thanks Artturi Alm, ok patrick@
2017-08-18change email address in licenses to ians@openbsd.orgians
2017-08-15Convert to FDT-based interrupt establish API.Patrick Wildt
2017-08-15Apply KNF and fix whitespaces.Patrick Wildt
2017-08-15Apply KNF and fix whitespaces.Patrick Wildt
2017-08-14Add the amdisplay(4) and nxphdmi(4) drivers.ians
ok kettenis@ patrick@
2017-04-30Rename Debugger() into db_enter().Martin Pieuchot
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@
2017-03-01Remove unused table driven omgpio bits.Jonathan Gray
2017-03-01remove remaining parts of the table driven approach to attaching edmaJonathan Gray
2017-03-01Dynamically attach edma(4) using the FDT.Jonathan Gray
From Ian Sutton.
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.David Gwynne
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
struct proc to struct process. ok deraadt@ kettenis@
2016-10-25Remove now unused disable_l2_if_needed interface.Jonathan Gray
ok kettenis@ patrick@
2016-10-23stop disabling the external pl310 l2 cache on pandaboardJonathan Gray
The consensus is that this was done before the bugs in the cache flushing code were fixed. The pl310 has been enabled on imx for some time now and it works fine here on pandaboard as well. ok patrick@ kettenis@ bmercer@
2016-10-08Use the fdt root node instead of board ids to gate omap4 specific code.Jonathan Gray
2016-10-08Only set the highspeed bit in bus_clock if highspeed is supportedJonathan Gray
by the controller. Needed as the bus_clock callback is called with SDMMC_TIMING_HIGHSPEED even if the controller capability is not set. Required to raise the bus width on pandaboard which doesn't have the highspeed capability. As anything other than 1 bit mode results in the emmc on the bbb timing out waiting for command completion, limit higher bus modes to the first hsmmc controller. This at least lets 4 bit modes work with sd cards on bbb and pandaboard.
2016-10-03Disable sitaracm and add a new ompinmux driver for omap pin muxing/padJonathan Gray
configuration that attaches with the fdt and writes values to registers based on the pinctrl data in the fdt. Handles 16 bit values (OMAP3/OMAP4) and 32 bit values (AM335x/AM57xx). Feedback from and ok kettenis@ tom@ on an earlier version.
2016-10-02Set IFCAP_VLAN_MTU capability in cpsw(4). AvoidsJonathan Gray
"ifconfig: SIOCSETVLAN: No buffer space available" when creating vlan interfaces without first lowering the mtu. Reported by Steven Chamberlain, diagnosed by mikeb@, patch from Brad. ok bmercer@
2016-09-15Add omwugen(4) a driver for the TI logic that generates wakeup eventsJonathan Gray
and routes interrupts to the GIC/ampintc(4). The code is derived from imxgpc(4) which has the same role on imx. In the pandaboard device tree wugen is the default interrupt parent and is used for the hsmmc nodes. Adding this driver makes ommmc(4) interrupts work again on pandaboard. ok kettenis@
2016-08-19avoid using an uninitialised variable with zero length iic_exec callsJonathan Gray
2016-08-15Move the com(4) fdt attachment driver to a more generic location andPatrick Wildt
rename it to fit the typical scheme of such an attachment driver. ok kettenis@ jsg@
2016-08-12Switch omap to the generic ofw pinctrl framework.Jonathan Gray
ok kettenis@
2016-08-11Dynamically attach omgpio(4) using the FDT.Jonathan Gray
am335x has a compatible string of "ti,omap4-gpio" and has the same offsets as omap4, so combine the omap4 and am335x cases when setting up function pointers.
2016-08-11Dynamically attach omehci using the FDT.Jonathan Gray
ok kettenis@ patrick@
2016-08-06Always allocate intrhand with M_WAITOK.Patrick Wildt
Requested by and ok kettenis@
2016-08-06Dynamically attach intc(4) using the FDT and switch omap/am335xJonathan Gray
drivers that use the FDT over to the FDT interrupt establish API. ok kettenis@
2016-07-27Instead of passing the raw reg property to simplebus nodes,Patrick Wildt
pass a pre-processed array of fdt_reg structs. This means that the drivers don't have to understand the cell properties themselves but can rely on the 64-bit addr/size pairs. ok kettenis@
2016-07-26Rename struct fdt_memory to fdt_reg to match the member namePatrick Wildt
used in the fdt attach args and the device tree. ok kettenis@
2016-07-18Add additional i2c and mmc prcm module enum values for devices thatJonathan Gray
didn't attach previously on OMAP4 with the static device configuration and now do with the fdt. Like most of the other OMAP4 prcm cases these don't do anything, hopefully we'll properly configure clocks with data from the fdt at some point in the future. Tested by abieber@ on PandaBoard-ES.
2016-07-17Adapt kettenis' pinctrl changes in imx to sitaracm andJonathan Gray
pinctrl-single,pins to handle mux settings and pad configuration. The fdt data has offsets from the start of the pinmux address range so the am335x specific pinmux offset from the scm base is added to the offsets. This as not a new driver as sitaracm does manual table driven pad configuration for gpio. If all the offsets in the ti_padconf_devmap table were reduced by the am335x pinmux offset (0x800) it may make sense to map only the pinmux memory region and not the scm superset. looks good kettenis@
2016-07-17use the fdt root node instead of board ids to test for am335xJonathan Gray
2016-07-17Set function pointers based on the fdt root node instead of board ids.Jonathan Gray
ok kettenis@ on an earlier version
2016-07-17Set function pointers based on the fdt root node instead of board ids.Jonathan Gray
ok kettenis@
2016-07-15Remove duplicated line in omap mmc driver, which would causeTom Cosgrove
clkbase to be set to 0 (if it wasn't all commented out anyway). ok patrick@
2016-07-10Instead of attaching the omap device based on board ids follow imxJonathan Gray
and match based on the compatible property of the root node in the fdt. Each of am33xx, omap3, and omap4 have their own list of devices to attach.
2016-07-10Remove now unused definitions for drivers that have been converted toJonathan Gray
use the fdt.
2016-07-09Use mac address and phy id from the fdt. Store settings for a secondJonathan Gray
port as well, though we still only handle a single port for now. ok kettenis@
2016-06-26Dynamically attach cpsw(4) with the FDT.Jonathan Gray
2016-06-26Dynamically attach tiiic using the FDT.Jonathan Gray
Only match on omap4 compatible controllers such as the one in the am335x on bbb. omap3 has different register offsets and a different compatible string. This reuses kettenis' fdt i2c scan function from imxiic(4).
2016-06-26add a missing argument specified in format string so this builds againJonathan Gray
2016-06-26destaticJonathan Gray
2016-06-26Dynamically attach omdog(4) using the FDT.Jonathan Gray
2016-06-19omap4 uart is compatible with omap3 uart but has it's own compatible stringJonathan Gray
2016-06-19dynamically attach omap uart with fdtJonathan Gray
2016-06-18Stop setting the 4-bit mode capability flag for now.Jonathan Gray
Writing to the bbb emmc (but not reading) gives errors otherwise. This does not occur with an sd card on bbb but apparently does on panda.