diff options
Diffstat (limited to 'bsp/phytium')
28 files changed, 90 insertions, 90 deletions
diff --git a/bsp/phytium/aarch32/Kconfig b/bsp/phytium/aarch32/Kconfig index cc9a3fe042..8293bc245d 100644 --- a/bsp/phytium/aarch32/Kconfig +++ b/bsp/phytium/aarch32/Kconfig @@ -38,14 +38,14 @@ menu "Standalone Setting" config TARGET_ARMV8_AARCH32 bool "Armv8 Aarch32" default y - + config USE_AARCH64_L1_TO_AARCH32 bool prompt "Use Aarch64 L1 to Aarch32 code" default y help Use the Aarch64 to Aarch32 mode function - + source "$STANDALONE_DIR/board/Kconfig" source "$STANDALONE_DIR/drivers/Kconfig" source "$STANDALONE_DIR/common/Kconfig" diff --git a/bsp/phytium/aarch32/applications/SConscript b/bsp/phytium/aarch32/applications/SConscript index 01eb940dfb..5206463fe9 100644 --- a/bsp/phytium/aarch32/applications/SConscript +++ b/bsp/phytium/aarch32/applications/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/phytium/aarch64/applications/SConscript b/bsp/phytium/aarch64/applications/SConscript index 01eb940dfb..5206463fe9 100644 --- a/bsp/phytium/aarch64/applications/SConscript +++ b/bsp/phytium/aarch64/applications/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/phytium/board/SConscript b/bsp/phytium/board/SConscript index c86f3413fb..0cf8e84721 100644 --- a/bsp/phytium/board/SConscript +++ b/bsp/phytium/board/SConscript @@ -2,21 +2,21 @@ from building import * cwd = GetCurrentDir() src = Glob('*.S') -src += Glob('*.c') +src += Glob('*.c') if GetDepend(['TARGET_E2000']): if GetDepend(['TARGET_E2000Q']): - src += Glob(cwd + '/e2000/q/parameters.c') + src += Glob(cwd + '/e2000/q/parameters.c') elif GetDepend(['TARGET_E2000D']): - src += Glob(cwd + '/e2000/d/parameters.c') + src += Glob(cwd + '/e2000/d/parameters.c') elif GetDepend(['TARGET_E2000S']): - src += Glob(cwd + '/e2000/s/parameters.c') + src += Glob(cwd + '/e2000/s/parameters.c') if GetDepend(['TARGET_F2000_4']): - src += Glob(cwd + '/d2000/parameters.c') + src += Glob(cwd + '/d2000/parameters.c') if GetDepend(['TARGET_D2000']): - src += Glob(cwd + '/ft2004/parameters.c') + src += Glob(cwd + '/ft2004/parameters.c') CPPPATH = [cwd] diff --git a/bsp/phytium/libraries/SConscript b/bsp/phytium/libraries/SConscript index afb3769ac9..e387424fab 100644 --- a/bsp/phytium/libraries/SConscript +++ b/bsp/phytium/libraries/SConscript @@ -19,54 +19,54 @@ if GetDepend(['TARGET_ARMV8_AARCH32']): path += [STANDALONE_DIR + '/arch/armv8/aarch32'] elif GetDepend(['TARGET_ARMV8_AARCH64']): src += Glob(STANDALONE_DIR+'/arch/armv8/aarch64/*.c') + Glob(STANDALONE_DIR+'/arch/armv8/aarch64/gcc/*.S') - path += [STANDALONE_DIR + '/arch/armv8/aarch64'] + path += [STANDALONE_DIR + '/arch/armv8/aarch64'] # board src += Glob(STANDALONE_DIR+'/board/common/*.c') + Glob(STANDALONE_DIR+'/board/common/*.S') -path += [STANDALONE_DIR + '/board/common'] +path += [STANDALONE_DIR + '/board/common'] if GetDepend(['TARGET_F2000_4']): src += Glob(STANDALONE_DIR+'/board/ft2004/*.c') - path += [STANDALONE_DIR + '/board/ft2004'] + path += [STANDALONE_DIR + '/board/ft2004'] if GetDepend(['TARGET_E2000']): src += Glob(STANDALONE_DIR+'/board/e2000/*.c') - path += [STANDALONE_DIR + '/board/e2000'] + path += [STANDALONE_DIR + '/board/e2000'] if GetDepend(['TARGET_E2000Q']): src += Glob(STANDALONE_DIR+'/board/e2000/q/*.c') - path += [STANDALONE_DIR + '/board/e2000/q'] + path += [STANDALONE_DIR + '/board/e2000/q'] if GetDepend(['TARGET_E2000D']): src += Glob(STANDALONE_DIR+'/board/e2000/d/*.c') - path += [STANDALONE_DIR + '/board/e2000/d'] - + path += [STANDALONE_DIR + '/board/e2000/d'] + if GetDepend(['ARGET_E2000S']): src += Glob(STANDALONE_DIR+'/board/e2000/s/*.c') - path += [STANDALONE_DIR + '/board/e2000/s'] - + path += [STANDALONE_DIR + '/board/e2000/s'] + if GetDepend(['TARGET_D2000']): src += Glob(STANDALONE_DIR+'/board/d2000/*.c') - path += [STANDALONE_DIR + '/board/d2000'] + path += [STANDALONE_DIR + '/board/d2000'] # driver ## serial if GetDepend(['ENABLE_Pl011_UART']): src += Glob(STANDALONE_DIR+'/drivers/serial/fpl011/*.c') - path += [STANDALONE_DIR + '/drivers/serial/fpl011'] + path += [STANDALONE_DIR + '/drivers/serial/fpl011'] ## gicv3 if GetDepend(['ENABLE_GICV3']): src += Glob(STANDALONE_DIR+'/drivers/gic/fgic/*.c') + Glob(STANDALONE_DIR+'/drivers/gic/fgic/*.S') - path += [STANDALONE_DIR + '/drivers/gic/fgic'] + path += [STANDALONE_DIR + '/drivers/gic/fgic'] # phytium ports rt-thread drivers PORT_DRV_DIR = cwd + '/drivers' src += Glob(PORT_DRV_DIR + '/*.S') -src += Glob(PORT_DRV_DIR + '/*.c') +src += Glob(PORT_DRV_DIR + '/*.c') ASFLAGS = '' group = DefineGroup('FT_DRIVER', src, depend=[ diff --git a/bsp/phytium/libraries/drivers/Kconfig b/bsp/phytium/libraries/drivers/Kconfig index 3e264eedfd..9714fdd098 100644 --- a/bsp/phytium/libraries/drivers/Kconfig +++ b/bsp/phytium/libraries/drivers/Kconfig @@ -11,7 +11,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_UART1 bool "Enable UART1" default y - + config RT_USING_UART0 bool "Enable UART0" default n diff --git a/bsp/phytium/libraries/standalone/board/Kconfig b/bsp/phytium/libraries/standalone/board/Kconfig index c8fee782a4..f0a7ec4b70 100644 --- a/bsp/phytium/libraries/standalone/board/Kconfig +++ b/bsp/phytium/libraries/standalone/board/Kconfig @@ -11,15 +11,15 @@ menu "Board Configuration" config TARGET_D2000 bool "D2000" - + config TARGET_E2000Q bool "E2000Q" select TARGET_E2000 - + config TARGET_E2000D bool "E2000D" select TARGET_E2000 - + config TARGET_E2000S bool "E2000S" select TARGET_E2000 @@ -43,7 +43,7 @@ menu "Board Configuration" config DEFAULT_DEBUG_PRINT_UART2 bool "Use uart2" endchoice # DEBUG_PRINT_UART - + endmenu diff --git a/bsp/phytium/libraries/standalone/common/Kconfig b/bsp/phytium/libraries/standalone/common/Kconfig index 3ffaf15c65..aa2fd1c471 100644 --- a/bsp/phytium/libraries/standalone/common/Kconfig +++ b/bsp/phytium/libraries/standalone/common/Kconfig @@ -31,7 +31,7 @@ config USE_DEFAULT_INTERRUPT_CONFIG bool prompt "Use default interrupt configuration" default y - help + help "If this option is not selected, core0 is used as the main core by default and all interrupt driver modules are initialized. Non-0 core initializes only the necessary interrupt driver modules. If this option is selected, the developer needs to initiate each module independently " if USE_DEFAULT_INTERRUPT_CONFIG choice INTERRUPT_ROLE_SELECT @@ -41,8 +41,8 @@ config USE_DEFAULT_INTERRUPT_CONFIG "Select Interrupt role" config INTERRUPT_ROLE_MASTER - bool "use master role" - + bool "use master role" + config INTERRUPT_ROLE_SLAVE bool "use slave role" @@ -61,4 +61,4 @@ config BOOTUP_DEBUG_PRINTS default n help Enable Bootup debug printing - + diff --git a/bsp/phytium/libraries/standalone/drivers/Kconfig b/bsp/phytium/libraries/standalone/drivers/Kconfig index 69f79376af..27388c475c 100644 --- a/bsp/phytium/libraries/standalone/drivers/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/Kconfig @@ -27,7 +27,7 @@ config USE_GIC default y help Include Generic Interrupt Controllor - + if USE_GIC source "$STANDALONE_DIR/drivers/gic/Kconfig" endif @@ -38,7 +38,7 @@ config USE_SERIAL default n help Include serial modules and enable serial - + if USE_SERIAL source "$STANDALONE_DIR/drivers/serial/Kconfig" endif @@ -150,18 +150,18 @@ config USE_DMA prompt "Use DMA" default n help - Include DMA + Include DMA if USE_DMA source "$STANDALONE_DIR/drivers/dma/Kconfig" endif - + config USE_NAND bool prompt "Use NAND" help Include NAND - + if USE_NAND source "$STANDALONE_DIR/drivers/nand/Kconfig" endif @@ -187,7 +187,7 @@ config USE_SATA if USE_SATA source "$STANDALONE_DIR/drivers/sata/Kconfig" endif - + config USE_USB bool prompt "Use USB" @@ -197,8 +197,8 @@ config USE_USB if USE_USB source "$STANDALONE_DIR/drivers/usb/Kconfig" - endif - + endif + config USE_ADC bool prompt "Use ADC" @@ -209,7 +209,7 @@ config USE_ADC if USE_ADC source "$STANDALONE_DIR/drivers/adc/Kconfig" endif - + config USE_PWM bool prompt "Use PWM" diff --git a/bsp/phytium/libraries/standalone/drivers/adc/Kconfig b/bsp/phytium/libraries/standalone/drivers/adc/Kconfig index 58f7dd8a6f..15ffeaa8fe 100644 --- a/bsp/phytium/libraries/standalone/drivers/adc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/adc/Kconfig @@ -4,7 +4,7 @@ menu "ADC Configuration" bool prompt "Use FADC" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/can/Kconfig b/bsp/phytium/libraries/standalone/drivers/can/Kconfig index a6b59e8753..c3e16b4834 100644 --- a/bsp/phytium/libraries/standalone/drivers/can/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/can/Kconfig @@ -13,6 +13,6 @@ menu "CAN Configuration" help use canfd protocol endif - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/dma/Kconfig b/bsp/phytium/libraries/standalone/drivers/dma/Kconfig index 9ed7f94848..16336f66e1 100644 --- a/bsp/phytium/libraries/standalone/drivers/dma/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/dma/Kconfig @@ -2,9 +2,9 @@ config ENABLE_FGDMA bool prompt "Use FGDMA" - default n + default n config ENABLE_FDDMA bool prompt "Use FDDMA" - default n
\ No newline at end of file + default n diff --git a/bsp/phytium/libraries/standalone/drivers/eth/Kconfig b/bsp/phytium/libraries/standalone/drivers/eth/Kconfig index f041d27764..c9531733fe 100644 --- a/bsp/phytium/libraries/standalone/drivers/eth/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/eth/Kconfig @@ -4,11 +4,11 @@ menu "Eth Configuration" bool prompt "Use FXMAC" default n - + config ENABLE_FGMAC bool prompt "Use FGMAC" - default n + default n if ENABLE_FGMAC source "$STANDALONE_DIR/drivers/eth/fgmac/Kconfig" @@ -17,6 +17,6 @@ menu "Eth Configuration" if ENABLE_FXMAC source "$STANDALONE_DIR/drivers/eth/fxmac/Kconfig" endif - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/gic/Kconfig b/bsp/phytium/libraries/standalone/drivers/gic/Kconfig index 9946994e6d..1bf1dc91df 100644 --- a/bsp/phytium/libraries/standalone/drivers/gic/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/gic/Kconfig @@ -3,4 +3,4 @@ prompt "Use Generic Interrupt Controller v3" default y -
\ No newline at end of file + diff --git a/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig b/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig index 1195673525..6f34251dd2 100644 --- a/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig @@ -4,5 +4,5 @@ config USE_FI2C default n help Include FI2C driver component - -
\ No newline at end of file + + diff --git a/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig b/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig index 2012b165d2..92b76a91f6 100644 --- a/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig @@ -5,5 +5,5 @@ config ENABLE_FSEMAPHORE depends on TARGET_E2000S || TARGET_E2000D || TARGET_E2000Q help Select FSemaphore driver component - -
\ No newline at end of file + + diff --git a/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig b/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig index 4bf40f4a68..31805318a8 100644 --- a/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig @@ -15,5 +15,5 @@ config ENABLE_FSDIO depends on TARGET_E2000S || TARGET_E2000D || TARGET_E2000Q help Select FSdio driver component - -
\ No newline at end of file + + diff --git a/bsp/phytium/libraries/standalone/drivers/nand/Kconfig b/bsp/phytium/libraries/standalone/drivers/nand/Kconfig index 4638b049f9..2740b716bf 100644 --- a/bsp/phytium/libraries/standalone/drivers/nand/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/nand/Kconfig @@ -1,33 +1,33 @@ menu "NAND Configuration" menu "FNAND ip config" - choice - prompt "choice fnand driver" + choice + prompt "choice fnand driver" config ENABLE_FNAND bool prompt "Use FNAND" - - if ENABLE_FNAND - config FNAND_COMMON_DEBUG_EN - bool - prompt "Use FNAND common mode debug" - - config FNAND_DMA_DEBUG_EN - bool - prompt "Use FNAND DMA mode debug" - - config FNAND_TOGGLE_DEBUG_EN - bool - prompt "Use FNAND toggle mode debug" - config FNAND_ONFI_DEBUG_EN - bool - prompt "Use FNAND onfi mode debug" + if ENABLE_FNAND + config FNAND_COMMON_DEBUG_EN + bool + prompt "Use FNAND common mode debug" - endif + config FNAND_DMA_DEBUG_EN + bool + prompt "Use FNAND DMA mode debug" - endchoice - endmenu + config FNAND_TOGGLE_DEBUG_EN + bool + prompt "Use FNAND toggle mode debug" + + config FNAND_ONFI_DEBUG_EN + bool + prompt "Use FNAND onfi mode debug" + + endif + + endchoice + endmenu endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig b/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig index c4476fa491..5d00a5bed0 100644 --- a/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig @@ -4,6 +4,6 @@ menu "Pcie Configuration" bool prompt "Use F_PCIE" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig b/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig index 02c30d70d6..0d8106298f 100644 --- a/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig @@ -3,5 +3,5 @@ config ENABLE_FGPIO bool prompt "Use FGPIO" default n - - + + diff --git a/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig b/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig index 5a6185cf4e..992039d544 100644 --- a/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig @@ -3,7 +3,7 @@ menu "FPWM Configuration" bool prompt "Use FPWM" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig b/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig index a16b375482..7e7a9e54c2 100644 --- a/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig @@ -2,7 +2,7 @@ menu "Qspi Configuration" config USE_FQSPI bool prompt "Use FQSPI" - default n - + default n + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig b/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig index 63cedcbe5c..9919d9d29f 100644 --- a/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig @@ -3,7 +3,7 @@ menu "FRTC Configuration" bool prompt "Use FRTC" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/sata/Kconfig b/bsp/phytium/libraries/standalone/drivers/sata/Kconfig index f2c51a66d4..594bd36606 100644 --- a/bsp/phytium/libraries/standalone/drivers/sata/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/sata/Kconfig @@ -3,7 +3,7 @@ menu "FSATA Configuration" bool prompt "Use FSATA" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/serial/Kconfig b/bsp/phytium/libraries/standalone/drivers/serial/Kconfig index e84c41301c..d01d698f98 100644 --- a/bsp/phytium/libraries/standalone/drivers/serial/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/serial/Kconfig @@ -4,7 +4,7 @@ menu "Usart Configuration" bool prompt "Use Pl011 uart" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/spi/Kconfig b/bsp/phytium/libraries/standalone/drivers/spi/Kconfig index 0e35640055..2133ced9fb 100644 --- a/bsp/phytium/libraries/standalone/drivers/spi/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/spi/Kconfig @@ -7,5 +7,5 @@ config USE_FSPIM depends on TARGET_F2000_4 || TARGET_D2000 || TARGET_E2000S || TARGET_E2000D || TARGET_E2000Q help Select FSPIM driver component - - + + diff --git a/bsp/phytium/libraries/standalone/drivers/usb/Kconfig b/bsp/phytium/libraries/standalone/drivers/usb/Kconfig index 18d0f459d8..3ecf7c474c 100644 --- a/bsp/phytium/libraries/standalone/drivers/usb/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/usb/Kconfig @@ -5,5 +5,5 @@ config ENABLE_USB_FXHCI depends on USE_USB help Select USB FUSB_HC_XHCI Host driver component - - + + diff --git a/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig b/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig index 5da173ab68..5d2860d27b 100644 --- a/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig @@ -4,7 +4,7 @@ menu "FWDT Configuration" bool prompt "Use FWDT" default n - + endmenu |
