boards: sama5: fix Mixed case identifier errors

Fix the Mixed case identifier errors found on sama5 family

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2021-03-19 08:50:11 +01:00 committed by Xiang Xiao
parent 3ce3b1e1c5
commit 66d312985c
24 changed files with 158 additions and 158 deletions

View File

@ -3123,8 +3123,8 @@ Configurations
re-configured:
Board Selection -> CPU Frequency
CONFIG_SAMA5D3xEK_396MHZ=n # Disable 396MHz operation
CONFIG_SAMA5D3xEK_528MHZ=y # Enable 528MHz operation
CONFIG_SAMA5D3XEK_396MHZ=n # Disable 396MHz operation
CONFIG_SAMA5D3XEK_528MHZ=y # Enable 528MHz operation
If you switch to 528MHz, you should also check the loop calibration
value in your .config file. Of course, it would be best to re-calibrate

View File

@ -7,37 +7,37 @@ if ARCH_BOARD_SAMA5D3X_EK
choice
prompt "CPU Frequency"
default SAMA5D3xEK_396MHZ
default SAMA5D3XEK_396MHZ
config SAMA5D3xEK_384MHZ
config SAMA5D3XEK_384MHZ
bool "384 MHz"
config SAMA5D3xEK_396MHZ
config SAMA5D3XEK_396MHZ
bool "396 MHz"
config SAMA5D3xEK_528MHZ
config SAMA5D3XEK_528MHZ
bool "528 MHz"
endchoice # CPU Frequency
choice
prompt "SAMA5D3x-EK DRAM Type"
default SAMA5D3xEK_MT47H128M16RT
default SAMA5D3XEK_MT47H128M16RT
depends on SAMA5_DDRCS
config SAMA5D3xEK_MT47H128M16RT
config SAMA5D3XEK_MT47H128M16RT
bool "MT47H128M16RT"
---help---
Micron 2Gbit x16 DDR2-1066 128Mb
config SAMA5D3xEK_MT47H64M16HR
config SAMA5D3XEK_MT47H64M16HR
bool "MT47H64M16HR"
---help---
Micron 1Gbit x16 DDR2-800 64Mb
endchoice # SAMA5D3x-EK DRAM Type
config SAMA5D3xEK_NOREDLED
config SAMA5D3XEK_NOREDLED
bool "Red LED not available"
default n
---help---
@ -48,7 +48,7 @@ config SAMA5D3xEK_NOREDLED
available to control the red LED, this configuration variable should
be set so that the LED logic will only used the blue LED.
config SAMA5D3xEK_NOR_MAIN
config SAMA5D3XEK_NOR_MAIN
bool "Build nor_main"
default n
depends on SAMA5_BOOT_ISRAM && BUILD_FLAT
@ -57,15 +57,15 @@ config SAMA5D3xEK_NOR_MAIN
NOR flash then either (1) jump to the program in NOR flash or (2)
wait for you to break in with GDB to debug the NOR program.
config SAMA5D3xEK_NOR_START
config SAMA5D3XEK_NOR_START
bool "Start NOR program"
default n
depends on SAMA5D3xEK_NOR_MAIN
depends on SAMA5D3XEK_NOR_MAIN
---help---
The default behavior of the NOR boot program is to initialize the
NOR FLASH at CS0, then patiently wait for you to break into the
program with GDB. An alternative behavior is enabled with this
option: If SAMA5D3xEK_NOR_START is defined, then it will not wait but
option: If SAMA5D3XEK_NOR_START is defined, then it will not wait but
will, instead, immediately start the program in NOR FLASH.
config SAMA5D3XEK_NAND_BLOCKMOUNT
@ -77,10 +77,10 @@ config SAMA5D3XEK_NAND_BLOCKMOUNT
choice
prompt "NAND FLASH configuration"
default SAMA5D3xEK_NAND_NXFFS
default SAMA5D3XEK_NAND_NXFFS
depends on SAMA5D3XEK_NAND_BLOCKMOUNT
config SAMA5D3xEK_NAND_FTL
config SAMA5D3XEK_NAND_FTL
bool "Create NAND FLASH block driver"
depends on MTD && MTD_NAND
---help---
@ -94,7 +94,7 @@ config SAMA5D3xEK_NAND_FTL
wear-leveling other than NXFFS and NXFFS does not use a block driver
but, rather, operates directly upon the NAND MTD device.
config SAMA5D3xEK_NAND_NXFFS
config SAMA5D3XEK_NAND_NXFFS
bool "Create NAND FLASH NXFFS file system"
depends on MTD && MTD_NAND && FS_NXFFS && NXFFS_NAND
---help---
@ -107,7 +107,7 @@ config SAMA5D3xEK_NAND_NXFFS
endchoice # NAND FLASH configuration
config SAMA5D3xEK_AT25_BLOCKMOUNT
config SAMA5D3XEK_AT25_BLOCKMOUNT
bool "AT25 serial FLASH auto-mount"
default n
depends on NSH_ARCHINIT && SAMA5_SPI0 && MTD_AT25
@ -116,10 +116,10 @@ config SAMA5D3xEK_AT25_BLOCKMOUNT
choice
prompt "AT25 serial FLASH configuration"
default SAMA5D3xEK_AT25_FTL
depends on SAMA5D3xEK_AT25_BLOCKMOUNT
default SAMA5D3XEK_AT25_FTL
depends on SAMA5D3XEK_AT25_BLOCKMOUNT
config SAMA5D3xEK_AT25_FTL
config SAMA5D3XEK_AT25_FTL
bool "Create AT25 Serial FLASH block driver"
---help---
Create the MTD driver for the AT25 and "wrap" the AT25 as a standard
@ -127,7 +127,7 @@ config SAMA5D3xEK_AT25_FTL
any other file system. Any file system may be used, but there will
be no wear-leveling.
config SAMA5D3xEK_AT25_NXFFS
config SAMA5D3XEK_AT25_NXFFS
bool "Create AT25 serial FLASH NXFFS file system"
depends on FS_NXFFS
---help---
@ -137,7 +137,7 @@ config SAMA5D3xEK_AT25_NXFFS
endchoice # AT25 serial FLASH configuration
config SAMA5D3xEK_AT24_BLOCKMOUNT
config SAMA5D3XEK_AT24_BLOCKMOUNT
bool "AT24 Serial EEPROM auto-mount"
default n
depends on NSH_ARCHINIT && SAMA5_TWI0 && MTD_AT24XX
@ -157,10 +157,10 @@ config SAMA5D3xEK_AT24_BLOCKMOUNT
choice
prompt "AT24 serial EPPROM configuration"
default SAMA5D3xEK_AT24_FTL
depends on SAMA5D3xEK_AT24_BLOCKMOUNT
default SAMA5D3XEK_AT24_FTL
depends on SAMA5D3XEK_AT24_BLOCKMOUNT
config SAMA5D3xEK_AT24_FTL
config SAMA5D3XEK_AT24_FTL
bool "Create AT24 block driver"
---help---
Create the MTD driver for the AT24 and "wrap" the AT24 as a standard
@ -168,7 +168,7 @@ config SAMA5D3xEK_AT24_FTL
any other file system. Any file system may be used, but there will
be no wear-leveling.
config SAMA5D3xEK_AT24_NXFFS
config SAMA5D3XEK_AT24_NXFFS
bool "Create AT24 NXFFS file system"
depends on FS_NXFFS
---help---
@ -178,18 +178,18 @@ config SAMA5D3xEK_AT24_NXFFS
endchoice # AT24 serial EPPROM configuration
config SAMA5D3xEK_USBHOST_STACKSIZE
config SAMA5D3XEK_USBHOST_STACKSIZE
int "USB host waiter stack size"
default 1536 if USBHOST_HUB
default 1024 if !USBHOST_HUB
depends on USBHOST
config SAMA5D3xEK_USBHOST_PRIO
config SAMA5D3XEK_USBHOST_PRIO
int "USB host waiter task priority"
default 100
depends on USBHOST
config SAMA5D3xEK_TSD_DEVMINOR
config SAMA5D3XEK_TSD_DEVMINOR
int "Touchscreen device minor"
default 0
depends on SAMA5_TSD
@ -197,7 +197,7 @@ config SAMA5D3xEK_TSD_DEVMINOR
This touchscreen will be register as /dev/inputN where the value of
N is provided by this configuration setting.
config SAMA5D3xEK_CHANNEL
config SAMA5D3XEK_CHANNEL
int "PWM channel number"
default 0 if SAMA5_PWM_CHAN0
default 1 if SAMA5_PWM_CHAN1
@ -213,7 +213,7 @@ if AUDIO_I2SCHAR && (SAMA5_SSC0 || SAMA5_SSC1)
if SAMA5_SSC0 && SAMA5_SSC1
config SAMA5D3xEK_SSC_PORT
config SAMA5D3XEK_SSC_PORT
int "SSC port number"
default 0
range 0 1
@ -224,7 +224,7 @@ endif # SAMA5_SSC0 && SAMA5_SSC1
if SAMA5_SSC0 && !SAMA5_SSC1
config SAMA5D3xEK_SSC_PORT
config SAMA5D3XEK_SSC_PORT
int
default 0
@ -232,13 +232,13 @@ endif # SAMA5_SSC0 && !SAMA5_SSC1
if !SAMA5_SSC0 && SAMA5_SSC1
config SAMA5D3xEK_SSC_PORT
config SAMA5D3XEK_SSC_PORT
int
default 1
endif # SAMA5_SSC0 && !SAMA5_SSC1
config SAMA5D3xEK_I2SCHAR_MINOR
config SAMA5D3XEK_I2SCHAR_MINOR
int "I2S character driver minor number"
default 0
---help---
@ -250,23 +250,23 @@ endif # AUDIO_I2SCHAR && (SAMA5_SSC0 || SAMA5_SSC1)
if VIDEO_OV2640
config SAMA5D3xEK_OV2640_DEMO
config SAMA5D3XEK_OV2640_DEMO
bool "SAMA5 OV2640 camera demo"
default n
select SAMA5D3xEK_NOREDLED
select SAMA5D3XEK_NOREDLED
---help---
Enable the SAMA5 OV2640 camera demo
endif # VIDEO_OV2640
config SAMA5D3xEK_SLOWCLOCK
config SAMA5D3XEK_SLOWCLOCK
bool
default y if SCHED_TICKLESS
default n if !SCHED_TICKLESS
if AUDIO_WM8904
config SAMA5D3xEK_WM8904_I2CFREQUENCY
config SAMA5D3XEK_WM8904_I2CFREQUENCY
int "WM8904 I2C Frequency"
default 400000
range 1 400000
@ -278,13 +278,13 @@ config SAMA5D3xEK_WM8904_I2CFREQUENCY
choice
prompt "WM8904 MCLK source"
default SAMA5D3xEK_WM8904_SRCMAIN
default SAMA5D3XEK_WM8904_SRCMAIN
config SAMA5D3xEK_WM8904_SRCMAIN
config SAMA5D3XEK_WM8904_SRCMAIN
bool "Main Clock (12MHz)"
select SAMA5D3xEK_SLOWCLOCK
select SAMA5D3XEK_SLOWCLOCK
config SAMA5D3xEK_WM8904_SRCSCK
config SAMA5D3XEK_WM8904_SRCSCK
bool "Slow XTAL (32.768KHz)"
endchoice # WM8904 MCLK source

