History log of /freebsd-9.3-release/sys/mips/atheros/ar71xx_machdep.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 223562 26-Jun-2011 kevlo

Remove duplicate header includes


# 220096 28-Mar-2011 adrian

The previous commit didn't completely rename this to what it should be.


# 220056 27-Mar-2011 adrian

Refactor out the ar71xx mac address code into something that's
just for Redboot.

At some point we're going to need to build options for different
boot environments - for example, the UBoot setups I've seen simply
have the MAC address hard-coded at a fixed location in flash.
The OpenWRT support simply yanks the if_arge MAC directly from that
in code, rather than trying to find a uboot environment to pull it
from.


# 220052 27-Mar-2011 adrian

Add an option - AR71XX_REALMEM - which overrides the amount of
memory detected from Redboot, or overrides the "otherwise" case
if no Redboot information was found.

Some AR71XX platforms don't use Redboot (eg TP-LINK devices using
UBoot; some later Ubiquiti devices which apparently also use
UBoot) and at least one plain out lies - the Ubiquiti LS-SR71A
Redboot says there's 16mb of RAM when in fact there's 32mb.

A more "clean" solution will be needed at a later date.


# 216318 09-Dec-2010 gonzo

- Populate dump_avail with proper values from phys_avail


# 212775 16-Sep-2010 thompsa

Make a note of which platforms the mac strings come from.

Suggested by: adrian


# 212774 16-Sep-2010 thompsa

Use getenv to find the mac address since it could be in the bootloader
environment or command line and under different names.


# 211482 19-Aug-2010 adrian

Remove now unused 'reg'.


# 211481 19-Aug-2010 adrian

Initialise the USB system using cpuops rather than the AR71XX specific method.


# 211480 19-Aug-2010 adrian

Migrate the CPU reset path to use the new cpuops.


# 211476 19-Aug-2010 adrian

Preparation work for supporting the AR91xx and AR724x.

* Implement a SoC probe function, from Linux, which determines the
SoC family, type and revision. This only probes the AR71xx series
SoC and (currently) panics on others.

* Migrate some of the AR71XX specific hardware init (USB device, determining
system frequencies) into using the cpuops introduced in an earlier commit.
Other SoC specific hardware stuff (per-device flush/WB, GPIO pin wiring,
Ethernet PLL setup, other things I've likely missed) will be introduced in
subsequent commits.

Reviewed by: imp@
Obtained from: (partially) Linux


# 202954 24-Jan-2010 gonzo

- Call post-boot fixup function in order to get proper static
symbols resolving in DDB
- When zeroing .bss/.sbss do not round end address to page boundary,
it's not neccessary and might destroy data pased by trampoline or
boot loader


# 202849 22-Jan-2010 imp

Update from old DDB convetion to initialize debugger to new KDB way.
Always call kdb_init(). If we have KDB enabled, then provide a handy
place to break to the debugger.


# 202175 12-Jan-2010 imp

Set the svn:eol-style = native and svn:mime-type = text/plain
properties on all files in this tree.

Submitted by: rpaulo@


# 202173 12-Jan-2010 imp

Place proper svn:keywords tag on all these files. They were created
somehow without them on projects/mips, and that mistake was propigated
over to head.

Submitted by: rpaulo@


# 201906 09-Jan-2010 imp

Merge from projects/mips to head by hand:

Merge support files for the Atheros AR71xx (and soon AR9xxx)
processors, except files from sys/conf and sys/mips/conf. This work
was done primarily by Olecksandr Tymoshenko and works on the
RouterStation and RouterStation PRO. Other AR71xx-based boards have
been reported as working as well (RouterBoard, for example).


# 201881 09-Jan-2010 imp

Rename mips_pcpu_init to mips_pcpu0_init since it applies only to the
BSP. Provide a missing prototype.


# 201845 08-Jan-2010 imp

Centralize initialization of pcpu, and set curthread early...


# 198669 30-Oct-2009 rrs

With this commit our friend RMI will now compile. I have
not tested it and the chances of it running yet are about
ZERO.. but it will now compile. The hard part now begins,
making it run ;-)


# 198562 28-Oct-2009 thompsa

Parse and save the command line passed in from RedBoot (exec -c "xxx") and also
the board specific environment variables.

This is not ar71xx specific and should be shared better.


# 195513 09-Jul-2009 gonzo

- Move CPU/AHB frequency calculations to functions to
prevent code duplication


# 192365 19-May-2009 gonzo

- ar71xx increases Count value every two cycles


# 192178 16-May-2009 gonzo

- Get memory size and base MAC address from RedBoot (if available)


# 192132 14-May-2009 gonzo

- Calculate CPU frequency using dividers from PLL registers


# 191079 14-Apr-2009 gonzo

- Revert changes accidentally killed by merge operation


# 188882 21-Feb-2009 gonzo

- Reset USB chip and init control registers


# 187705 26-Jan-2009 gonzo

- Rename RESET-related registers
- Add PCI registers


# 187518 21-Jan-2009 gonzo

- Forgot to add this file to r187515


# 187513 21-Jan-2009 gonzo

- Use ATH_READ_REG/ATH_WRITE_REG instead of direct memory access


# 187463 20-Jan-2009 gonzo

- Fix platform_reset function


# 187456 19-Jan-2009 gonzo

- Use more generic name for atheros-based devices subdirectory. Keep old
naming scheme for files until we'll figure out common parts.

Suggested by: imp@


# 187424 19-Jan-2009 gonzo

- style(9) fix: replace spaces with tabs


# 187423 19-Jan-2009 gonzo

- First bits of Atheros' AR71XX port. Only UART supported ATM.