summaryrefslogtreecommitdiff
path: root/sys/arch/evbppc
AgeCommit message (Collapse)Author
2023-02-09Adjust _all_ cinclude of *.local filesabs
- Ensure always at end - Use tab rather than spaces - Add consistent comment "Pull in optional local configuration - always at end" The only functional change is that a local file which tried to override an existing setting (eg with "no foo") would have failed in some cases before, but now will work
2022-10-15DHT Walnut: Fix failure to attach on-board pdcide(4) for cold boot.rin
U-Boot seems to initialize pdcide(4) to compatible mode. Therefore, we need to reinitialize it to native-PCI mode in pci_conf_hook(). Otherwise, we will fail to configure IO registers for native-PCI mode during PCI_NETBSD_CONFIGURE.
2022-09-29swwdog(4): Add to GENERIC kernels.riastradh
Plus a handful of others that I'm familiar with. Lots of special- purpose kernels should probably have this too but I'm not going through all the arm, mips, and ppc evaluation board kernels to see which ones are relevant. Omitted from systems I know to be very small: - sun2/GENERIC - dreamcast/GENERIC Feel free to remove it from others that need to be kept smaller. Compile-tested a few of these just in case: - alpha/GENERIC - amd64/GENERIC - evbmips/OCTEON - i386/GENERIC - riscv/GENERIC PR kern/29702
2022-09-18Eliminate use of IFF_OACTIVE.thorpej
2022-09-11Add hack for clang for ibm4xx/trap.c.rin
Integrated as does not recognize {l,st}swx, that have been requisite insns by architecture since 601. Also, it does not pass gas for appropriate -mfoo flag.
2022-08-07Enable UFS_DIRHASH; this machine has 256MB RAM :)rin
2022-08-07UFS/LFS dirhash:simonb
- Enable UFS_DIRHASH if the architecture or kernel model specific config file can use 128MB of RAM or more. - Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel and by a number of NetBSD developers for years. - Add LFS_DIRHASH if LFS was enabled. - Be somewhat consistent with FS options order.
2022-07-22Split the i2c controller into 2 separate instances. This aligns withthorpej
how the device is represented when using DeviceTree, and also allows us to de-weirdify the shared motoi2c code. XXX Because e500 interrupt code doesn't support shared interrupts, we no longer establish one for the i2c controller, but this isn't a great loss as motoi2c doesn't support using interrupts right now anyway.
2022-07-22Stop using deprecated problib functions.thorpej
2022-07-22Revert previous; that was intended to be two separate commits.thorpej
2022-07-22Stop using deprecated proplib functions.thorpej
2022-06-04- Use register prefix (%r).rin
- Remove workaround for old gas(1) bug. No binary changes.
2022-05-30Restrict strictly-aligned versions of memcmp(9), memcpy(9), andrin
memmove(9) to 403, instead of all evbppc machines. Introduce strict-align LIBKERN_MD_FLAGS for this purpose.
2022-05-30For IBM_PPC403, emulate unaligned memory access for userland process.rin
2022-05-29le(4): Fix resource leaks for error paths.rin
XXX Compile test only (at least one arch per driver).
2022-05-07Instead of hard-coding SPR# for CCR0, define SPR_CCR0 inrin
<powerpc/spr.h> and use it. Idea from uwe@, thanks! (and sorry for delayed response!)
2022-03-10powerpc: Implement bus_space_barrier as eieio.riastradh
2022-03-03powerpc: Use device_set_private for e500 cpuN.riastradh
2022-02-27evbppc/temac(4): Mark unused functions as such.riastradh
2022-02-20Convert assembly to something both gcc and clang understand.christos
2022-02-17evbppc: fix typo from cfargs rototill.riastradh
2022-02-16powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.riastradh
Otherwise the compiler may reorder these around loads and stores, which mostly defeats the purpose. `asm volatile' just ensures the instruction isn't _deleted_; it may still move around.
2022-02-12evbppc/wdc(4) at obio: Stop fabricating bogus struct device.riastradh
Nothing uses this.
2022-01-15s/adressing/addressing/msaitoh
2021-12-08fix various typos in comments and log messages.andvar
2021-12-05s/decriptor/descriptor/ in comment.msaitoh
2021-10-21fix various typos, mainly in comments, but also in man pages and log messages.andvar
2021-09-19fix few more typos in comments, messages and documentation.andvar
2021-09-04Fix build without DEBUG.rin
2021-08-20fix various typos in comments and log messages.andvar
2021-08-19s/memry/memory+s/softare/software/+s/grapics/graphics+s/ouput/outputandvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-08-03Switch evbppc/ibm4xx to generic evbppc (same as oea) kernel modules.rin
I've confirmed that kernels similar to amd64/conf/MODULAR work fine both on 403 and 405. XXX Unfortunately, we cannot immediately switch evbppc/booke to generic kernel modules yet; it has its own intr.h implementation.
2021-06-29Remove uscanner(4) drivernia
This exists for compatibility with a Linux interface which was apparently deprecated in Linux 2.6. There are various mailing list threads going back to 2004 where the usefulness of this driver is discussed, but the conclusion is that scanner software has all moved to using ugen(4) instead, and enabling this driver will not help you scan things.
2021-06-26Oops, revert unintentional part of the previous.rin
2021-06-26Set VMSWAP_DEFAULT_PLAINTEXT for Explora 450 (IBM_PPC403).rin
(slow CPU & memory shortage)
2021-06-03- Add some more things necessary for ATF.rin
- Add makphy(4) found in recent wm(4) models. - Style.
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2021-04-02evbppc: Add support for DHT Walnut 405GP evaluation board.rin
(Digital Home Technologies PCB 01070201 Rev. 1.1) Official web page seems gone, but analyses by Linux people are at: - https://elinux.org/DHT-Walnut - http://web.archive.org/web/20070225171826/http://supernova.stanford.edu/dingdong/ The board features: - 266MHz PowerPC 405GP processor - one PC133 SDRAM slot - two 32-bit 5V PCI slot - on-chip ethernet controller with DP83843 PHY - on-chip serial port / GPIO controller - on-board PDC20265 IDE controller Hardware limitations: - no MAC address assigned - no RTC present Known problem: - atabus(4) channels cannot be attached to pdcide(4) for cold boot dmesg: - https://dmesgd.nycbug.org/index.cgi?do=view&id=5997 Have fun!
2021-03-30- G/C unused.rin
- Sort headers. No binary changes.
2021-03-30- Explicitly include <powerpc/spr.h>.rin
- Drop unused headers. - Group headers. No binary changes.
2021-03-30- Include tlb.h directly, instead of uvm_extern.h.rin
- Drop unused headers. - Sort and group headers. No binary changes.
2021-03-30- Include tlb.h directly, instead of uvm_extern.h.rin
- Explicitly include param.h. - Drop unused headers. - Sort and group headers. No binary changes.
2021-03-30- Explicitly include <sys/param.h>.rin
- Drop unused headers. - Sort headers. No binary changes.
2021-03-30- Include tlb.h directly instead of uvm_extern.h.rin
- Remove unused/duplicated header include. - Sort and group headers. No binary changes.
2021-03-30- Explicitly include <sys/param.h>.rin
- G/C headers. - Sort headers. No binary changes.
2021-03-30Include <dev/ic/comreg.h> for COM_FREQ.rin
2021-03-30Sort & group headers. No binary changes.rin
2021-03-30G/C unused. Use tlb.h directly instead of uvm_extern.h.rin
No binary changes.
2021-03-30G/C <evbppc/obs405.h>.rin