View File

@ -388,7 +388,7 @@ Creating and Using NORBOOT
The norboot program can also be configured to jump directly into
NOR FLASH without requiring the final halt and go by setting
CONFIG_SAMA5D3xEK_NOR_START=y in the NuttX configuration. However,
CONFIG_SAMA5D3XEK_NOR_START=y in the NuttX configuration. However,
since I have been debugging the early boot sequence, the above
sequence has been most convenient for me since it allows me to
step into the program in NOR.
@ -817,7 +817,7 @@ Buttons and LEDs
LED_PANIC The system has crashed OFF Blinking
LED_IDLE MCU is is sleep mode -- Not used --
If CONFIG_SAMA5D3xEK_NOREDLED=y, then the red LED is not used by the
If CONFIG_SAMA5D3XEK_NOREDLED=y, then the red LED is not used by the
system and the controls are as follows:
SYMBOL Meaning LED state
@ -1182,8 +1182,8 @@ AT25 Serial FLASH
CONFIG_NSH_ARCHINIT=y : NSH board-initialization
Board Selection
CONFIG_SAMA5D3xEK_AT25_BLOCKMOUNT=y : Mounts AT25 for NSH
CONFIG_SAMA5D3xEK_AT25_FTL=y : Create block driver for FAT
CONFIG_SAMA5D3XEK_AT25_BLOCKMOUNT=y : Mounts AT25 for NSH
CONFIG_SAMA5D3XEK_AT25_FTL=y : Create block driver for FAT
NOTE that you must close JP1 on the Embest/Ronetix board in order to
enable the AT25 FLASH chip select.
@ -1755,7 +1755,7 @@ SDRAM Support
CONFIG_SAMA5_DDRCS_LPDDR2=y : Its DDR2
Board Selection
CONFIG_SAMA5D3xEK_MT47H128M16RT=y : This is the type of DDR2
CONFIG_SAMA5D3XEK_MT47H128M16RT=y : This is the type of DDR2
System Type->Heap Configuration
CONFIG_SAMA5_DDRCS_HEAP=y : Add the SDRAM to the heap
@ -1825,7 +1825,7 @@ SDRAM Support
CONFIG_SAMA5_DDRCS_LPDDR2=y : Its DDR2
Board Selection
CONFIG_SAMA5D3xEK_MT47H128M16RT=y : This is the type of DDR2
CONFIG_SAMA5D3XEK_MT47H128M16RT=y : This is the type of DDR2
System Type->Heap Configuration
CONFIG_SAMA5_ISRAM_HEAP=n : These do not apply in this case
@ -1968,7 +1968,7 @@ NAND Support
Board Selection
CONFIG_SAMA5D3XEK_NAND_BLOCKMOUNT=y : Enable FS support on NAND
CONFIG_SAMA5D3xEK_NAND_NXFFS=y : Use the NXFFS file system
CONFIG_SAMA5D3XEK_NAND_NXFFS=y : Use the NXFFS file system
Other file systems are not recommended because only NXFFS can handle
bad blocks and only NXFFS performs wear-levelling.
@ -1992,7 +1992,7 @@ NAND Support
Board Selection
CONFIG_SAMA5D3XEK_NAND_BLOCKMOUNT=y : Enable FS support on NAND
CONFIG_SAMA5D3xEK_NAND_FTL=y : Use an flash translation layer
CONFIG_SAMA5D3XEK_NAND_FTL=y : Use an flash translation layer
NOTE: FTL will require some significant buffering because of
the large size of the NAND flash blocks. You will also need
@ -2010,7 +2010,7 @@ NAND Support
---------------------
With the options CONFIG_SAMA5D3XEK_NAND_BLOCKMOUNT=y and
CONFIG_SAMA5D3xEK_NAND_NXFFS=y, the NAND FLASH will be mounted in the NSH
CONFIG_SAMA5D3XEK_NAND_NXFFS=y, the NAND FLASH will be mounted in the NSH
start-up logic before the NSH prompt appears. There is no feedback as
to whether or not the mount was successful. You can, however, see the
mounted file systems using the nsh 'mount' command:
@ -2235,8 +2235,8 @@ AT24 Serial EEPROM
: Other defaults are probably OK
Board Selection
CONFIG_SAMA5D3xEK_AT24_BLOCKMOUNT=y : Mounts AT24 for NSH
CONFIG_SAMA5D3xEK_AT24_NXFFS=y : Mount the AT24 using NXFFS
CONFIG_SAMA5D3XEK_AT24_BLOCKMOUNT=y : Mounts AT24 for NSH
CONFIG_SAMA5D3XEK_AT24_NXFFS=y : Mount the AT24 using NXFFS
You can then format the AT24 EEPROM for a FAT file system and mount the
file system at /mnt/at24 using these NSH commands:
@ -2725,7 +2725,7 @@ Touchscreen Testing
CONFIG_INPUT=y : (automatically selected)
Board Selection:
CONFIG_SAMA5D3xEK_TSD_DEVMINOR=0 : Register as /dev/input0
CONFIG_SAMA5D3XEK_TSD_DEVMINOR=0 : Register as /dev/input0
Library Support:
CONFIG_SCHED_WORKQUEUE=y : Work queue support required
@ -2966,8 +2966,8 @@ I2S Audio Support
CONFIG_AUDIO_WM8904=y : Build WM8904 driver character driver
Board Selection
CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY=400000
CONFIG_SAMA5D3xEK_WM8904_SRCMAIN=y : WM8904 MCLK is the SAMA5D Main Clock
CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY=400000
CONFIG_SAMA5D3XEK_WM8904_SRCMAIN=y : WM8904 MCLK is the SAMA5D Main Clock
Library Routines
CONFIG_SCHED_WORKQUEUE=y : MW8904 driver needs work queue support
@ -3063,8 +3063,8 @@ I2S Audio Support
CONFIG_EXAMPLES_I2SCHAR_DEVINIT=y
Board Selection
CONFIG_SAMA5D3xEK_I2SCHAR_MINOR=0
CONFIG_SAMA5D3xEK_SSC_PORT=0 : 0 or SSC0, 1 for SSC1
CONFIG_SAMA5D3XEK_I2SCHAR_MINOR=0
CONFIG_SAMA5D3XEK_SSC_PORT=0 : 0 or SSC0, 1 for SSC1
Library Routines
CONFIG_SCHED_WORKQUEUE=y : Driver needs work queue support
@ -3304,8 +3304,8 @@ Configurations
re-configured:
Board Selection -> CPU Frequency
CONFIG_SAMA5D3xEK_396MHZ=n # Disable 396MHz operation
CONFIG_SAMA5D3xEK_528MHZ=y # Enable 528MHz operation
CONFIG_SAMA5D3XEK_396MHZ=n # Disable 396MHz operation
CONFIG_SAMA5D3XEK_528MHZ=y # Enable 528MHz operation
If you switch to 528MHz, you should also check the loop calibration
value in your .config file. Of course, it would be best to re-calibrate
@ -3504,7 +3504,7 @@ Configurations
2. The default norboot program initializes the NOR memory,
displays a message and halts. The norboot program can also be
configured to jump directly into NOR FLASH without requiring the
final halt and go by setting CONFIG_SAMA5D3xEK_NOR_START=y in the
final halt and go by setting CONFIG_SAMA5D3XEK_NOR_START=y in the
NuttX configuration.
3. Be aware that the default norboot also disables the watchdog.

