summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/xscale (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenguenther2016-09-0336-12003/+0
| | | | shortly when we use the hardware thread register in userland
* Remove code for Intel 80219/80321 xscale processors used by armish.jsg2016-08-1415-3438/+0
| | | | Generic xscale support and support for pxa2x0 used by zaurus remains.
* Add Dual Data Rate support for eMMC at 52MHz.kettenis2016-05-051-3/+3
|
* Rework mainbus and implement simplebus to be able to span a tree-likepatrick2016-05-021-2/+2
| | | | | | | topology based on device tree information. Introduce a common attach args structure to be used for all fdt-capable bus devices. ok jsg@ kettenis@
* Add support for changing the bus width to the sdmmc subsystem and the sdhc(4)kettenis2016-05-011-1/+2
| | | | | | controller. Use this to switch SD cards to a 4-bit bus if they support it. ok deraadt@, jsg@
* Switch most of the cp14/cp15 use in .S files over to using sysreg.hjsg2016-04-251-11/+12
| | | | | | | Matched and changed by a script, verified to cause no binary change with armv7, armish, and zaurus kernels. ok patrick@
* Remove tests for "processing" which was never set. It attempted tojsg2016-04-032-31/+3
| | | | | | | | | | | | protect against multiple entries of a function that handled pending soft interrupts. This seems to have been a mistake made when converting code that used simple lock in the 80321 code which got reused in armv7. arm softintr_dispatch() already has mutexes around invoked callbacks which should be enough. Make the pxa2x0 code work the same way which removes the last remaining simple lock use on arm. ok patrick@
* Switch from PSR_X_bit and X32_bit PSR macro names to just PSR_X.jsg2016-01-319-55/+55
| | | | | This matches FreeBSD and makes things a bit more consistent. Discussed with Patrick.
* When investigating an uninitialised variable in the armv7 resettodr()jsg2015-06-131-2/+2
| | | | | | | miod pointed out that time_second should be compared to 1 not 0 in the md resettodr() functions as it is initialised to 1. ok miod@ deraadt@
* add some missing splx() callsjsg2015-05-151-1/+2
| | | | ok deraadt@ kettenis@ krw@
* fix indentationjsg2015-05-071-2/+2
| | | | ok miod@
* Replace a plethora of historical protection options with justderaadt2014-11-162-5/+5
| | | | | | | PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
* Remove even more unnecessary `needs-flag' attributes from config machinery,miod2014-10-182-5/+4
| | | | as well as useless include of the generated flag files.
* Use config_suspend_all(9).kettenis2014-09-201-7/+5
| | | | ok mpi@, uebayasi@, dlg@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-124-10/+10
| | | | after discussions with beck deraadt kettenis.
* There is no need to remember which usb(4) device is the child of an USBmpi2014-05-191-4/+3
| | | | | | host controller because autoconf(9) already does it. Breakage reported by todd@
* Format string fixes and removal of -Wno-format for arm kernels.miod2014-05-082-4/+4
|
* More uvm_extern.h cleanup.mpi2014-04-032-5/+6
|
* It's been a quarter century: we can assume volatile is present with that name.guenther2014-03-294-15/+15
| | | | ok dlg@ mpi@ deraadt@
* get rid of the assumption that the head of the alldevs list is thedlg2014-03-131-5/+7
| | | | | | | | | | | "mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
* Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxmiod2014-01-261-2/+2
| | | | | | | | | | | | | | | | | kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
* Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt2013-12-061-1/+4
| | | | | | | | kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
* oops, typoderaadt2013-11-201-3/+2
|
* simplify kthread_create(). no more stdargderaadt2013-11-182-4/+6
| | | | ok matthew guenther mikeb
* add rcsidsaalm2013-10-242-0/+2
| | | | ok jasper@, patrick@
* Add load_font and list_font accessops to all rasops-based wsdisplay drivers.miod2013-10-212-2/+29
| | | | | Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-3/+2
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* Get rid of various 'typedef struct' definitions and use plain structurederaadt2013-04-162-48/+48
| | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. missed bits from previous change; ok mpi
* Fix indent, add RCS Idmiod2013-02-091-1/+4
|
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-052-5/+2
| | | | ok guenther millert kettenis
* Document the 'boothowto hack' used to flag to (a few) DVACT_POWERDOWNderaadt2012-10-171-1/+5
| | | | handlers how hard they should hit the hardware.
* Revamp the sequences for suspend/hibernate -> resume so that the codederaadt2012-10-081-1/+7
| | | | | | | | | | paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
* use static inline instead of inline so this will be compatible withjsg2012-08-221-5/+5
| | | | | | compilers defaulting to c99 inline instead of the old gnu style. ok guenther@ miod@ deraadt@
* 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