Commit Graph

462 Commits

Author SHA1 Message Date
bsh 76df5f270b the first cut for Samsung SMDK2410 support.
It is an evaluation board for S3C2410.

XXX: not tested much yet.
XXX: smdk2410_machdep.c and smdk2410_start.S are almost identical
     to SMDK2800's.  One day I'll merge them.
2003-07-31 20:11:45 +00:00
he 5b3551df93 Initialize one more arm32_bus_dma_tag's _cookie to NULL. 2003-07-31 17:51:09 +00:00
bsh 7fc9d147bb gzboot for SMDK2800. 2003-07-30 18:54:18 +00:00
bsh caf245db80 make this compile again. (arm32_bus_dma_tag._cookie) 2003-07-30 18:17:16 +00:00
thorpej 472c98cf7a Fix think'o in last. Pointed out by Izumi Tsutsui. 2003-07-27 04:52:28 +00:00
thorpej ca601a7747 Flesh out inittodr() and resettodr(). 2003-07-26 05:51:11 +00:00
briggs ed5f36a260 Deal with case where __data_store == _edata. 2003-07-22 04:57:24 +00:00
lukem 08716eae82 __KERNEL_RCSID() 2003-07-15 00:24:37 +00:00
igy cdb56b83f6 mapping pci configuration space (not subregion) 2003-07-13 07:15:22 +00:00
igy 1087696257 using common bus_space_tag in ixpsip too 2003-07-13 02:48:41 +00:00
igy 2a9dfe7684 using devmap for static mapping 2003-07-13 01:01:50 +00:00
thorpej 69d5b64f8a Do an splhigh() before doing splserial(), in the event that
serial isn't actually higher than high.
2003-07-04 00:37:23 +00:00
thorpej 483fad3a3b Use splserial() instead of splhigh() to block interrupt during
autoconfiguration.  XXX We really need an splextreme() for when
we really mean "block everything".
2003-07-04 00:34:48 +00:00
thorpej 5432dacfcb Provide a hook for board-specific code to register a device_register()
function.
2003-07-04 00:33:20 +00:00
ichiro 38e0b1c5c5 use struct pmap_devmap 2003-07-02 11:02:28 +00:00
thorpej b4031f0a49 Go to splhigh() before doing autoconfiguration. 2003-06-30 15:17:11 +00:00
martin d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
bsh dd27d238b6 MD part for Intel Lubbock (DBPXA250).
built-in UART and on-board ethernet are supported for now.
LCD, PCMCIA, CF, PS/2, AC97 will follow shortly.
2003-06-18 10:51:15 +00:00
bsh 73635ffe34 use PMAP_DOMAIN_KERNEL and DOMAIN_CLIENT instead of magic numbers. 2003-06-18 03:17:49 +00:00
thorpej 452a8fdae2 Rename IPL_IMP -> IPL_VM. 2003-06-16 20:00:56 +00:00
thorpej bd370c9c04 Give every obio implementation a size and width locator. 2003-06-16 17:40:49 +00:00
fvdl 7dd7f8baa2 Handle 64bit DMA addresses on PCI for platforms that can (currently only
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej 998f8a71ed Add an optional "width" locator to the obio bus, specifying the
bus width of the device.
2003-06-15 19:03:46 +00:00
thorpej 05d2fb4399 Use the new pmap_devmap facility in the on-board device mapping code. 2003-06-15 18:43:48 +00:00
thorpej 87d5bba5b3 Replace the ad-hoc "section mapping table" for static device mappings
with a more generic "devmap" structure that can also handle mappings
made with large and small pages.  Add new pmap routines to enter these
mappings during bootstrap (and "remember" the devmap), and routines to
look up the static mappings once the kernel is running.
2003-06-15 17:45:21 +00:00
thorpej d35db0b328 Garbage-collect some unused code. 2003-06-15 17:33:45 +00:00
thorpej 0ab88570d0 Use CPUFLAGS rather than COPTS to pass -mcpu=xscale. 2003-06-14 19:32:54 +00:00
thorpej 0eff671820 Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
ichiro ff3a6a2721 add unit index of uart 2003-06-01 01:52:40 +00:00
ichiro 4d110df451 add console unit number to configuration parameter.
move structure of uart information
2003-06-01 01:49:56 +00:00
ichiro a52b2549e2 print description of Console and enable ixpcom0/1 in configuration 2003-05-31 23:57:45 +00:00
thorpej 9843692f24 Correct interrupt mapping when a device with a PCI-PCI bridge is
plugged into the PCI-X slot.
2003-05-31 22:35:04 +00:00
ichiro 081a8ed553 led support for IXDP425/ZAO425 2003-05-31 01:16:31 +00:00
thorpej eaf50189f3 Don't build a big-endian image on platforms which don't run big-endian. 2003-05-26 15:17:38 +00:00
thorpej 5f03eb91bb Don't set the output format explicitly; let the linker use its defaults. 2003-05-26 15:07:53 +00:00
ichiro 97106736c6 add IXDP425 PCI interrupt
fix some typo
2003-05-24 01:59:32 +00:00
ichiro 9b42bcea42 fix kernel base address
delete offset of elf header 0x100
 so we use binary kernel(netbsd.bin)
2003-05-24 01:55:56 +00:00
thorpej 539c89a0c4 Add ksyms. 2003-05-23 14:23:46 +00:00
ichiro a735a14d5a delete unused definition 2003-05-23 09:38:05 +00:00
ichiro 6c281fafc6 remove definition of debug 2003-05-23 09:34:42 +00:00
briggs 5ce8e50a2e Need aprint_naive() with aprint_normal() change. Thanks, Jason. 2003-05-23 05:47:11 +00:00
briggs 56debc31d7 printf -> aprint_normal 2003-05-23 05:42:05 +00:00
ichiro 00eb02e3da support IXP425 Intel Network Processor
running on BigEndian
2003-05-23 00:57:23 +00:00
thorpej 181911c6db Don't need ARM32_PMAP_NEW option any more. 2003-05-22 05:52:18 +00:00
thorpej d5bcde54a7 Move KERNEL_VM_SIZE into the C files where its used. 2003-05-22 05:47:04 +00:00
thorpej 1963a8521c Use virtual_avail and virtual_end to compute the size of the available
kernel VM space for VM_MAX_KERNEL_BUF, and move the definition into
generic ARM code.
2003-05-22 05:25:48 +00:00
thorpej 361d0454ce Move KERNEL_VM_BASE inside where it is used (it won't be there for long). 2003-05-21 22:48:20 +00:00
briggs 15f4f9e27a Make sure we call becc_calibrate_delay() _after_ becc_vaddr is set up.
It happens to work otherwise when RedBoot leaves the timer running for us.
2003-05-21 02:38:29 +00:00
thorpej 55f89430cf Decrease the verbosity level unless VERBOSE_INIT_ARM is defiend. 2003-05-17 23:46:59 +00:00
thorpej 6c3da825c3 Use aprint_normal() to report the boot device. 2003-05-17 22:18:28 +00:00
bsh a710e1b34a SMDK2800 has a 6MHz X'tal.
comment out memory disk options.
2003-05-16 08:11:36 +00:00
thorpej 5b9c2e6257 Add support for the Intel IQ31244 reference board, based on the i80321
I/O processor and the i31244 PCI-X S-ATA controller.

The IQ31244 is almost identical to the IQ80321, from software's
perspective, so we share much of the code.
2003-05-14 21:41:31 +00:00
thorpej fb149b56a8 Move the 7-segment display definitions into the C file. 2003-05-14 19:46:39 +00:00
bsh 2ca26eeaed + use system's real PCLK frequency for source clock of sscom's
baudrate, instead of a compile time constant.

+ simplify bootstrap_bs_map() by mapping all built-in peripheral
  registers at start.

+ check SW3 and SW7 and toggle RB_SINGLE and RB_KDB in boothowto if
  pressed.
2003-05-13 08:30:33 +00:00
bsh 2fd99ae3e7 white space nit. 2003-05-13 04:53:25 +00:00
bsh 87a703eac0 enable the domain 15 during bootstrap, as new pmap_map_section() use it. 2003-05-13 04:20:39 +00:00
bsh d3681dec8c Build our own page table which is used during bootstrap, instead of
reusing the table prepared by the monitor program on ROM.

This will allow the kernel booted by gzboot at reset vector.
2003-05-09 16:25:46 +00:00
he 4e26b71f48 Remove declaration of unused local variable: kernel_ptpt. 2003-05-05 13:29:44 +00:00
igy f97f3c0df9 code cleanup 2003-05-05 04:34:48 +00:00
igy a1b8c84497 using high vector page 2003-05-05 04:23:26 +00:00
thorpej bbba90a2fb Don't expose KERNEL_TEXT_BASE outside of board-specific code. This gives
individual board start-up code more flexibility about where the kernel
starts in the kernel address space.
2003-05-03 18:25:28 +00:00
thorpej aae7e372b7 Reduce differences between ARM32_NEW_VM_LAYOUT and not; always pass
the start and end of the kernel managed virtual address space to
pmap_bootstrap() in the new pmap.
2003-05-03 03:49:03 +00:00
thorpej 1dff12252d Remove old pmap support for platforms which have fully switched over. 2003-05-03 03:29:06 +00:00
thorpej a86ebf303f Switch Integrator, IXM1200, and SMDK2800 to ARM32_PMAP_NEW. These
are the last of the ARM platforms to be converted.
2003-05-03 00:39:21 +00:00
thorpej 4eeee795e8 Eliminate PTE_BASE and the PT-PT completely in the ARM32_PMAP_NEW case.
Also in the ARM32_PMAP_NEW case, reclaim the USPACE-bytes of wasted space
at the top of the user address that hasn't been needed for a very very
long time.
2003-05-02 23:22:33 +00:00
thorpej b4e3c89c38 Bump kernel PTs to 4 (the max we can really have with the old VM
layout) to accomodate large ramdisks.  Set boothowto if BOOTHOWTO
is defined.
2003-04-30 18:12:03 +00:00
scw 009fcb6ef7 Don't define KERNEL_TEXT_BASE, et al, if ARM32_NEW_VM_LAYOUT is defined. 2003-04-29 14:04:01 +00:00
thorpej d55f2b8b87 Descend into stand. 2003-04-29 05:42:43 +00:00
thorpej d762fbd09d Fix the name of the image. 2003-04-29 05:38:52 +00:00
thorpej 7733ffd60d Make these images concatenating images. 2003-04-29 05:36:20 +00:00
thorpej fb01afa9c7 Descend into the gzboot directories. 2003-04-29 05:35:08 +00:00
thorpej 8163f9a129 * Add ${PROGSYM} to CLEANFILES.
* Instsall either the .bin or the .sym, based on whether or not
  the resulting gzboot needs to be mdsetimage'd.
2003-04-29 05:32:41 +00:00
thorpej a8d10ed83c Also build a flat binary version of the gzboot program. 2003-04-29 05:15:14 +00:00
thorpej 893a35a154 Bump version to 1.2 for the concatenation feature. 2003-04-29 05:05:41 +00:00
thorpej 00b159e3dc Rename the IQ80310 directory to have all nibbles of the address in the name. 2003-04-29 05:04:37 +00:00
thorpej 04f47aa1d2 Allow MAXIMAGESIZE to be set to 0. For gzboot's that are linked
for flash, this allows us to basically do:

	cat gzboot.bin netbsd.bin.gz > gzimg

to produce the bootable image.
2003-04-29 05:01:34 +00:00
thorpej b43b1645a2 Use aprint*(). 2003-04-29 01:07:30 +00:00
ragge fa723a2265 Missed '(', noted by Håvard. 2003-04-28 20:01:29 +00:00
briggs ed751b6340 Attach com to kgdb if both KGDB and com are defined. 2003-04-28 01:56:44 +00:00
thorpej 7de2c299a2 Don't define APTE_BASE if ARM32_PMAP_NEW is defined; the new pmap
doesn't use it.
2003-04-28 01:34:28 +00:00
ragge 69a66687f8 Call ksyms_init() instead of ddb_init() in case of
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
thorpej 1b42986cc6 Bump SYMTAB_SPACE a little. 2003-04-22 14:49:13 +00:00
thorpej 49c00b1d84 Use high vectors on IQ80321 and IQ80310. 2003-04-22 14:09:46 +00:00
thorpej efb72f65db Use high vectors on the BRH. 2003-04-22 13:51:11 +00:00
thorpej 9361d039a1 Add XSCALE_CACHE_READ_WRITE_ALLOCATE. 2003-04-21 04:02:04 +00:00
thorpej 9884510327 Add a driver for the reset button on the ADI BECC. 2003-04-20 20:50:49 +00:00
thorpej fc08e6bd7a Adapt to ARM32_PMAP_NEW. 2003-04-19 21:52:03 +00:00
scw 5c0b008779 Don't use ARM32_NEW_VM_LAYOUT or initarm_common() for now. It's not
quite ready for prime-time on evbarm.
2003-04-19 08:18:12 +00:00
scw 98d49ded24 Add support for ARM32_PMAP_NEW and ARM32_NEW_VM_LAYOUT to the iq80321 port. 2003-04-18 12:01:32 +00:00
thorpej f2e804cd79 Add mpt(4). 2003-04-16 23:34:30 +00:00
thorpej 4c08dfb615 Remove LINKENTRY and LOADADDRESS vars; it's all handled by the linker
script on evbarm platforms.
2003-04-08 20:50:05 +00:00
thorpej 4818d283ff Factor out common INSTALL kernel config fragments into a new INSTALL
file.  Add INSTALL kernels for the ADI BRH, IQ80310, and IQ80321.
2003-04-08 20:49:01 +00:00
thorpej f26807bd26 Add a selection of storage devices, and also build netbsd-sd0 and
netbsd-wd0 kernels.
2003-04-08 20:48:03 +00:00
thorpej cc2c493bc4 Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
thorpej dd9bc74460 Use PAGE_SIZE rather than NBPG. 2003-04-02 03:39:59 +00:00
mycroft bfb4fa0c88 There are two #defines of CONSPEED in here; didn't make sense to me. 2003-04-01 21:27:24 +00:00
thorpej 7a3fa51b7f Garbage-collect the DYNAMIC_CRC_TABLE stuff. The table it computed
was incompatible with the new CRC code, and it is largely unnecessary
now, since the static table is so much smaller.

Fixes PR kern/20935.
2003-03-29 22:25:25 +00:00
thorpej eb7195a019 Gzboot support for the ADI BRH eval board. This flash address allows
the kernel to be decompressed and started at board reset if the BRH's
rotary switch is set to position 5.
2003-03-25 23:38:00 +00:00
thorpej 0a6cf80b25 Standalone board support routines for the ADI BRH. 2003-03-25 23:34:26 +00:00
thorpej 78c15d17f8 Memory routines for boards using the ADI BECC companion chip. 2003-03-25 23:33:49 +00:00