View File

@ -49,7 +49,7 @@ CONFIG_RAM_START=0x00304000
CONFIG_RAM_VSTART=0x00304000
CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_SAMA5D3xEK_AT25_BLOCKMOUNT=y
CONFIG_SAMA5D3XEK_AT25_BLOCKMOUNT=y
CONFIG_SAMA5_BOOT_CS0FLASH=y
CONFIG_SAMA5_DDRCS=y
CONFIG_SAMA5_DDRCS_HEAP_SIZE=268435456

View File

@ -29,7 +29,7 @@ CONFIG_RAM_START=0x00300000
CONFIG_RAM_VSTART=0x00300000
CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_SAMA5D3xEK_NOR_MAIN=y
CONFIG_SAMA5D3XEK_NOR_MAIN=y
CONFIG_SAMA5_EBICS0=y
CONFIG_SAMA5_EBICS0_SIZE=134217728
CONFIG_SAMA5_HSMC=y

View File

@ -56,7 +56,7 @@ CONFIG_RAM_START=0x00304000
CONFIG_RAM_VSTART=0x00304000
CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_SAMA5D3xEK_528MHZ=y
CONFIG_SAMA5D3XEK_528MHZ=y
CONFIG_SAMA5_BOOT_CS0FLASH=y
CONFIG_SAMA5_DDRCS=y
CONFIG_SAMA5_DDRCS_HEAP_SIZE=268435456

