mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Merged in alinjerpelea/nuttx (pull request #1038)
cxd56xx: various fixes
* arch: arm: cxd56xx: Support to set any i2c frequency
This commit supports to be able to set the i2c frequency other than just
100 or 400 Hz.
* arch: arm: cxd56xx: Enable SD clock during access to SD card
- Improve GNSS low sensitivity with SD card inserted
- Reduce power consumption by stopping SD clock
* arch: arm: cxd56xx: Do PANIC() when cpu rx fifo is overflow
If CPU Rx FIFO is overflow, it's fatal error for system. In such a case,
this commit changes to allow the user to notice by calling PANIC() for
debuggability enhancement.
* arch: arm: cxd56xx: Fix compile error in sdhci debug code
* arch: arm: cxd56xx: Remove assertion in cpu tx queue
When CPU Tx queue is overflow, it returns -EAGAIN instead of assertion
to be able to retry.
* arch: arm: cxd56xx: Add configurations for cpu fifo elements
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: Fix LPADC configuration
LPADC options defined in the same symbol name, so kconfig tool
couldn't process them correctly.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: Update loader and gnssfw ver.17660
* arch: arm: cxd56xx: Fix hang-up when error interrupt occurs
Fix a problem that error interrupts are not cleared.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: Fix sdhci semaphore
Fix inital value of semaphore in sdhci drive.r
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* boards: cxd56xx: Treat the initial value of LNA power as off
LNA is always turned power on when GNSS is started. So it is desirable
that the initial value of the LNA power is off by default.
* boards: cxd56xx: Remove initial setting of PIN_AP_CLK
PIN_AP_CLK is used as a port selector of SDIO expander on the extension
board, and is set output low in initalizing. Therefore, this pin cannot
be used for other board. To avoid this restriction, remove this initial
operation because this pin is pulled down by default on the extension
board.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
committed by
Gregory Nutt
parent
81aecdce1e
commit
7420f4dc5e
@@ -70,7 +70,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
static sem_t g_ltsem = SEM_INITIALIZER(1);
|
||||
static bool g_used_lna = true;
|
||||
static bool g_used_lna = false;
|
||||
static bool g_used_tcxo = true;
|
||||
#ifdef CONFIG_BOARDCTL_RESET
|
||||
static struct pm_cpu_freqlock_s g_hv_lock =
|
||||
|
||||
@@ -336,15 +336,13 @@ int board_sdcard_initialize(void)
|
||||
{
|
||||
int ret = OK;
|
||||
|
||||
cxd56_gpio_config(SDCARD_TXS02612_SEL, false);
|
||||
|
||||
#ifdef CONFIG_SDCARD_TXS02612_PORT0
|
||||
/* Select port0 for SD-Card */
|
||||
/* Select port0 for SD-Card (default) */
|
||||
|
||||
cxd56_gpio_write(SDCARD_TXS02612_SEL, false);
|
||||
#else
|
||||
/* Select port1 for SDIO other than SD-Card */
|
||||
|
||||
cxd56_gpio_config(SDCARD_TXS02612_SEL, false);
|
||||
cxd56_gpio_write(SDCARD_TXS02612_SEL, true);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user