summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2023-06-25G/C an unused struct cpu_info memberskrll
2023-06-24Fix typo in error message.msaitoh
2023-06-19Fix typo. unknwon -> unknownmsaitoh
2023-06-18ixp425-fw.README: fix spelling: s/Cypto/Crypto/gutteridge
2023-06-17Fix typo...rin
2023-06-17Rework microcode for IXP425 npe(4).rin
Instead of using objcopy(1), which cannot handle EABI version embedded in e_flags of ELF header, add a dedicated asm file. If proprietary microcode binary is present, it is incbin'ed from that asm file.
2023-06-15if_scx.cnisimura
2023-06-14force PHY loopback while uengine reloading process as tianocore/EDK2 UEFInisimura
mentions. A piece of comment updates.
2023-06-13major code quality improvements, descriptive comments, code density.nisimura
2023-06-12Call / define fdtbus_cpus_md_attach for platforms with cpus @ fdt.skrll
The RISC-V binding here seems somewhat of an abuse, but it exists in mainline linux.
2023-05-26Fix potential null dereference by simply adding last_gd != NULL checkandvar
around the code block with last_gd usage after the inner loop. It may mainly happen on bus_dmamap_load error. Reported by Mootja _14, 2017.
2023-05-26include arm/arm32/pte.h to gemini_ipm.c to fix GEMINI_MASTER/SLAVE config ↵andvar
builds. They fail with 'L1_S_SIZE' undeclared error otherwise from gemini.h declarations. gemini_machdep.c includes it transitively, thus doesn't faili on GEMINI config. Likely nobody is using them anyway though...
2023-05-24introduce imx6sx_platform_bootstrap(), which calls imx_platform_bootstrap()bouyer
and then checks for an "arm,cortex-a9-twd-timer" compatible entry in the fdt. If not present, create one so that a9ptmr will attach. We need this entry as this is the only timer we support for this platform, but the upstream imx6sx.dtsi is missing the entry for it (and all A9 CPUs have it anyway). Thanks to Jared McNeill for advices and review.
2023-05-22efi(4): Move error macros to efi.h.riastradh
PR kern/57076 XXX pullup-10
2023-05-21small fixes, code shuffle for ease of understanding.nisimura
2023-05-06few more typos in the word "register", mainly s/resister/register/.andvar
In one comment I assume that it was meant to be pull-up resistor.
2023-05-06s/Registre/Register/ in comment.andvar
2023-05-05remove commented out entries, leftover from the imx6q ccm code.bouyer
2023-05-05Fix typo, preventing i2c4 from attachingbouyer
2023-05-04The i.mx6sx has 2 OTG and one host-only USB controller, while the 6q hasbouyer
only one OTG. Add a "uintptr_t data" argument to all sc_*_md_hook callbacks, which gets the sc_md_hook_data value when called. In imx6_usb.c use this to pass the number of OTG controllers to the callbacks. imx6_usb_init() can then properly call init_otg() or init_h1() for unit 1. In imx6_usb_attach(), test if there is a vbus-supply property in the fdt, and enable the regulator if present. Now the USB port of the UDOO Neo works.
2023-05-04Add i.mx6sx compatible entries to drivers that should work as is.bouyer
2023-05-04i.mx6sx platform support:bouyer
- the i.mx6sx has a third AIPS, so KERNEL_IO_IOREG map has to be larger - the uart clock is at 24Mhz instead of 80.
2023-05-04i.mx6sx CPU support in the CCM module: the clock tree si different frombouyer
the i.mx6q - move i.mx6q-specific functions and data to imx6_clk.c - add i.mx6sx specific imx6sx_clk.c - add a imx6sxccm device
2023-05-02Cleanup previous: Try new bindings first, document old with DTCOMPAT, KNFjmcneill
2023-05-02apparently the 'ahb' and 'ths' clocks were renamed to 'bus' and 'mod' in themacallan
fdt at some point, so look for those as well with this my pinebook's sensors work again
2023-05-02TS7200: Defer event counter registration until after evcnt is initializedjmcneill
Patch from Lloyd Parkes <lloyd@must-have-coffee.gen.nz> in PR# kern/57386
2023-04-30codec translates to 16bit slinear_le, not the internal format.mlelstv
2023-04-28Pass local symbols relocations in both passes and provide the kobj_relocskrll
implementation visibility of these relocations. Currently all implementations resolve local symbol relocations in the first pass and simply skip them in the second. The RISC-V implementation will make use of this visiblity.
2023-04-24Fix DEVMAP_FLAGS, patch from Nick.martin
2023-04-24enable rkv1crypto on rock64.mrg
this comes from upstream d1152bc533c941f7e267bf53d344cee510ea2808. (i tried to make this be in rk3328.dtsi so all rk3328 boards would benefit, but it doesn't work, and this is the only one have to test.) adjust rkv1crypto to support a per-platform clocks setup.
2023-04-21More devmap updatesskrll
2023-04-21Trailing whitespaceskrll
2023-04-20Provide a shared pmap_devmap implementation and convert all pmap_devmapskrll
arrays to use DEVMAP_ENTRY{,_END}
2023-04-18G/C unnecessaryskrll
extern paddr_t physical_start, physical_end;
2023-04-16Rename VM_KERNEL_IO_ADDRESS to VM_KERNEL_IO_BASE to match RISC-Vskrll
It's less letters, matches other similar variables and will help with sharing code between the two architectures. NFCI.
2023-04-14In preparation of imx6sx support, move imx6q-specific definitions frombouyer
imx6_ccm.c to imx6_clk.c, and prefix with IMX6Q/imx6q: - Clock IDs and related struct imx_clock_id - Clock Parents and Divider Tables - struct imx6_clk and related static functions Add a pointer to struct imx6_clk, and it's size to imx6ccm_softc Pass a pointer to imx6ccm_softc to all functions from imx6_ccm.c NFCI
2023-04-11arm/rockchip: Omit needless functions.riastradh
2023-04-07Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.skrll
2023-04-03Use PRI{u,x}{BUSSIZE,VADDR,PADDR} etcskrll
2023-04-03More KNFskrll
2023-04-03Some KNFskrll
2023-04-03spaces -> TABskrll
2023-03-28s/interrput/interrupt/ and s/accesss/access/ in comments.andvar
2023-03-26fix various typos in documentation, comments and sysctl device description.andvar
mainly aion -> ation and inlude -> include.
2023-03-04Trailing whitespaceskrll
2023-03-01delete attribution per request of contributornia
2023-03-01arm32: Optimization: Omit needless membar when triggering softint.riastradh
When we are triggering a softint, it can't already hold any mutexes. So any path to mutex_exit(mtx) must go via mutex_enter(mtx), which is always done with atomic r/m/w, and we need not issue any explicit barrier between ci->ci_curlwp = softlwp and a potential load of mtx->mtx_owner in mutex_exit. PR kern/57240 XXX pullup-8 XXX pullup-9 XXX pullup-10
2023-02-27Uncomment and protect sanity checks that would drop into the debugger with asekiya
CPSW_DEBUG_DMA define. This handles a condition where checking for DMA_RXEOQ in the received packet results in the console being spammed with "rxeoq" messages, which soon results in a kernel panic. The corresponding Debugger() call for this check was commented out. The TI documentation ("AM335x and AMIC110 Sitara™ Processors Technical Reference Manual") documents the EOQ bit thus: (14.3.2.4.1.2.4) This bit is set by the EMAC when the EMAC identifies that a descriptor is the last for a given packet received (also sets the EOP flag), and there are no more descriptors in the receive list (next descriptor pointer is NULL). The software application can use this bit to detect when the EMAC receiver for the corresponding channel has halted. This is useful when the application appends additional free buffer descriptors to an active receive queue. Note that this flag is valid on EOP descriptors only. Moving this check (and the offending printf() ) into a debug #ifdef results in the BeagleBone Green surviving the nightly checks; it would always drop into the debugger before this change.
2023-02-25Restore the ability to have EARLYCONS work for the QEMU virt afterskrll
SOC_VIRT got removed.
2023-02-25Don't refer to physical_{start,end} here and just pass minimum (0UL)skrll
address and maximum (~0UL) physical address. The values are passed through to uvm_pglistalloc which knows about the RAM ranges.