Commit Graph

116937 Commits

Author SHA1 Message Date
joerg 3a3036a565 bt848_format is only defined in a __FreeBSD__ section of bktr_os.c and
overriding the local (static) definition with extern is bogus.
2012-12-14 19:38:36 +00:00
pooka 8c45e7bd31 Adjust unmount prints to avoid "boothowto = AB_VERBOSE" from being
cluttered like this:

unmounting file systems...unmounted kernfs on /kern type kernfs
unmounted etcetc.
 done

tested: ~AB_VERBOSE, AB_VERBOSE, -DDEBUG
2012-12-14 18:39:48 +00:00
christos 48e748eb9e do like the i386 for modular. 2012-12-14 16:37:55 +00:00
christos 4c51459516 make this work 2012-12-14 15:46:51 +00:00
pgoyette cc70ada49c Constify 2012-12-14 15:33:19 +00:00
pgoyette 40bcf0f0ee The sensor limit values were moved out of the event structure and into the
per-sensor structure a long time ago.  Garbage collect the old structure
member which is now unused.
2012-12-14 03:31:10 +00:00
pooka 5b1097b855 regen 2012-12-13 17:17:21 +00:00
pooka 809bf01583 Add the ability to define compat structs and include a few. 2012-12-13 17:17:00 +00:00
matt 449a824898 Fix inverted error check. 2012-12-13 15:16:57 +00:00
riastradh 98770c509f Implement TI AM335x's SDHC reset quirk. Beaglebone SDHC works now!
On the AM335x, we first must wait for the controller to acknowledge
the reset; then we can wait for the reset to complete.

I believe this quirk also applies to the OMAP4 ES, but I don't have
one of those to test and we don't seem to have an obvious conditional
for it anyway.

This quirk may work for controllers that don't require it too, but I
am nervous about doing it by default because if we miss the reset
acknowledgement, then we'll just time out even though everything is
really hunky-dory.

Also, for all sdhc, don't bother writing 0 in sdhc_soft_reset while
waiting for the reset to complete; there is no need.

ok matt
2012-12-13 06:43:37 +00:00
matt a7e8133750 Add default boot args and support parsing of u-boot bootargs.
Fix problem when MEMSIZE was not defined.
2012-12-13 05:58:14 +00:00
jakllsch d2066ccadf software-initiated-reset glue for AM335x on BeagleBone 2012-12-13 02:12:15 +00:00
matt 722c7074fd MEMSIZE is now optional on BEAGLEBOARD. 2012-12-13 01:24:11 +00:00
matt d005c80955 Allow MEMSIZE to only lower the amount of memory probed, not increase it. 2012-12-13 01:23:16 +00:00
matt 291f407dc5 Add SDRC to devmap.
Use SDRC to determine RAM size on OMAP3xxx.
2012-12-13 01:16:39 +00:00
matt 553b4049c5 Add SDRC and I2C bases for OMAP3xxx 2012-12-13 01:15:50 +00:00
pgoyette c768421a3a With recent introduction of conditionals for the various MP options, we
broke the build for x86 systems that have MULTIPROCESSOR but which do not
include MPBIOS.  So let's try to untangle things just a bit.  Presented
on current-users (and referenced on source-changes-d) without any comment.

XXX We really should find a better method to select kernel options; #ifdef
spaghetti is rather sub-optimal.
2012-12-12 22:43:35 +00:00
matt ef08078473 Conditionalize omap includes on OVERO 2012-12-12 19:47:44 +00:00
tsutsui 3a2ce178a4 Sprinkle redundant comments about PAD_P1_SWITCH to avoid stupid confusion. 2012-12-12 16:24:49 +00:00
tsutsui d5805a0a1a Revert part of the previous (reverting RUN_P1 -> PAD_P1_SWITCH again).
We can assume all icache ops are called from (and will return to) P1
so no need to bother to jump to P1 at end of functions.
Pointed out by uwe@.
2012-12-12 15:43:44 +00:00
matt 6ba959571d Set clkmask for sdhc to 0. 2012-12-12 15:20:44 +00:00
matt 93c6d75137 Improved SDHC support for OMAP3.
From jmcneill.
2012-12-12 15:19:53 +00:00
matt f726267fd1 Add sc_vendor_bus_clock hook
From jmcneill.
2012-12-12 15:15:31 +00:00
matt e140e7a99f Pass down an empty CPUFLAGS since CPUFLAGS is contained in CFLAGS. 2012-12-12 15:12:11 +00:00
matt d341a32e61 Don't pass down CPUFLAGS since its value is already in CFLAGS. 2012-12-12 15:10:27 +00:00
matt 93c3ea0a2c Protect more definitions with #ifndef _LOCORE 2012-12-12 15:09:37 +00:00
matt bc2451cc8e Fix CPUFLAGS to the correct value so a passed down CPUFLAGS doesn't result
in broken images.
2012-12-12 15:08:44 +00:00
matt 28eb3810d9 Don't allow CPUFLAGS to be overridden. 2012-12-12 15:00:06 +00:00
yamt 38363c022a rw_vector_enter: reload owner in the case of no hand-off.
this fixes crashes in rw_oncpu().
2012-12-12 14:53:01 +00:00
tsutsui 4d096c7fdd Fix fallouts in rev 1.19:
http://www.nerv.org/~ryo/netbsd/netbsd/?q=id:20080316T191753Z.1654448ada03ce3c4668f3fe472796d0b771e147
 - revert RUN_P1 -> PAD_P1_SWITCH changes where RUN_P1 is
   actually required  (all icache CCIA ops still need RUN_P2)
 - sh4_dcache_wbinv_all() and sh4_dcache_wbinv_range_index()
   (which manipulate CCDA arrays) are no longer have RUN_P2 so
   we can't call them directly from sh4_icache_sync_all() and
   sh4_icache_sync_range_index() funcitons;  use function pointers
   (which have appropriate addresses) instead for 7750 and 7750S