View File

@ -33,7 +33,7 @@ CONFIG_RAM_START=0x00304000
CONFIG_RAM_VSTART=0x00304000
CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_SAMA5D3xEK_OV2640_DEMO=y
CONFIG_SAMA5D3XEK_OV2640_DEMO=y
CONFIG_SAMA5_BOOT_CS0FLASH=y
CONFIG_SAMA5_DDRCS=y
CONFIG_SAMA5_DDRCS_HEAP_SIZE=268435456

View File

@ -53,7 +53,7 @@
# include <arch/board/board_sdram.h>
#elif defined(CONFIG_SAMA5D3xEK_384MHZ)
#elif defined(CONFIG_SAMA5D3XEK_384MHZ)
/* OHCI Only.
* This is an alternative slower configuration that will produce a 48MHz
* USB clock with the required accuracy using only PLLA.
@ -66,7 +66,7 @@
# include <arch/board/board_384mhz.h>
#elif defined(CONFIG_SAMA5D3xEK_528MHZ)
#elif defined(CONFIG_SAMA5D3XEK_528MHZ)
/* This is the configuration results in a CPU clock of 528MHz.
*
* In this configuration, UPLL is the source of the UHPHS clock (if enabled).
@ -74,7 +74,7 @@
# include <arch/board/board_528mhz.h>
#else /* #elif defined(CONFIG_SAMA5D3xEK_396MHZ) */
#else /* #elif defined(CONFIG_SAMA5D3XEK_396MHZ) */
/* This is the configuration provided in the Atmel example code.
* This setup results in a CPU clock of 396MHz.
*
@ -129,7 +129,7 @@
/* LED index values for use with board_userled() */
#define BOARD_BLUE 0
#ifdef CONFIG_SAMA5D3xEK_NOREDLED
#ifdef CONFIG_SAMA5D3XEK_NOREDLED
# define BOARD_NLEDS 1
#else
# define BOARD_RED 1
@ -139,7 +139,7 @@
/* LED bits for use with board_userled_all() */
#define BOARD_BLUE_BIT (1 << BOARD_BLUE)
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
# define BOARD_RED_BIT (1 << BOARD_RED)
#endif
@ -163,7 +163,7 @@
#define LED_PANIC 3 /* The system has crashed OFF Blinking */
#undef LED_IDLE /* MCU is is sleep mode Not used */
/* If CONFIG_SAMA5D3xEK_NOREDLED=y, then the red LED is not used by the
/* If CONFIG_SAMA5D3XEK_NOREDLED=y, then the red LED is not used by the
* system. The only difference from the above is that it is the blue, not
* the red LED that blinks in the event of an PANIC.
*

View File

@ -42,7 +42,7 @@ ifeq ($(CONFIG_SAMA5_EBICS3_NAND),y)
CSRCS += sam_nandflash.c
endif
ifeq ($(CONFIG_SAMA5D3xEK_NOR_MAIN),y)
ifeq ($(CONFIG_SAMA5D3XEK_NOR_MAIN),y)
CSRCS += nor_main.c
endif

View File

@ -50,7 +50,7 @@
#define NOR_WAIT 1
#define NOR_NO_WAIT 0
#ifdef CONFIG_SAMA5D3xEK_NOR_START
#ifdef CONFIG_SAMA5D3XEK_NOR_START
# define NOR_BOOT_MODE NOR_NO_WAIT
#else
# define NOR_BOOT_MODE NOR_WAIT

View File

@ -105,7 +105,7 @@ int sam_at24_automount(int minor)
return -ENODEV;
}
#if defined(CONFIG_SAMA5D3xEK_AT24_FTL)
#if defined(CONFIG_SAMA5D3XEK_AT24_FTL)
/* And use the FTL layer to wrap the MTD driver as a block driver */
finfo("Initialize the FTL layer to create /dev/mtdblock%d\n",
@ -117,7 +117,7 @@ int sam_at24_automount(int minor)
return ret;
}
#elif defined(CONFIG_SAMA5D3xEK_AT24_NXFFS)
#elif defined(CONFIG_SAMA5D3XEK_AT24_NXFFS)
/* Initialize to provide NXFFS on the MTD interface */
finfo("Initialize the NXFFS file system\n");

