summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/omap
AgeCommit message (Collapse)Author
2016-05-20add init_mainbus() hooks for the other armv7 platformsJonathan Gray
2016-05-07set the high speed enable bit if the timing isn't SDMMC_TIMING_LEGACYJonathan Gray
ok patrick@ kettenis@
2016-05-05Add Dual Data Rate support for eMMC at 52MHz.Mark Kettenis
2016-05-02Add check to armv7 platform bus match code, so that those busses onlyPatrick Wildt
attach if we are running in legacy mode. ok jsg@
2016-05-02Rework mainbus and implement simplebus to be able to span a tree-likePatrick Wildt
topology based on device tree information. Introduce a common attach args structure to be used for all fdt-capable bus devices. ok jsg@ kettenis@
2016-05-02add an empty ommmc_dump_regs() to fix the SDHC_DEBUG buildJonathan Gray
2016-05-02add support for changing the bus width to ommmc and set the 4-bit modeJonathan Gray
capability ok kettenis@
2016-05-01Add support for changing the bus width to the sdmmc subsystem and the sdhc(4)Mark Kettenis
controller. Use this to switch SD cards to a 4-bit bus if they support it. ok deraadt@, jsg@
2016-04-13G/C IFQ_SET_READY().Martin Pieuchot
2016-03-02Detect and only enable the port that is actually used.Can Erkin Acar
The unused port, if enabled, fills up and triggers flow control, blocking transmit and causing device timeouts. Also enable interrupt pacing to limit interrupts at 2K/s. Reported and fix tested by Anthony Eden. ok dlg@
2016-02-02remove uneeded break statementsJonathan Gray
2016-01-31Switch from PSR_X_bit and X32_bit PSR macro names to just PSR_X.Jonathan Gray
This matches FreeBSD and makes things a bit more consistent. Discussed with Patrick.
2016-01-10Seems the voltage bit defenitions in sdmmcreg.h for voltages below 2VMark Kettenis
are not quite right. At least I can't find them in any of the MMC and SD card documentation I can find on the interwebs. Instead there is a single "low voltage bit" that indicates support for the 1.65-1.95V or 1.70-1.95V range depending on the document you're reading. Go with the 1.65-1.95V range as that is what Linux does. Necessary (but not sufficient) to make the eMMC on the ASUS X205TA work. ok jsg@ (who did the armv7 bits)
2016-01-07Handle receive queue full condition instead of hanging.This can beCan Erkin Acar
triggered by flodding the interface. Also drop received packets that span multiple buffers (which should not happen). Tested on Beagle Bone Black by jsg@ ok bmercer@, djm@, jsg@
2015-11-25Small fixes related to the IFF_OACTIVE removal.Martin Pieuchot
2015-11-25replace IFF_OACTIVE manipulation with mpsafe operations.David Gwynne
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
2015-11-12get rid of IFQ_POLL.David Gwynne
IFQ_POLL(&ifp->if_snd, m); if (m == NULL) return; IFQ_DEQUEUE(&ifp->if_snd, m); is the same as IFQ_DEQUEUE(&ifp->if_snd, m); if (m == NULL) return; ok mpi@
2015-10-27arp_ifinit() is no longer needed.Martin Pieuchot
2015-08-25Put the device name into the timeout message. OK jsg@Brandon Mercer
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-05-30fix the build when SDHC_DEBUG is definedJonathan Gray
2015-05-20add per soc match functions instead of using armv7_matchJonathan Gray
2015-05-19Abstract the soc_machdep.c functions to allow a kernel to be built forJonathan Gray
multiple socs. From Patrick Wildt in bitrig with some additional changes.
2015-05-19use the same va entry point on all armv7 socsJonathan Gray
Similiar changes were made in bitrig by Patrick Wildt. As part of this change the physical load address for imx and sunxi have changed. Any u-boot settings that include it will need to be modified. imx: 0x10800000 -> 0x10300000 sunxi: 0x40800000 -> 0x40300000 Tested by bmercer, canacar and myself. ok bmercer@
2015-05-15Make board attaching table driven and move it out into the socJonathan Gray
directories. Move the device tables while here as was done in bitrig. With these changes the only use of the board id defines is in the soc directories. Tested by matthieu and djm on imx and myself on omap and sunxi (qemu). ok djm@, ok jasper@ on an earlier version
2015-03-16Convert to if_input(), tested by jsg@.Martin Pieuchot
2015-01-22Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.Kenneth R Westerback
Pointed out by dickman@. ok sthen@ phessler@
2014-12-22unifdef INETTed Unangst
2014-12-10Convert watchdog(4) devices to use autoconf(9) framework.Mike Belopuhov
ok deraadt, tests on glxpcib and ok mpi
2014-11-04Uncomment code that does voltage capabilities initialisation. WithoutJonathan Gray
this using an sd card with my rev C BeagleBone Black won't work. Should fix similiar problems reported by Gerke Preussner and Andrew Hills on arm@ ok syl@
2014-11-01Now the armv7 ramdisks are compiled with SMALL_KERNELJonathan Gray
the omap and sunxi ramdisks won't build because they call wdog_register() and kern_watchdog.c is !small_kernel in config. Leaving the watchdog devices out of the ramdisks won't work either as armv7_machdep.c uses platform_watchdog_reset() to reboot. Deal with this by only calling wdog_register() when not compiled with SMALL_KERNEL.
2014-08-18Explicitely need <sys/pool.h> now.Miod Vallat
2014-07-14Write to the correct control module registers when configuring gpio pins.Raphael Graf
Tested and ok joshe@
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-06-20Fix a wrong comparison in the interrupt handler.Raphael Graf
ok syl@
2014-05-19There is no need to remember which usb(4) device is the child of an USBMartin Pieuchot
host controller because autoconf(9) already does it. Breakage reported by todd@
2014-05-08Format string fixes and removal of -Wno-format for arm kernels.Miod Vallat
2014-05-06remove cpsw_{read,write}_4 wrapper functions and just use the realJasper Lievisse Adriaanse
bus_space_{read,write}_4 instead. tested by nick@, ok bmercer@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-18Initialize len, from netbsdRaphael Graf
ok syl@, bmercer@, jasper@
2014-03-18Add missing parts of the tiic driver.Sylvestre Gallon
inspired by rapha@ ok rapha@, jasper@
2013-12-11do not include empty (and already removed) files; ok syl@Christian Weisgerber
2013-12-11remove empty files; ok syl@Christian Weisgerber
2013-12-04Looks like the eMMC does no like block read request lower than blockSylvestre Gallon
size. Rever the bsize to default 512 to fix the problem while a proper fix is worked on. Spotted by rapha@ ok rapha@, fgsch@
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2013-11-24I2C driver for am335x, ported from netbsd, not enabled yet.Raphael Graf
"Commit the driver code" deraadt@
2013-11-20Add gpio(4) support for omap3/4 and am335x.Raphael Graf
Feedback by patrick and syl, tested by syl on BeagleBoard and BBB. ok syl@
2013-11-15Start cleaning this driver. No functional change.Federico G. Schwindt
input and ok to move forward dlg@ patrick@ syl@
2013-11-12Implement sd card detection. Fixes the `sdmmc0: can't enable card' on bbbFederico G. Schwindt
when there is no card. Tested on pandaboard by patrick@, ok patrick@ and syl@
2013-11-06After factorizing armv7_machdep code here is an effort to factorize allSylvestre Gallon
the code present in omap/omap.c imx/imx.c and sunxi/sunxi.c All this code looks quite the same, so we move it in a generic armv7/armv7.c This is a step closer to only one kernel for all armv7 boards. ok patrick@, rapha@