Commit Graph

2356 Commits

Author SHA1 Message Date
mlelstv
7b1a30890f Add more tags understood by the firmware. 2016-04-03 11:02:17 +00:00
skrll
b1ee8add7a PR/51017: VEXPRESS_A15 doesn't compile
Don't pretend to be anything other than A15
2016-04-02 08:48:35 +00:00
kiyohara
118e184d7f Ensure enable clocks for omapmputmr. 2016-03-31 14:33:17 +00:00
skrll
dc4391d06a Restore HOST1X and AHB_A2 to pmap_devmap to give pmap less work to do 2016-03-26 09:07:31 +00:00
gdt
af798e7b27 Disable uscanner in all kernel configs
As discussed on current-users@, SANE uses ugen via libusb and not
uscanner, so users are not well served by having uscanner.  Consensus
is that addressing how to adjust permissions for scanners should not
block restoring basic functionionality.

(Compile-tested only, but there are multiple reports of this being the
right approach.)
2016-03-19 23:21:02 +00:00
skrll
b4740b2a71 Update vcprop_tag_clockrate structure 2016-03-14 07:43:00 +00:00
jklos
7f15b0acd9 Add kernel configuration file for PogoPlug Pink, PogoPlug Mobile and
PogoPlug v4. Add conditional because PogoPlug v4 can't run SD interface at
50 MHz.
2016-03-12 00:41:30 +00:00
mlelstv
2d6e668d26 Don't modify command line buffer but create a copy of the root argument. 2016-03-05 07:33:58 +00:00
joerg
a542f58193 Don't reuse LDFLAGS for arguments passed directly to ${LD}, share/mk
expects it to be passed to ${CC} or ${CXX}, so they will generally
prefix flags with -Wl.
2016-03-01 16:08:22 +00:00
joerg
73916f4bad Garbage collect unused variables comcnaddr, comcnspeed and comcnmode. 2016-02-25 12:22:30 +00:00
chs
2f02870f3b zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
2016-02-14 19:54:19 +00:00
skrll
b0bef51c1f Preserve the .text section alignment 2016-02-08 21:08:03 +00:00
skrll
fc42e17ef4 Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)
2016-02-02 13:55:50 +00:00
christos
f56c05e9f6 remove the MKPIE and MKCTF no hack, and move it to the .mk files 2016-01-31 15:29:04 +00:00
christos
cb09bfac79 Disable PIE and CTF for standalone code
XXX: Must be done centrally, and there must be a better way.
2016-01-31 02:16:28 +00:00
marty
5cba62781b FDT: Interrupts -- add support for interrupt maps
The mct on exynos uses an interrupt map so we add support now.  Devices
represent their interrupts either through a combination of interrupt-parent
and interrupts properties, where the 'interrupts' property is an array of
one or more interrupt specifiers; or through a combination of an
interrupt-parent that points to an interrupt-map, where the interrupt-map
contains 2 or more entries consisting of an index, a pointer to an
interrupt-controller, and a specifier for that controller.

This code adds the ability to walk the interrupt-map and return a specifier.
Unfortunately, the addition requires changing the interface to the
interrupt-controllers' _establish and _intstr functions, so this check in
contains a rototill of the three existing fdt interrupt controllers to use
the new interface.
2016-01-05 21:53:48 +00:00
ryo
66f8646dd2 use armv7_generic_space 2015-12-31 12:14:01 +00:00
ryo
1fc390a6bc add support iMX6 uSDHC
- some UHS-I/SDR104 card are not stable
- eMMC doesn't work yet
2015-12-31 11:53:18 +00:00
jmcneill
6f8a66951d wildcard attachments to fdtbus 2015-12-27 12:26:42 +00:00
macallan
0d755f15d0 add awiniic* and tve 2015-12-27 06:24:25 +00:00
marty
ae03e518e3 XU4 USB snapshot: Reorganize source files
This is just a skeleton,  not a set of drivers, but the pieces are now
more or less in the right places.
2015-12-27 02:54:12 +00:00
jmcneill
aef4a7dee1 add dwcmmc 2015-12-26 23:14:08 +00:00
jmcneill
01c706f76f tag kernel as type linux so we get the fdt address in r2 2015-12-26 22:53:52 +00:00
jmcneill
93e0bfeb6c Switch Tegra over to fdt based clocks and reset controls. 2015-12-22 22:10:36 +00:00
marty
4abb095283 XU4 FDT final checkpoint
step N of N: get rid of baggage by removing whole files.  What's left is in
approximately the same shape as when the FDT update started, that is mostly
broken. What's missing is most of the 76 devices recognized in the dtd. In
other words, This is barely the start of a port.

Next up, gpio then i2c, followed either by straightening out usb or getting
the sdhc driver to work -- both probably require getting the interrupt
combiner to work first. A large chunk of work is left to do on the clocks.
I barely got them attaching to fdt and didn't do anything to take advantage
of the information in the dtd.

None of the other existing drivers, such as they are, properly request gpios,
i2c or clocks, and, of course power domains are off the table.
2015-12-21 04:58:50 +00:00
hkenken
7bb55e0310 Rewritten to take advantage of genfb(4). 2015-12-21 04:26:28 +00:00
marty
1076af4f1e XU4 FDT Last drivers converted
There is a minimum conversion on the clock driver.