View File

@ -85,7 +85,7 @@ int sam_at25_automount(int minor)
return -ENODEV;
}
#if defined(CONFIG_SAMA5D3xEK_AT25_FTL)
#if defined(CONFIG_SAMA5D3XEK_AT25_FTL)
/* And finally, use the FTL layer to wrap the MTD driver as a block
* driver
*/
@ -97,7 +97,7 @@ int sam_at25_automount(int minor)
return ret;
}
#elif defined(CONFIG_SAMA5D3xEK_AT25_NXFFS)
#elif defined(CONFIG_SAMA5D3XEK_AT25_NXFFS)
/* Initialize to provide NXFFS on the MTD interface */
ret = nxffs_initialize(mtd);

View File

@ -86,7 +86,7 @@ void board_autoled_initialize(void)
/* Configure LED PIOs for output */
sam_configpio(PIO_BLUE);
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
sam_configpio(PIO_RED);
#endif
}
@ -98,7 +98,7 @@ void board_autoled_initialize(void)
void board_autoled_on(int led)
{
bool blueoff = true; /* Low illuminates */
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
bool redon = false; /* High illuminates */
#endif
@ -116,7 +116,7 @@ void board_autoled_on(int led)
return;
case 3: /* LED_PANIC */
#ifdef CONFIG_SAMA5D3xEK_NOREDLED
#ifdef CONFIG_SAMA5D3XEK_NOREDLED
blueoff = false;
#else
redon = true;
@ -125,7 +125,7 @@ void board_autoled_on(int led)
}
sam_piowrite(PIO_BLUE, blueoff);
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
sam_piowrite(PIO_RED, redon);
#endif
}
@ -139,7 +139,7 @@ void board_autoled_off(int led)
if (led != 2)
{
sam_piowrite(PIO_BLUE, true); /* Low illuminates */
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
sam_piowrite(PIO_RED, false); /* High illuminates */
#endif
}

View File

@ -56,7 +56,7 @@
void sam_boardinitialize(void)
{
#ifdef CONFIG_SAMA5D3xEK_SLOWCLOCK
#ifdef CONFIG_SAMA5D3XEK_SLOWCLOCK
/* Enable the external slow clock */
sam_sckc_enable(true);

View File

@ -40,16 +40,16 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef CONFIG_SAMA5D3xEK_SSC_PORT
#ifndef CONFIG_SAMA5D3XEK_SSC_PORT
# if defined(CONFIG_SAMA5_SSC0)
# define CONFIG_SAMA5D3xEK_SSC_PORT 0
# define CONFIG_SAMA5D3XEK_SSC_PORT 0
# elif defined(CONFIG_SAMA5_SSC1)
# define CONFIG_SAMA5D3xEK_SSC_PORT 1
# define CONFIG_SAMA5D3XEK_SSC_PORT 1
# endif
#endif
#ifndef CONFIG_SAMA5D3xEK_I2SCHAR_MINOR
# define CONFIG_SAMA5D3xEK_I2SCHAR_MINOR 0
#ifndef CONFIG_SAMA5D3XEK_I2SCHAR_MINOR
# define CONFIG_SAMA5D3XEK_I2SCHAR_MINOR 0
#endif
/****************************************************************************
@ -83,17 +83,17 @@ int i2schar_devinit(void)
* SSC/I2S interface
*/
i2s = sam_ssc_initialize(CONFIG_SAMA5D3xEK_SSC_PORT);
i2s = sam_ssc_initialize(CONFIG_SAMA5D3XEK_SSC_PORT);
if (!i2s)
{
_err("ERROR: Failed to get the SAMA5 SSC/I2S driver for SSC%d\n",
CONFIG_SAMA5D3xEK_SSC_PORT);
CONFIG_SAMA5D3XEK_SSC_PORT);
return -ENODEV;
}
/* Register the I2S character driver at "/dev/i2schar0" */
ret = i2schar_register(i2s, CONFIG_SAMA5D3xEK_I2SCHAR_MINOR);
ret = i2schar_register(i2s, CONFIG_SAMA5D3XEK_I2SCHAR_MINOR);
if (ret < 0)
{
aerr("ERROR: i2schar_register failed: %d\n", ret);

View File

@ -192,7 +192,7 @@ int sam_nand_automount(int minor)
return -ENODEV;
}
#if defined(CONFIG_SAMA5D3xEK_NAND_FTL)
#if defined(CONFIG_SAMA5D3XEK_NAND_FTL)
/* Use the FTL layer to wrap the MTD driver as a block driver */
ret = ftl_initialize(NAND_MINOR, mtd);
@ -202,7 +202,7 @@ int sam_nand_automount(int minor)
return ret;
}
#elif defined(CONFIG_SAMA5D3xEK_NAND_NXFFS)
#elif defined(CONFIG_SAMA5D3XEK_NAND_NXFFS)
/* Initialize to provide NXFFS on the MTD interface */
ret = nxffs_initialize(mtd);