2012-12-12 13:34:49 +00:00
tsutsui 3ce0b43194 Fix one more device/softc split error:
- set sc->sc_dev properly
2012-12-12 13:32:37 +00:00
pooka 37ca5a0657 Signed overflow is undefined behavior, and one version of gcc
clearly tells us:

	kern_rate.c:98: warning: assuming signed overflow does not
	occur when assuming that (X + c) > X is always true

Check value against INT_MAX instead.  Also, for good measure throw
in a __predict() to flag the assumed common case.
2012-12-12 11:10:56 +00:00
msaitoh 603cd884c6 - 82578DC is not PCH2 but PCH. 82579V is not PCH but PCH2. This bug was
introduced in rev. 1.221. Reported by FUKAUMI Naoki.
- Fix comment.
2012-12-12 09:20:35 +00:00
riastradh 8fd0d747ac Avoid the 16-bit read in sdhc_host_found for 32-bit-only devices.
This change makes sdhc_host_found allocate hp up front before showing
the identification, in order to avoid having to open-code a copy of
HREAD2 before hp is available.
2012-12-12 06:24:01 +00:00
matt 86328521b1 Map all of RAM. 2012-12-12 02:42:25 +00:00
matt b92ca3f87e Add ukphy for axe 2012-12-12 01:05:10 +00:00
matt ba20058f33 Disable omapfb/wsdisplay until they stop stealing the console
Enable EHCI and devices.
2012-12-12 00:39:41 +00:00
matt 1153693c28 Improved USB EHCI support OMAP3 variants.
From jmcneill.
2012-12-12 00:33:45 +00:00
matt 98ebdb3421 Enable direct-mapped poolpages if __HAVE_MM_MD_DIRECT_MAPPED_PHYS is defined. 2012-12-12 00:29:17 +00:00
matt e6ee18da2a Add -mfpu=vfp to CPUFLAGS 2012-12-12 00:05:05 +00:00
matt 37ae74c20a Add options __HAVE_MM_MD_DIRECT_MAPPED_PHYS
for BCM5301X, also add SOSEND_NO_LOAN
2012-12-12 00:04:21 +00:00
matt d3ada46e2f Change physical_end to segment_end to avoid shadowing a global. 2012-12-12 00:03:11 +00:00
matt ad978013b0 When initializing the ethernet, make sure the IO_CONTROL_DIRECT IDM register
is set properly.
2012-12-12 00:01:28 +00:00
matt 641883151f Add IO_CONTROL_DIRECT register values. 2012-12-12 00:00:38 +00:00
matt 5c340aed67 Use RET, not bx lr.
Due to evbarm/conf/INTEGRATOR conditional use of pld.
2012-12-11 23:59:18 +00:00
matt 905eecf6c7 Fix C&P bug. 2012-12-11 23:51:34 +00:00
matt 784a6ad142 Don't steal the console by default. 2012-12-11 22:47:40 +00:00
macallan 01002f0e04 different u-boot versions set up the video hardware in different ways, make
sure we can deal with both
2012-12-11 21:57:41 +00:00
riastradh 2db5317f2e Hack up the BEAGLEBONE config and add a BEAGLEBONE_INSTALL.
This is a total mess right now, and BEAGLEBONE_INSTALL isn't useful
except to boot ramdisks for testing, but this hash of a config works
to get my beaglebone booted into sysinst, at least.
2012-12-11 19:29:29 +00:00
riastradh 10e52c1da0 Initial kludgerific attempt at making sdhc work on the AM335x.
There's a timing issue somewhere in the whole sdmmc thing so that
this doesn't actually work without SDMMC_DEBUG or some specially
crafted debugging messages, and the SoC-specific code needs to be
separated out here another way, but it's a little progress.
2012-12-11 19:26:40 +00:00