summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/xscale (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Late spring cleaning of the arm code for old dusty bits we do not want tomiod2011-09-201-5/+1
| | | | | | | | | | | | | | | | keep: - remove bootconfig parameter passing feature (unused). - unifdef __PROG32 and remove all remains of arm26 code. - remove ARMFPE support (unused). - remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM processor families, and the related silicon bug workarounds (especially the SA-110 STM^ bug). - remove cpu_functions no longer necessary after previous removals. - remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused). - make FIQ support conditional on option FIQ (unused, but may be eventually). Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for no good reason.
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* Do not use NULL in integer comparisons. No functional change.miod2011-04-072-5/+5
| | | | ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
* Introduce a new pci routine, pci_conf_size(), which returns the size of amiod2010-12-041-1/+9
| | | | | | | given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
* Get rid of evcount's support for arranging counters in a treematthew2010-09-204-11/+9
| | | | | | | hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
* No need for vfs_syncwait() in a bufq_quiesce() worldderaadt2010-09-081-5/+1
| | | | ok thib kettenis
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-075-47/+7
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* Hurray! Zaurus apm can now call the activate functions intead of powerhooks.deraadt2010-08-301-4/+11
| | | | | | | | | We call the activate functions at splhigh; unfortunately we cannot suspend a zaurus at splhigh because on resume the clock is hosed. We accept this bug for now... perhaps someone can find it? (The powerhooks remain in place in the drivers, and will be roto-tilled once we all the other powerhook-using architectures have switched over) testing by myself and jakemsr; proof reading by oga
* Convert all powerhooks to activate functions, and provide powerhook stubs.deraadt2010-08-305-39/+40
| | | | | | Of note: lcd stubs get pulled up to the parent; zts has to keep track of whether it is in use or not testing by myself and jakemsr; proof reading by oga
* Change powerhooks into activate functions, and provide stub powerhookderaadt2010-08-301-18/+24
| | | | | functions ok kettenis
* put the bufq_restart() in the right place, so that a 2nd resume works.deraadt2010-08-291-1/+4
| | | | | how did noone notice for so long? tsk, tsk, tsk. of course, I broke it. tested by jakemsr
* More killing of PWR_STANDBY. cvs skipped these filesderaadt2010-08-274-8/+4
|
* Break pxaudc into xscale and MD pieces so that palm and zaurus can correctlydrahn2010-06-073-113/+81
| | | | share the driver with different GPIOs/IRQs Diff from marex via jasper.
* Prevent the apmd/x races for good.oga2010-03-301-1/+10
| | | | | | | | | | | | | | | | | | | When we hit suspend time, go through all wsdisplays on the system. if they are in mode MAPPED, but not MODE_DUMBFB then if possible do a full vt switch to a !mapped vt, and prevent switching back until resume time. This has to be called from MD code because this involves userland running so that X can run the vt switch signal handler. This way, any case where we are using the "poke registers from userland" model, we will not be on the hardware when we go down, so the kernel can actually handle thing properly. Tested on several acpi laptops (by kettenis@ and ian@), x40 (me and beck@ at LEAST) and zaurus (me). Maybe others, but if so I forgot who at this time.. Idea from deraadt somewhere over the Faroe Islands (I thought of a similar thing myself a while ago). Much prompting from him. Ok and comments miod@
* Add simple PXA27x matrix keypad controller drivermarex2009-09-094-2/+297
|
* pxa2x0_mmc.c: allow passing detect GPIO from platformmarex2009-09-032-6/+7
| | | | OK drahn@
* Rearrange the interrupt handler so that it handlers "error status bits"deraadt2009-09-031-10/+14
| | | | | | | | | | | first instead of trying to push data transfers forward. Also, ensure that DONE interrupts are only un-masked when we are on the last sub-block, and that otherwise we process based on RD_REQ and WR_REQ interrupts coming in. Done with drahn and marex (starting from bizzare workarounds by marex which we could not explain) This appears to make Zaurus SD reads & writes completely reliable, even at very low cpu speeds. ok drahn marex
* pxa2x0_mmc.c: Dont read MMC_STAT in intr_done if not neededmarex2009-09-031-5/+2
| | | | | | It is not needed to read MMC_STAT if DPRINTF is empty. OK deraadt
* pxa2x0_mmc.c: optimize the speed of the interrupt handlermarex2009-09-021-14/+11
| | | | | | | This patch also eliminates the bug causing any write to the card to hang the whole controller (partly). OK deraadt@
* more bloody const crap mk brokederaadt2009-08-262-4/+4
|
* Constify the what/name parameter of pci_intr_establish().mk2009-08-225-10/+10
| | | | | | | | | Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
* toby do you even care enough to try to do right?deraadt2009-08-131-2/+2
|
* A new(er) mtx_enter_try().weingart2009-08-132-2/+25
| | | | Ok oga@, "the time is now" deraadt@.
* Cleanup arm soft interrupt handling; remove the unused IPL_SERIAL and renamekettenis2009-04-082-29/+23
| | | | | | | IPL_SOFTSERIAL to IPL_SOFTTTY. tested by oga@ ok miod@
* bzero pci attach argskettenis2009-03-301-4/+2
|
* convert iopiic lockmgr to rwlock.oga2009-03-273-9/+9
| | | | ok drahn@, sthen@ tested.
* convert arm apm lock to rwlock.oga2009-03-272-7/+7
| | | | ok drahn@, todd@ tested.
* Introduce splsoftassert(), similar to splassert() but for soft interruptmiod2009-03-151-1/+3
| | | | | | levels. This will allow for platforms where soft interrupt levels do not map to real hardware interrupt levels to have soft ipl values overlapping hard ipl values without breaking spl asserts.
* fix tree break with two missing charstodd2009-02-261-3/+3
| | | | please commit miod@
* Add a two new ioctls to the apm(4) interface.oga2009-02-261-2/+12
| | | | | | | | | | | | | | | | | | | APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend where a call to zzz suspended the machine immediately, not giving anyone listening for apm events (other than apmd) a chance to deal with the upcoming change. This hit X hard since the introduction of drm, since it needs to have time to idle the 3d engine and otherwise get the device into a recoverable state. Such things are needed until we support modesetting in the kernel. Now, instead of forcing a suspend, using ioctl sends out an event similar to if you had put the lid down, giving all userland applications a chance to reply. tested by sthen@ and beck@, especial thanks to sthen for sitting there while I tried to debug this remotely, I owe him beer. Prompted by and ok deraadt@
* When jumping out of the interrupt handler early, clear conditions we knowmiod2009-02-231-3/+20
| | | | | | | | are likely set but don't need specific handling. This silences the interrupt handler if DIAGNOSTIC in some cases. ok grange@ deraadt@
* Let the sdmmc adapters tell the sdmmc layer how much sectors they canmiod2009-02-201-1/+3
| | | | | | | | transfer with one command. Build on this and the recent minphys() changes in the sdmmc layer to crank transfers at the maximum possible size instead of a sad DEV_BSIZE. Depending on your controller, this can speed up sdmmc I/O up to 2.5 times.
* rename zaurus_reg.h to machine_reg and rename some of the internal fieldsdrahn2008-11-251-14/+14
| | | | | so that arm/xscale/... is not referring to zaurus specific defines. ok miod kevlo, with some suggested changes from deraadt@
* freq is specific to APM, and it is reaching out to grab the APM variable,drahn2008-11-221-1/+5
| | | | however this global variable doesn't exist with out apm, ifdef the variable.
* scoop is specific to zaurus, it should have some other mechansim todrahn2008-11-221-1/+5
| | | | make this associate, however ifdef zaurus it for now.
* Remove clauses 3 and 4 from NetBSD license.ray2008-07-031-8/+1
| | | | OK deraadt
* Change all remaining MD uses of MALLOC and FREE into proper malloc() andmiod2008-05-192-6/+6
| | | | free() calls; prodded by chl@, ok krw@
* Remove commented out NetBSD __KERNEL_RCSID macro usage.brad2008-05-157-42/+7
| | | | ok dlg@ miod@
* Some armish machines do not have very accurate clock generators,drahn2008-02-141-2/+43
| | | | | | instead of using a fixed number for the time base, measure the "accurate" value based on the rtc. ok kettenis@ mbalmer@
* Move zaurus to __HAVE_TIMECOUNTER.kettenis2008-01-032-39/+28
| | | | ok deraadt@
* include files which are used by userland cannot include other files..deraadt2007-12-052-122/+0
| | | | which are not installed to userland; ok drahn
* Use the same cache cleaning address computation as done in cpufunc_asm_xscale,miod2007-11-021-3/+12
| | | | | | for there be dragons in xscale cache and it would not be cleaned correctly, leading to wrong pcb data being restored on resume and eventually causing panics.
* Align the suspend saved data to a cache line boundary, apparently preventsmiod2007-10-081-1/+2
| | | | issues upon resume.
* Remove ``#define SDMMC_DEBUG''. Avoids redefinition error when compilingmglocker2007-08-221-2/+1
| | | | | | a kernel and setting SDMMC_DEBUG option. ok deraadt@
* Fix some "that that"s.tom2007-08-061-2/+2
| | | | ok miod@ jmc@
* unbreak tree after untested timeout.h deletionsderaadt2007-06-141-1/+2
|
* Move the inclusion of sys/timeout.h from usb_port.h to the drivers thatmbalmer2007-06-141-1/+2
| | | | | | | | | | | need it. If a USB driver uses timeout(9) functions, the header file sys/timeout.h must be included. Tested by me (i386, macppc, sparc64), ckuethe (amd64), & todd (sparc, zaurus). ok dlg.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-2/+2
| | | | | | | (This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
* Remove definitions and usage of usb_callout and related macros. These macrosmbalmer2007-06-101-2/+2
| | | | | | | | were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
* implement WSDISPLAYIO_GETSUPPORTEDDEPTHS. ok miod@ uwe@matthieu2007-05-271-1/+5
|