View File

@ -78,19 +78,19 @@
* -----+---+---+----+--------------------
*/
#ifndef CONFIG_SAMA5D3xEK_CHANNEL
#ifndef CONFIG_SAMA5D3XEK_CHANNEL
# if defined(CONFIG_SAMA5_PWM_CHAN0)
# warning Assuming PWM channel 0
# define CONFIG_SAMA5D3xEK_CHANNEL 0
# define CONFIG_SAMA5D3XEK_CHANNEL 0
# elif defined(CONFIG_SAMA5_PWM_CHAN1)
# warning Assuming PWM channel 1
# define CONFIG_SAMA5D3xEK_CHANNEL 1
# define CONFIG_SAMA5D3XEK_CHANNEL 1
# elif defined(CONFIG_SAMA5_PWM_CHAN2)
# warning Assuming PWM channel 2
# define CONFIG_SAMA5D3xEK_CHANNEL 2
# define CONFIG_SAMA5D3XEK_CHANNEL 2
# elif defined(CONFIG_SAMA5_PWM_CHAN3)
# warning Assuming PWM channel 3
# define CONFIG_SAMA5D3xEK_CHANNEL 3
# define CONFIG_SAMA5D3XEK_CHANNEL 3
# endif
#endif
@ -120,7 +120,7 @@ int sam_pwm_setup(void)
{
/* Call sam_pwminitialize() to get an instance of the PWM interface */
pwm = sam_pwminitialize(CONFIG_SAMA5D3xEK_CHANNEL);
pwm = sam_pwminitialize(CONFIG_SAMA5D3XEK_CHANNEL);
if (!pwm)
{
_err("ERROR: Failed to get the SAMA5 PWM lower half\n");

View File

@ -72,14 +72,14 @@
/* SDRAM differences */
#if defined(CONFIG_SAMA5D3xEK_MT47H128M16RT)
#if defined(CONFIG_SAMA5D3XEK_MT47H128M16RT)
/* Used for SDRAM command handshaking */
# define DDR2_BA0 (1 << 26)
# define DDR2_BA1 (1 << 27)
#elif defined(CONFIG_SAMA5D3xEK_MT47H64M16HR)
#elif defined(CONFIG_SAMA5D3XEK_MT47H64M16HR)
/* Used for SDRAM command handshaking */
@ -111,13 +111,13 @@
#define LOOP_GUARD 100
# define CYCLES_TO_COUNT(cycles) (((cycles) / 6) + LOOP_GUARD)
#if defined(CONFIG_SAMA5D3xEK_384MHZ)
#if defined(CONFIG_SAMA5D3XEK_384MHZ)
# define NSEC_TO_COUNT(nsec) ((((nsec) * 1000) / 15625) + LOOP_GUARD)
# define USEC_TO_COUNT(usec) ((((usec) * 1000000) / 15625) + LOOP_GUARD)
#elif defined(CONFIG_SAMA5D3xEK_528MHZ)
#elif defined(CONFIG_SAMA5D3XEK_528MHZ)
# define NSEC_TO_COUNT(nsec) ((((nsec) * 1000) / 11364) + LOOP_GUARD)
# define USEC_TO_COUNT(usec) ((((usec) * 1000000) / 11364) + LOOP_GUARD)
#else /* #elif defined(CONFIG_SAMA5D3xEK_396MHZ) */
#else /* #elif defined(CONFIG_SAMA5D3XEK_396MHZ) */
# define NSEC_TO_COUNT(nsec) ((((nsec) * 1000) / 15152) + LOOP_GUARD)
# define USEC_TO_COUNT(usec) ((((usec) * 1000000) / 15152) + LOOP_GUARD)
#endif
@ -252,7 +252,7 @@ void sam_sdram_config(void)
* Register
*/
#if defined(CONFIG_SAMA5D3xEK_MT47H128M16RT)
#if defined(CONFIG_SAMA5D3XEK_MT47H128M16RT)
/* For MT47H128M16RT
*
@ -280,7 +280,7 @@ void sam_sdram_config(void)
MPDDRC_CR_NDQS | /* Not DQS */
MPDDRC_CR_UNAL; /* upport Unaligned Access */
#elif defined(CONFIG_SAMA5D3xEK_MT47H64M16HR)
#elif defined(CONFIG_SAMA5D3XEK_MT47H64M16HR)
/* For MT47H64M16HR
*
* NC = 10 DDR column bits

View File

@ -46,8 +46,8 @@
# error "Touchscreen support requires CONFIG_INPUT"
#endif
#ifndef CONFIG_SAMA5D3xEK_TSD_DEVMINOR
# define CONFIG_SAMA5D3xEK_TSD_DEVMINOR 0
#ifndef CONFIG_SAMA5D3XEK_TSD_DEVMINOR
# define CONFIG_SAMA5D3XEK_TSD_DEVMINOR 0
#endif
/****************************************************************************
@ -90,11 +90,11 @@ int sam_tsc_setup(int minor)
/* Initialize and register the SPI touchscreen device */
ret = sam_tsd_register(adc, CONFIG_SAMA5D3xEK_TSD_DEVMINOR);
ret = sam_tsd_register(adc, CONFIG_SAMA5D3XEK_TSD_DEVMINOR);
if (ret < 0)
{
ierr("ERROR: Failed to register touchscreen device /dev/input%d: %d\n",
CONFIG_SAMA5D3xEK_TSD_DEVMINOR, ret);
CONFIG_SAMA5D3XEK_TSD_DEVMINOR, ret);
return -ENODEV;
}

View File

@ -50,12 +50,12 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef CONFIG_SAMA5D3xEK_USBHOST_PRIO
# define CONFIG_SAMA5D3xEK_USBHOST_PRIO 50
#ifndef CONFIG_SAMA5D3XEK_USBHOST_PRIO
# define CONFIG_SAMA5D3XEK_USBHOST_PRIO 50
#endif
#ifndef CONFIG_SAMA5D3xEK_USBHOST_STACKSIZE
# define CONFIG_SAMA5D3xEK_USBHOST_STACKSIZE 1024
#ifndef CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE
# define CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE 1024
#endif
#ifdef HAVE_USBDEV
@ -346,8 +346,8 @@ int sam_usbhost_initialize(void)
/* Start a thread to handle device connection. */
pid = kthread_create("OHCI Monitor",
CONFIG_SAMA5D3xEK_USBHOST_PRIO,
CONFIG_SAMA5D3xEK_USBHOST_STACKSIZE,
CONFIG_SAMA5D3XEK_USBHOST_PRIO,
CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE,
(main_t)ohci_waiter, (FAR char * const *)NULL);
if (pid < 0)
{
@ -368,8 +368,8 @@ int sam_usbhost_initialize(void)
/* Start a thread to handle device connection. */
pid = kthread_create("EHCI Monitor", CONFIG_SAMA5D3xEK_USBHOST_PRIO,
CONFIG_SAMA5D3xEK_USBHOST_STACKSIZE,
pid = kthread_create("EHCI Monitor", CONFIG_SAMA5D3XEK_USBHOST_PRIO,
CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (FAR char * const *)NULL);
if (pid < 0)
{

View File

@ -44,8 +44,8 @@
# error AT25 Serial FLASH not supported
#endif
#ifndef CONFIG_SAMA5D3xEK_AT25_FTL
# error AT25 FTL support required (CONFIG_SAMA5D3xEK_AT25_FTL)
#ifndef CONFIG_SAMA5D3XEK_AT25_FTL
# error AT25 FTL support required (CONFIG_SAMA5D3XEK_AT25_FTL)
# undef HAVE_AT25
#endif

View File

@ -62,7 +62,7 @@ uint32_t board_userled_initialize(void)
/* Configure LED PIOs for output */
sam_configpio(PIO_BLUE);
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
sam_configpio(PIO_RED);
#endif
return BOARD_NLEDS;
@ -83,7 +83,7 @@ void board_userled(int led, bool ledon)
ledcfg = PIO_BLUE;
ledon = !ledon;
}
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
else if (led == BOARD_RED)
{
/* High illuminates */
@ -112,7 +112,7 @@ void board_userled_all(uint32_t ledset)
ledon = ((ledset & BOARD_BLUE_BIT) == 0);
sam_piowrite(PIO_BLUE, ledon);
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
/* High illuminates */
ledon = ((ledset & BOARD_RED_BIT) != 0);

View File

@ -104,8 +104,8 @@ static struct sama5d3ek_mwinfo_s g_wm8904info =
.lower =
{
.address = WM8904_I2C_ADDRESS,
.frequency = CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY,
#ifdef CONFIG_SAMA5D3xEK_WM8904_SRCSCK
.frequency = CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY,
#ifdef CONFIG_SAMA5D3XEK_WM8904_SRCSCK
.mclk = BOARD_SLOWCLK_FREQUENCY,
#else
.mclk = BOARD_MAINCK_FREQUENCY,
@ -281,7 +281,7 @@ int sam_wm8904_initialize(int minor)
* that is connected to the WM8904 MCLK.
*/
#ifdef CONFIG_SAMA5D3xEK_WM8904_SRCSCK
#ifdef CONFIG_SAMA5D3XEK_WM8904_SRCSCK
/* Drive the DAC with the slow clock (32.768 KHz).
* The slow clock was enabled in sam_boot.c if needed.
*/

View File

@ -97,27 +97,27 @@
#endif
/* If we are going to mount the NAND, then they user must also have told
* us what to do with it by setting one of CONFIG_SAMA5D3xEK_NAND_FTL or
* CONFIG_SAMA5D3xEK_NAND_NXFFS.
* us what to do with it by setting one of CONFIG_SAMA5D3XEK_NAND_FTL or
* CONFIG_SAMA5D3XEK_NAND_NXFFS.
*/
#ifndef CONFIG_MTD
# undef CONFIG_SAMA5D3xEK_NAND_NXFFS
# undef CONFIG_SAMA5D3xEK_NAND_FTL
# undef CONFIG_SAMA5D3XEK_NAND_NXFFS
# undef CONFIG_SAMA5D3XEK_NAND_FTL
#endif
#if !defined(CONFIG_FS_NXFFS) || !defined(CONFIG_NXFFS_NAND)
# undef CONFIG_SAMA5D3xEK_NAND_NXFFS
# undef CONFIG_SAMA5D3XEK_NAND_NXFFS
#endif
#if !defined(CONFIG_SAMA5D3xEK_NAND_FTL) && !defined(CONFIG_SAMA5D3xEK_NAND_NXFFS)
#if !defined(CONFIG_SAMA5D3XEK_NAND_FTL) && !defined(CONFIG_SAMA5D3XEK_NAND_NXFFS)
# undef HAVE_NAND
#endif
#if defined(CONFIG_SAMA5D3xEK_NAND_FTL) && defined(CONFIG_SAMA5D3xEK_NAND_NXFFS)
# warning Both CONFIG_SAMA5D3xEK_NAND_FTL and CONFIG_SAMA5D3xEK_NAND_NXFFS are set
# warning Ignoring CONFIG_SAMA5D3xEK_NAND_NXFFS
# undef CONFIG_SAMA5D3xEK_NAND_NXFFS
#if defined(CONFIG_SAMA5D3XEK_NAND_FTL) && defined(CONFIG_SAMA5D3XEK_NAND_NXFFS)
# warning Both CONFIG_SAMA5D3XEK_NAND_FTL and CONFIG_SAMA5D3XEK_NAND_NXFFS are set
# warning Ignoring CONFIG_SAMA5D3XEK_NAND_NXFFS
# undef CONFIG_SAMA5D3XEK_NAND_NXFFS
#endif
/* AT25 Serial FLASH */
@ -132,7 +132,7 @@
* asked to mount the AT25 part
*/
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_SAMA5D3xEK_AT25_BLOCKMOUNT)
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_SAMA5D3XEK_AT25_BLOCKMOUNT)
# undef HAVE_AT25
#endif
@ -141,17 +141,17 @@
*/
#ifndef CONFIG_FS_NXFFS
# undef CONFIG_SAMA5D3xEK_AT25_NXFFS
# undef CONFIG_SAMA5D3XEK_AT25_NXFFS
#endif
#if !defined(CONFIG_SAMA5D3xEK_AT25_FTL) && !defined(CONFIG_SAMA5D3xEK_AT25_NXFFS)
#if !defined(CONFIG_SAMA5D3XEK_AT25_FTL) && !defined(CONFIG_SAMA5D3XEK_AT25_NXFFS)
# undef HAVE_AT25
#endif
#if defined(CONFIG_SAMA5D3xEK_AT25_FTL) && defined(CONFIG_SAMA5D3xEK_AT25_NXFFS)
# warning Both CONFIG_SAMA5D3xEK_AT25_FTL and CONFIG_SAMA5D3xEK_AT25_NXFFS are set
# warning Ignoring CONFIG_SAMA5D3xEK_AT25_NXFFS
# undef CONFIG_SAMA5D3xEK_AT25_NXFFS
#if defined(CONFIG_SAMA5D3XEK_AT25_FTL) && defined(CONFIG_SAMA5D3XEK_AT25_NXFFS)
# warning Both CONFIG_SAMA5D3XEK_AT25_FTL and CONFIG_SAMA5D3XEK_AT25_NXFFS are set
# warning Ignoring CONFIG_SAMA5D3XEK_AT25_NXFFS
# undef CONFIG_SAMA5D3XEK_AT25_NXFFS
#endif
/* AT24 Serial EEPROM
@ -182,7 +182,7 @@
* asked to mount the AT25 part
*/
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_SAMA5D3xEK_AT24_BLOCKMOUNT)
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_SAMA5D3XEK_AT24_BLOCKMOUNT)
# undef HAVE_AT24
#endif
@ -191,17 +191,17 @@
*/
#ifndef CONFIG_FS_NXFFS
# undef CONFIG_SAMA5D3xEK_AT24_NXFFS
# undef CONFIG_SAMA5D3XEK_AT24_NXFFS
#endif
#if !defined(CONFIG_SAMA5D3xEK_AT24_FTL) && !defined(CONFIG_SAMA5D3xEK_AT24_NXFFS)
#if !defined(CONFIG_SAMA5D3XEK_AT24_FTL) && !defined(CONFIG_SAMA5D3XEK_AT24_NXFFS)
# undef HAVE_AT24
#endif
#if defined(CONFIG_SAMA5D3xEK_AT24_FTL) && defined(CONFIG_SAMA5D3xEK_AT24_NXFFS)
# warning Both CONFIG_SAMA5D3xEK_AT24_FTL and CONFIG_SAMA5D3xEK_AT24_NXFFS are set
# warning Ignoring CONFIG_SAMA5D3xEK_AT24_NXFFS
# undef CONFIG_SAMA5D3xEK_AT24_NXFFS
#if defined(CONFIG_SAMA5D3XEK_AT24_FTL) && defined(CONFIG_SAMA5D3XEK_AT24_NXFFS)
# warning Both CONFIG_SAMA5D3XEK_AT24_FTL and CONFIG_SAMA5D3XEK_AT24_NXFFS are set
# warning Ignoring CONFIG_SAMA5D3XEK_AT24_NXFFS
# undef CONFIG_SAMA5D3XEK_AT24_NXFFS
#endif
/* Assign minor device numbers. For example, if we also use MINOR number 0
@ -338,15 +338,15 @@
# undef HAVE_WM8904
# endif
# ifndef CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY
# ifndef CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY
# warning Defaulting to maximum WM8904 I2C frequency
# define CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY 400000
# define CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY 400000
# endif
# if CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY > 400000
# if CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY > 400000
# warning WM8904 I2C frequency cannot exceed 400KHz
# undef CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY
# define CONFIG_SAMA5D3xEK_WM8904_I2CFREQUENCY 400000
# undef CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY
# define CONFIG_SAMA5D3XEK_WM8904_I2CFREQUENCY 400000
# endif
#endif
@ -354,7 +354,7 @@
#define OV2640_BUS 1
#ifndef CONFIG_SAMA5D3xEK_OV2640_DEMO
#ifndef CONFIG_SAMA5D3XEK_OV2640_DEMO
# undef HAVE_CAMERA
#endif
@ -401,7 +401,7 @@
#define PIO_BLUE (PIO_OUTPUT | PIO_CFG_PULLUP | PIO_OUTPUT_SET | \
PIO_PORT_PIOE | PIO_PIN25)
#ifndef CONFIG_SAMA5D3xEK_NOREDLED
#ifndef CONFIG_SAMA5D3XEK_NOREDLED
# define PIO_RED (PIO_OUTPUT | PIO_CFG_PULLUP | PIO_OUTPUT_CLEAR | \
PIO_PORT_PIOE | PIO_PIN24)
#endif