Commit Graph

15 Commits

Author SHA1 Message Date
rpaulo
93c2f0eb54 Fix indentation.
Submitted by:	jmallet
2013-07-02 07:17:56 +00:00
rpaulo
f76d8b3b46 Add register definitions for the Wii IPC system. 2013-07-02 06:59:37 +00:00
rpaulo
975536fa1e Add support for the second GPIO pin bank on the Wii and add support for
shutting down the system.
2013-05-18 19:30:42 +00:00
rpaulo
f22af47e50 Add reset support to the Wii. 2013-04-27 06:54:49 +00:00
rpaulo
c8ac43d40b Fix the frambuffer issues by calling pmap_mapdev() in the attach routine. This
will make the framebuffer region uncacheable and it will create a proper
KVA -> RAM mapping.
2013-04-27 01:57:45 +00:00
rpaulo
c1d3a15bba Handle the IRQ for the reset button. 2013-04-24 01:36:35 +00:00
rpaulo
d3e64b0dcc Fix an off by one calculation in wiipic_dispatch(). 2013-04-21 08:35:38 +00:00
davide
2bf12d0c7c MFcalloutng:
When CPU becomes idle, cpu_idleclock() calculates time to the next timer
event in order to reprogram hw timer. Return that time in sbintime_t to
the caller and pass it to acpi_cpu_idle(), where it can be used as one
more factor (quite precise) to extimate furter sleep time and choose
optimal sleep state. This is a preparatory change for further callout
improvements will be committed in the next days.

The commmit is not targeted for MFC.
2013-02-28 10:46:54 +00:00
rpaulo
5d56fc6ccd Introduce PLATFORMMETHOD_END and use it. 2013-02-13 02:21:45 +00:00
rpaulo
49c303e64b Use DEVMETHOD_END. 2013-02-11 08:20:21 +00:00
adrian
4172690a5e Setup BAT0 and BAT1 on the Wii.
This is the missing piece for FreeBSD/Wii, but there's still a lot of
work ahead. We have to reset the MMU in locore before continuing
the boot process because we don't know how the boot loaders might
have setup the BATs. We also disable the PCI BAT because there's no PCI
bus on the Wii.

Thanks to Nathan Whitehorn and Peter Grenhan for their help.

Submitted by:	Margarida Gouveia
2012-11-21 08:04:21 +00:00
rpaulo
fec307dd7b Fix the memory regions to include the 64MB DDR3 memory slot. 2012-10-22 03:45:37 +00:00
rpaulo
ce402469a1 Increase the I/O memory area to 0xc20000. 2012-10-22 03:44:12 +00:00
rpaulo
7074fc2921 Add IRQ support to the resource list handling functions. 2012-09-08 01:26:52 +00:00
adrian
5cf5b4b58d Initial support for running FreeBSD on the Nintendo Wii. We're able to
reach single user mode using a memory disk device as the file system.

This port includes the framebuffer driver, the PIC driver, a platform
driver and the GPIO driver. The IPC driver (to talk to IOS kernels) is
not yet written but there's a placeholder for it.

There are still some MMU problems and to get a working system you need to
patch locore32.S. Since we haven't found the best way yet to address that
problem, we're not committing those changes yet. The problem is related to
the different BAT layout on the Wii and to the fact that the Homebrew
loader doesn't clean up the special registers (including the 8 BATs)
before passing control to us.

You'll need a Wii with Homebrew loader and a TV that can do NTSC (for now).

Submitted by:	Margarida Gouveia
2012-08-21 06:31:26 +00:00