andrew
502d4577e2
Use the new gic option on all configs that need it.
2015-05-10 12:13:27 +00:00
andrew
e2a65d5cfa
Add support for the uart classes to set their default register shift value.
...
This is needed with the pl011 driver. Before this change it would default
to a shift of 0, however the hardware places the registers at 4-byte
addresses meaning the value should be 2.
This patch fixes this for the pl011 when configured using the fdt. The
other drivers have a default value of 0 to keep this a no-op.
MFC after: 1 week
2015-04-11 17:16:23 +00:00
andrew
5962f57b5d
Include vm/pmap.h for pmap_kextract.
2015-04-04 23:03:11 +00:00
andrew
9b9d02caf2
Build the cpufunc_asm_* files based on the cpu type, not which config file
...
we happen to be building.
2015-03-29 22:43:39 +00:00
andrew
f3e1f9971a
Remove cpufunc_asm_arm11.S from the ARMv7 configs, it's not used.
2015-03-29 21:45:28 +00:00
andrew
61b861116b
Remove the bootconfig parsing. We never used it and always passed either an
...
empty string or NULL to the setup functions that called into it.
2015-03-29 20:37:28 +00:00
andrew
c74b20a769
Stop building unused cpuvunc_* files, we don't need anything from these.
2015-03-29 17:33:03 +00:00
ian
550c116c70
Move the uart_class definitions and fdt compat data into the individual
...
uart implementations, and export them using the new linker-set mechanism.
Differential Revision: https://reviews.freebsd.org/D1993
Submitted by: Michal Meloun
2015-03-07 15:24:15 +00:00
hselasky
8dc95f1ef3
Add quirk to disable 64-bit XHCI DMA after r276717.
...
Requested by: Gary Jennejohn <gljennjohn@gmail.com>
MFC after: 3 days
2015-03-02 20:42:06 +00:00
hselasky
4f0a7fb0b1
Update Exynos5 XHCI attach code after r276717.
...
MFC after: 3 days
2015-03-02 20:38:17 +00:00
loos
5e1a593992
Implement GPIO_GET_BUS() method for all GPIO drivers.
...
Add helper routines to deal with attach and detach of gpiobus and gpioc
devices that are common to all drivers.
2015-01-31 19:32:14 +00:00
loos
a2924f5fee
Clean up and fix the device detach routine and the failure path on GPIO
...
drivers.
This paves the way for upcoming work.
2015-01-31 12:17:07 +00:00
ian
3d363fe980
Remove a couple files that are no longer used (functionality take over by
...
arm/bus_space_base.c).
2015-01-21 05:31:54 +00:00
ian
673eea0b9b
Use the base arm bus_space instead of an identical local copy.
2015-01-21 04:28:19 +00:00
ian
2a957de5c0
Rename bus_space-v6.c to bus_space_base.c, because it's not v6-specific
...
and now some v5 Marvell systems are using it. Only define fdt_bus_tag
if option FDT is defined.
2015-01-21 03:44:29 +00:00
ian
b4fa4f6baa
For some reason, all the arm bus_space functions that work with uint16
...
values have armv4 in the name. There's nothing armv4-special about them,
so just use the same sort of names as all the other functions.
2015-01-21 02:56:13 +00:00
br
7330ff0c10
Rename Exynos UART driver. No functional change.
...
Submitted by: Michal Meloun <meloun@miracle.cz>
2015-01-13 15:04:28 +00:00
andrew
1b85e73844
Rename gic_init_secondary to arm_init_secondary_ic to help with the merge
...
of the arm_intrng project branch.
2015-01-11 16:46:43 +00:00
hselasky
63ec340209
Add 64-bit DMA support in the XHCI controller driver.
...
- Fix some comments and whitespace while at it.
MFC after: 1 month
Submitted by: marius@
2015-01-05 20:22:18 +00:00
ian
3bc3ae6d63
Remove -Wa,-march=armv7a from arm kernel configs, it makes clang 3.5 sad
...
and apparently isn't needed now that we're using the integrated assembler.
2015-01-01 23:21:46 +00:00
ian
4fe84e7e6c
Add -march=armv7a to the kernel compile for all ARM systems which are v7a.
...
Submitted by: Michal Meloun <meloun@miracle.cz>
2014-12-21 23:48:32 +00:00
loos
9ad347c496
Moves all the duplicate code to a single function.
...
Verify for invalid modes and unwanted flags before pass the new flags to
driver.
2014-11-18 17:22:08 +00:00
loos
7dd1b73c38
Make the GPIO children attach to the first unit available and not only to
...
unit 0.
It seems that this 'simplification' was copied to all GPIO drivers in tree.
This fix a bug where a GPIO controller could fail to attach its children
(gpioc and gpiobus) if another GPIO driver attach first.
2014-10-28 18:33:59 +00:00
br
d607317057
Add driver for Synopsys DesignWare Mobile Storage Host Controller.
...
Sponsored by: DARPA, AFRL
2014-10-07 17:39:30 +00:00
gavin
3d4fec8198
Move the ARM Samsung s3c2xx0 support files into the samsung directory, to
...
match other platforms.
Discussed with: andrew
2014-09-25 11:38:26 +00:00
nwhitehorn
3f73593428
Remove unnecessary inclusion of FDT headers.
2014-08-08 06:30:17 +00:00
nwhitehorn
dd715abb93
Use OF_getencprop() in preference to OF_getprop() and manual byte-swapping.
2014-08-08 06:29:30 +00:00
br
f484e00cba
Add support for Chromebook2 -- next-generation 8-core
...
(4 in operation), 4GB ram (3.5 usable) ARM machine.
Support covers device drivers for:
- Serial Peripheral Interface (SPI)
- Chrome Embedded Controller (EC) - SPI-based version
- XHCI and USB 3.0 dual-role device PHY
Also:
- Add support for Exynos5420 in Pad module
- Move power-related functions to separate driver --
Power Management Unit (PMU)
- Enable XHCI for Chromebook1
Special thanks to grehan@ for hardware, and to
hselasky@ for r269139.
2014-08-01 06:20:25 +00:00
br
36a03e74a8
Add the rest of combined interrupt groups.
2014-07-28 05:37:10 +00:00
br
c0c4d2c0ac
Add machine-dependent SMP part for Exynos5420
2014-06-12 11:37:38 +00:00
br
26c0c3b8dc
Fix i2c communication interface to be compatible with
...
vendor tools, e.g. embedded controller tool
Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
2014-06-01 08:45:27 +00:00
br
6b95de8260
Rename exynos uart driver filenames.
2014-06-01 08:34:45 +00:00
br
0ee1db09b6
Add support for Exynos 5420 Octa - 8-core
...
heterogeneous (big.LITTLE) ARM machine
(4 x Cortex-A15 @ 1.8Ghz, 4 x Cortex-A7 @ 1Ghz)
Add configuration for Arndale Octa development board
2014-06-01 08:15:34 +00:00
br
caf73c4db9
Do only receive chars if there are some data in the buffer.
...
This fixes operation on newer Exynos boards.
2014-06-01 07:34:54 +00:00
br
7976af5d5f
Reset HSIC hub during EHCI initialization. This makes devices connected
...
to external USB ports available to the system.
Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
2014-05-30 07:48:55 +00:00
br
a26f767f98
Fix off-by-one error that makes 0-th pins of each bank unreachable.
...
Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
2014-05-30 07:43:55 +00:00
br
63848ea4f5
o Make keyboard-related properties to be compatible with vendor standard
...
o Allow setting keymap in FDT, use hardcoded one by default
o Represent fallback keymap as a list rather than directly usable M*N array
Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
2014-05-30 06:45:50 +00:00
br
5fd655aafb
Add simple polling mechanism that works for KDB.
...
Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
2014-05-28 06:15:45 +00:00
br
9fb7070621
Describe I2C arbitrator device in DTS and use it for Chromebook Snow only.
...
Submitted by: Maxim Ignatenko <gelraen.ua@gmail.com>
2014-05-28 06:11:12 +00:00
andrew
ad9a51105a
Add the start of the ARM platform code. This is based on the PowerPC
...
platform code, it is expected these will be merged in the future when the
ARM code is more complete.
Until more boards can be tested only use this with the Raspberry Pi and
rrename the functions on the other SoCs.
Reviewed by: ian@
2014-05-17 11:27:36 +00:00
br
6c1fcc9eea
Correct the end address of the video frame buffer.
...
This fixes problem that sometimes display suddenly
goes blank.
2014-04-05 16:38:27 +00:00
br
905a22bf60
Remove unused prototype.
2014-04-04 05:05:43 +00:00
br
b3b07e5e27
Release i2c bus on detach.
2014-04-01 04:40:08 +00:00
br
d53ebc4269
Add support for keyboard used in Samsung Chromebook (ARM machine)
...
Support covers device drivers for:
- Interrupt Combiner
- gpio/pad, External Interrupts Controller (pad)
- I2C Interface
- Chrome Embedded Controller
- Chrome Keyboard
Also:
- Use new gpio dev class in EHCI driver
- Expand device tree information
2014-03-30 15:22:36 +00:00
br
43d65a89f4
Directly call kmem_alloc_contig to allocate framebuffer memory
...
and pass VM_MEMATTR_UNCACHEABLE (no-cache, no-buffer).
This fixes screen refreshing problem when data is updated too slowly.
Discussed with: ian
2014-03-30 14:42:53 +00:00
br
e7f72e1f8d
Rename mct and ehci drivers files to match common naming.
2014-03-20 17:53:56 +00:00
br
be426ca90a
Remove printf's.
2014-03-20 17:33:01 +00:00
br
2ad9fdae7d
Add driver for Display Controller.
2014-03-20 17:07:14 +00:00
br
ef1ba07d1c
- Add display-related and clk devices to the tree
...
- Prevent resources intersection with EHCI driver
2014-03-20 17:03:44 +00:00
ian
e825adc7a6
Eliminate irq_dispatch.S. Move the data items it contained into arm/intr.c
...
and the functionality it provided into arm/exception.S. Rename the main
irq handling routine from arm_handler_execute() to arm_irq_handler() to
make it more congruent with how other exception handlers are named, and
also update its signature to reflect what has long been reality: it is
passed just a trapframe pointer, no interrupt number argument.
2014-03-10 18:10:09 +00:00