Commit Graph

23 Commits

Author SHA1 Message Date
Dave Marples
b71e0a199a iFix the LPC4330 family SDMMC card access. Some of these fixes (e.g. DELAY register) may also be applicable elsewhere. These are _NOT_ extensively tested, but they are certainly better than the current state of the driver. The fixes, specifically, are;
* Clocks were wrongly configured - way too fast because there is no primary divider on LPC4330

This is fixed by means of changing the definitions in the board.h file. I've edited the one for the lpc4330-xplorer board because I'm actually working with Versiboard and don't want to contribute that config just yet while I've still got the drains up on it.

* The LPC43_SDMMC_DELAY register was not being set

I suspect, in the 'real world', it's possible to get away without setting this, but I've added a register definition, default value and register access macros into arch/arm/src/lpc43xx/chip/lpc43_scu.h and then used them in arch/arm/src/lpc43xx/lpc43_sdmmc.c.

* The LPC43_SDMMC_BLKSIZ and LPC43_SDMMC_BYTECNT registers had the wrong values.

The management have already implemented a rather nice block level interface for the stm32 so I've just re-used that to write to these registers as required. I'm slightly nervous that accessing the configuration registers (SCR being the prime example) which has a much smaller block size may not be being done in the right way but it does seem to work correctly, so let's assume it's all OK until someone tells me otherwise.

These fixes have been tested with DMA-based read/write on a LPC4330. Speed via nsh is pretty low but I'm assuming that's just a buffering/implementation issue for now.
2018-10-21 17:22:22 -06:00
Jakob Haufe
fe4790ec18 Merged in sur5r/nuttx-nuttx/lpc43_eth_pins (pull request #717)
arch/arm/src/lpc43xx: Fix ethernet TX_EN pin definitions

TX_EN on LPC43xx can be routed via P0.1 and PC.4 in both
MII and RMII mode.

Before, P0.1 was hardcoded for MII and PC.4 was hardcoded for RMII.

Also, the definitions used inconsistent naming (TXEN vs. TX_EN).

Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-10 11:56:52 +00:00
Gregory Nutt
a1e250697c configs/*/include; Remove prototype of xyz_boardinitialize() from board.h files. The authorative prototype is in arch/arm/src/xyz/xyz_start.h 2017-12-16 20:47:44 -06:00
Gregory Nutt
b750dd5ff7 Correct name, not CONFIG_GPIO_IRQ but CONFIG_LPC43_GPIO_IRQ 2016-07-22 14:55:39 -06:00
Dave Marples
78c0b30140 Update to the lpc4340-xplorer configuration for Ethernet and other peripherals 2016-02-19 08:18:49 -06:00
Gregory Nutt
f56ed529e5 Remove prototypes for all user LED interfaces from board.h header files 2015-11-01 10:53:34 -06:00
Gregory Nutt
2b88bc7119 Standardize the width of all comment boxes in C header files 2015-10-03 07:41:15 -06:00
Gregory Nutt
3640042be8 Various fixes for compilation issues found by tools/testbuild.sh 2015-10-01 11:08:07 -06:00
Gregory Nutt
f0a79f0a74 LPC43 board.h files: Settings needed in lpc43_cpu.c 2015-09-10 08:15:50 -06:00
Gregory Nutt
68a97a53ac Make some file section headers more consistent with standard 2015-04-08 09:15:17 -06:00
Gregory Nutt
ab5b37189b More trailing whilespace removal 2014-04-13 16:22:22 -06:00
patacongo
052432c15b LPC43 update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5001 42af7a65-404d-4744-a932-0658087f49c3
2012-08-03 14:57:30 +00:00
patacongo
f946c431a6 Add completed but untested support for RS-485 on the LPC43xx
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4959 42af7a65-404d-4744-a932-0658087f49c3
2012-07-20 18:32:16 +00:00
patacongo
4a44aa0ab9 Drop SPIFI frequency.. spifi_init no longer reports errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4950 42af7a65-404d-4744-a932-0658087f49c3
2012-07-17 22:03:50 +00:00
patacongo
6dffb92c26 Add logic to initialize the LPC43xx SPIFI device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4949 42af7a65-404d-4744-a932-0658087f49c3
2012-07-17 20:02:57 +00:00
patacongo
6cb1ef3ca2 Fix LPC43xx clocking bugs; LPC43xx now runs at 204MHz
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4946 42af7a65-404d-4744-a932-0658087f49c3
2012-07-16 21:25:29 +00:00
patacongo
5be43b648c Fix an error in LPC43xx clock configuratin that can cause fail to boot
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4945 42af7a65-404d-4744-a932-0658087f49c3
2012-07-16 19:16:57 +00:00
patacongo
f5e35ece21 More updated LPC4300 scripts and README files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4923 42af7a65-404d-4744-a932-0658087f49c3
2012-07-09 20:55:31 +00:00
patacongo
62b090a33f Straighten out LPC32 UART clocking (still some baud calculation issues)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4917 42af7a65-404d-4744-a932-0658087f49c3
2012-07-07 15:29:13 +00:00
patacongo
e0b01efe74 Add LPC43 clock initialization logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4910 42af7a65-404d-4744-a932-0658087f49c3
2012-07-05 22:38:12 +00:00
patacongo
8bee8ebfce More LPC43xx logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4906 42af7a65-404d-4744-a932-0658087f49c3
2012-07-04 22:03:00 +00:00
patacongo
f6cf8bb0c3 Progress of LPC43xx build environment
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4904 42af7a65-404d-4744-a932-0658087f49c3
2012-07-04 17:59:16 +00:00
patacongo
6d0cf19a02 Add LPC32xx CAN header file; Add configuration for the NXP LP4330-Xplorer board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4901 42af7a65-404d-4744-a932-0658087f49c3
2012-07-03 22:42:27 +00:00