The USB driver needs reordering and is broken, but it was broken before.

Next up: tactical nuclear weapons
2015-12-21 03:34:34 +00:00
marty
013239775d XU4 FDT checkpoint
It is rather amazing that XU4 gets as far as it does, given how much of this
code simply doesn't work.  Focusing now on getting everything converted to
FDT. Next up USB and clocks.  After that nuke everything that's not needed
and start the port in earnest.
2015-12-21 00:52:50 +00:00
marty
4c2606c249 XU4 debug cleanup
get rid of some unneeded debug chatter in machdep
2015-12-20 05:25:01 +00:00
marty
645518d8d4 XU4 GPIO FDT broken snapshot
This is broken. exynos_gpio_bank_config and the call to it are wrong, and
the acquire function doesn't work.

But I'm in over my head and I need to discuss this:

There is a problem with the dtd: it doesn't have addresses for the individual
gpios.  Do I add the addresses to it, or go back to the old version where I
have them hard coded in the driver.

There is a problem with creating the gpio device entries:  I suspect I really
need to treat the pinctrl devices as busses and create the gpios as attached
to those busses, but I'm not familiar with how to do that in NetBSD. At the
minimum, a pointer to a similar situation would give me code to follow.
This is different than the usual bus attachment in that the gpios aren't
devices in the dtd (they don't have "compatible" properties) so they don't
get an attach routine called.  An alternative to generating the bus
attachments might be to add "compatible" properties to the GPIO entries
in the dtd. so that they do get attached in the normal way.

If I'm going to modify the DTD, then it should be checked in, so a decision
on where to check them in would be nice, even if it does mean spreading them
all over because of license issues.  (This DTD is GPL v2)
2015-12-19 21:42:31 +00:00
skrll
7a6a862a20 Tweak CPUFLAGS to cover all CPUs 2015-12-19 13:28:22 +00:00
marty
44e186a475 XU4 FDT sscon
This is a mess and I don't understand why part of it works, but it passes
the basic test.

There has to be some better way to get the info that I'm grabbing from the
exynos_uarts[] array.

I'm not sure how to deal with VA != PA when the DTB contains physical rather
than virtual addresses. This is going to be an issue for all of the drivers.
2015-12-17 22:40:49 +00:00
skrll
4bade1fd54 Remove hypervisor code now it's done in cortex_init 2015-12-17 08:03:06 +00:00
skrll
e3dac3b98c Check for hypervisor mode in cortex_init and exit if the cpu started
there.

Needed by latest RPI firmware.
2015-12-17 08:02:42 +00:00
jmcneill
4d22e75533 move options FDT to std.tegra 2015-12-16 12:26:14 +00:00
jmcneill
bc39608c19 fdt_openfirm_set_data -> fdtbus_set_data 2015-12-16 12:18:02 +00:00
jmcneill
29c385d652 remove some commented out entries for static i2c device instances 2015-12-15 15:35:10 +00:00
jmcneill
b07fbf224f wire down ldN to sdmmcN, so disk numbers dont jump around between boots 2015-12-15 15:34:04 +00:00
marty
2d77e6bbdf XU$ genassym.cf
adding previously missed file.
2015-12-15 04:53:55 +00:00
marty
f2c43fb288 EXYNOS - change ODROID-XU4 to EXYNOS
EXYNOS will be a generic fdt kernel, so signify that with the name change,
as requested by Nick.
2015-12-15 04:38:30 +00:00
marty
02fc961cd3 XU4 FDT Enable the minimum device tree
This enables the use of FDT on the XU4 but doesn't add any drivers.  However,
with this check in, XU4 becomes useless without a device tree blob from the
Linux tree, which isn't checked in anywhere.
2015-12-14 22:06:57 +00:00
jmcneill
a729620424 add gpiokeys driver 2015-12-14 21:41:42 +00:00
marty
f017a086d4 FDT XU4 fix uboot support
remove some code I thought I'd previously removed which causes data
aborts if uboot is invoked with 'bootm ADDR - ADDR'.
2015-12-14 05:13:01 +00:00
marty
ba72a38a6c enable the watch dog
This will work only if the patch to sysmon_wdog.c to convert it to
MODULE_CLASS_DRIVER is installed.  Symptom of failure is a crash in
lockdebug because of an uninitialized mutex.
2015-12-14 00:00:22 +00:00
jmcneill
0572689e04 Remove JETSONTK1 and NYAN-BIG kernels, add a new unified kernel named TEGRA. 2015-12-13 23:02:56 +00:00
jmcneill
95d7e08adb Get rid of board-specific options. 2015-12-13 22:55:05 +00:00
marty
91cd6ab1cb undo 'typo' fix and restore 'frequency' to dictionary
Oops.  The 'typo' was elsewhere and I accidently removed setting
the frequency.  Fix that.
2015-12-13 22:28:09 +00:00
christos
54e7435b9e PR/50526: David Binderman: Fix incorrect test 2015-12-13 19:18:32 +00:00
jmcneill
d59db8d057 Use fdt for device enumeration. 2015-12-13 17:39:19 +00:00
cyber
c0fdefd598 mvsdio does not work on OPENRD, disable it.
Tested on OpenRD-Client, causes infinite loop during autoconf when enabled.
2015-12-13 04:55:12 +00:00