diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-04-12 13:27:23 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-04-12 13:27:23 +0000 |
commit | 999f86b92b8efe89976e8196a19350a9822e0ca7 (patch) | |
tree | b10c374534c0a0331a27752d1a6e05daafebeb4d /src/flash/lpc3180_nand_controller.c | |
parent | a48a5e6d94dc98cf69d15be133ae7b8283126bbe (diff) | |
download | riscv-openocd-999f86b92b8efe89976e8196a19350a9822e0ca7.zip riscv-openocd-999f86b92b8efe89976e8196a19350a9822e0ca7.tar.gz riscv-openocd-999f86b92b8efe89976e8196a19350a9822e0ca7.tar.bz2 |
- correctly mask out bits that aren't part of a copied buffer
- fixed arm926ej-s CP15 register access handling
- correctly identify SYSCLK source in LPC3180 NAND flash controller driver
git-svn-id: svn://svn.berlios.de/openocd/trunk@139 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/lpc3180_nand_controller.c')
-rw-r--r-- | src/flash/lpc3180_nand_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/lpc3180_nand_controller.c b/src/flash/lpc3180_nand_controller.c index aae5cbb..2ef6f40 100644 --- a/src/flash/lpc3180_nand_controller.c +++ b/src/flash/lpc3180_nand_controller.c @@ -150,7 +150,7 @@ float lpc3180_cycle_time(lpc3180_nand_controller_t *lpc3180_info) /* determine current SYSCLK (13'MHz or main oscillator) */ target_read_u32(target, 0x40004050, &sysclk_ctrl); - if (sysclk_ctrl & 1) + if ((sysclk_ctrl & 1) == 0) sysclk = lpc3180_info->osc_freq; else sysclk = 13000; |