- Nov 10, 2009
-
-
David Brownell authored
Start switching MMU handling over to a more sensible scheme. Having an mmu() method enables MMU-aware behaviors. Not having one kicks in simpler ones, with no distinction between virtual and physical addresses. Currently only a handful of targets have methods to read/write physical memory: just arm720, arm920, and arm926. They should all initialize OK now, but the arm*20 parts don't do the "extra" stuff arm926 does (which should arguably be target-generic). Also simplify how target_init() loops over all targets by making it be a normal "for" loop, instead of scattering its three parts to the four winds. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
General rule, this is all board-specific and doesn't belong in target config files. Some of these were just cosmetic. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Thomas Kindler authored
Here's a patch for the double-reset problem on STM32. I've tested downloading and debugging with GDB and Eclipse, and everything seems to work fine. This effectively sets reset_config to none. trst_only would also be ok, but that's better left to a board configuration file since not all boards wire it up. The NVIC is used to trigger reset, which at least on this chip also pulses nSRST so the whole system does get rest -- exactly once. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Michael Bruck authored
First cut of these commands. Øyvind tinkered a bit with the number parsing to bring it up to speed + rebased it. Ready for testing. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Switch to new commands in config scripts Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Add the missing "target/" prefix for scripts in the target folder. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
David Brownell authored
- improve some names -- a "default" prefix is not descriptive - add doxygen @todo entries for some issues - avr8 isn't ever going to need those MMU hooks Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
mmu() works; virt2phys() fails and logs an error. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
mmu() works; virt2phys() fails and logs an error. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
And shrink a few too-long lines. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Øyvind Harboe authored
The httpd is work in progress... No mime type set by default. Let the browser guess. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Zachary T Welch authored
Remove forward declarations by reordering command registration.
-
Zachary T Welch authored
Removes useless declarations, moving the handler functions to appear before their use in the (much bigger) command registriation function.
-
Zachary T Welch authored
Remove server command declarations, make handler routines static.
-
Zachary T Welch authored
Contrary to my previous assessment, some opportunities to remove forward declarations were overlooked. Remove them by moving the definitions of the command registration and interface structure to the end of files.
-
Zachary T Welch authored
This patch removes the last batch of forward references from the tree, moving the target command registration routines to the end of the file.
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves flash structure definitions to end of files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registration to end of file. Moves flash structure definitions to end of files. Changes a few references to global flash structure to local refs. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registration to end of files. Moves flash structure definition to end of files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Zachary T Welch authored
Remove useless forward declarations. Moves command registration to end of file. Moves flash structure definition to end of file. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
- Nov 09, 2009
-
-
David Brownell authored
This patch introduced a bug preventing flash writes from working on Cortex-M3 targets like the STM32. Moreover, it's the wrong approach for handling no-MMU targets. The right way to handle no-MMU targets is to provide accessors for physical addresses, and use them everywhere; and any code which tries to work with virtual-to-physical mappings should use a identity mapping (which can be defaulted). And ... we can tell if a target has an MMU by seeing if it's got an mmu() method. No such methood means no MMU. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
It's been about a year since these were deprecated and, in most cases, removed. There's no point in carrying that documentation, or backwards compatibility for "jtag_device" and "jtag_speed", around forever. (Or a few remnants of obsolete code...) Removed a few obsolete uses of "jtag_speed": - The Calao stuff hasn't worked since July 2008. (Those Atmel targets need to work with a 32KHz core clock after reset until board-specific init-reset code sets up the PLL and enables a faster JTAg clock.) - Parport speed controls don't actually work (tops out at about 1 MHz on typical HW). - In general, speed controls need to live in board.cfg files (or sometimes target.cfg files), not interface.cfg ... Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Rename the "Drivers, Options, and Commands" sections to be just "Driver List" matching the earlier reference. Add an example of parallel CFI flash. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Zachary T Welch authored
Remove extern keywords from function prototypes and wrap long lines.
-
Zachary T Welch authored
Removes 'extern' keyword from function prototypes and wraps long lines.
-
Zachary T Welch authored
Removes 'extern' keyword from function declarations in header filess.
-
Zachary T Welch authored
Removes 'extern' keywords from function prototypes in the flash headers. Wraps long lines to fit into 80 columns. Adds multiple inclusion protection for s3c2xx_nand.h.
-
Zachary T Welch authored
Removes the 'extern' keyword from function declarations. Wraps long prototypes to fit into 80 columns. Fixes documentation for jtag_tap_s::{,has}idcode fields.
-
Zachary T Welch authored
Remove all useless 'extern' keywords from function prototypes. Wraps long lines for readability.
-
David Brownell authored
The "$ocd_HOSTOS" variable was wrongly documented. Fix its documentation, and its value on Linux. Shrink a few of the too-long lines. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Add comments (Doxygen and normal), remove unused code, shrink some overlong lines. Get rid of a forward decl. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Zachary T Welch authored
This patch changes the duration_* API in several ways. First, it updates the API to use better names. Second, string formatting has been removed from the API (with its associated malloc). Finally, a new function added to convert the time into seconds, which can be used (or formatted) by the caller. This eliminates hidden calls to malloc that require associated calls to free(). This patch also removes the useless extern keyword from prototypes, and it eliminates the duration_t typedef (use 'struct duration'). These API also allows proper error checking, as it is possible for gettimeofday to fail in certain circumstances. The consumers have all been chased to use this new API as well, as there were relatively few cases doing this type of measurement. In most cases, the code performs additional checks for errors, but the calling code looks much cleaner in every case.
-
- Nov 08, 2009
-
-
Zachary T Welch authored
Reduces confusion about location of associated routines and reduces clutter in the arm11 header. Removes extra whitespace around the lines touched by these changes.
-
Zachary T Welch authored
Unneeded exports cause confusion about the module interfaces. Make almost everything static in the arm11.c module.
-
David Brownell authored
Make several functions be static. Shrink some of the overlong lines. Use pure tab indents in some places that mixed in spaces. This gives a minor object code shrink (about 2% on amd64). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-