mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Merged in alinjerpelea/nuttx (pull request #967)
group boards based on chip
* a1x: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* am335x: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* c5471: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* scx56xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* dm320: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* efm32: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* imx6: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* imxrt: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* kinetis: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* kl: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lc823450: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc17xx_40xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc214x: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc2378: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc31xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc43xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc54xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* max326xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* moxart: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nrf52: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nuc1xx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam34: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sama5: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* samd2l2: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* samd5e5: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* samv7: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f0l0g0: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f7: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32h7: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32l4: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* str71x: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* tiva: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* tms570: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* xmc4: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* p112: typo fix
this boars is a z80 board and was moved to the wrong arch
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* avr: at32uc3: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* avr: at90usb: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* avr: atmega: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* hc: mcs92s12ne64: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* mips: pic32mx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* mips: pic32mz: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* misoc: lm32: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* or1k: mor1kx: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* renesas: m32262f8: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* renesas: sh7032: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* risk-v: gap8: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* risk-v: nr5m100: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sim: sim: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* x86: qemu: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* xtensa: esp32: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* z16: z16f2811: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* z80: ez80: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* z80: z180: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* z80: z80: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* z80: z8: group boards based on chip
All boards based on the same chip are moved to the same folder
following the arch layout <arch>/<chip>/<board>.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* tools: update tools for boards based on chip
This patch updates only the linux tools
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* pcduino-a10: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* beaglebone-black: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* c5471evm: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* spresense: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* ntosd-dm320: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* efm32-g8xx-stk: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* efm32gg-stk3700: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-efm32g880f128-stk: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sabre-6quad: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* imxrt1050-evk: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* imxrt1060-evk: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* freedom-k28f: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* freedom-k64f: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* freedom-k66f: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* kwikstik-k40: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* teensy-3.x: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* twr-k60n512: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* twr-k64f120m: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* freedom-kl25z: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* freedom-kl26z: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* teensy-lc: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lc823450: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lincoln60: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc4088-devkit: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc4088-quickstart: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpcxpresso-lpc1768: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* mbed: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* mcb1700: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-lpc1766stk: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* open1788: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* pnev5180b: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* u-blox-c027: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* zkit-arm-1769: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* mcu123-lpc214x: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* zp214xpa: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-lpc2378: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* ea3131: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* ea3152: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-lpc-h3131: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* bambino-200e: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc4330-xplorer: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc4337-ws: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc4337-evb: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpc4370-link2: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lpcxpresso-lpc54628: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* max32660-evsys: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* moxa: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nrf52-generic: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nutiny-nuc120: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arduino-due: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* flipnclick-sam3x: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam3u-ek: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam4cmp-db: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam4e-ek: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam4l-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam4s-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sam4s-xplained-pro: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sama5d2-xult: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sama5d3-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sama5d3x-ek: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* sama5d4-ek: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* samd20-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* samd21-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* saml21-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* metro-m4: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* same70-xplained: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* same71-xult: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* axoloti: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* clicker2-stm32: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* cloudctrl: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* fire-stm32v2: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* hymini-stm32v: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* maple: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* mikroe-stm32f4: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f103rb: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f207zg: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f302r8: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f303re: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f303ze: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f334r8: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f410rb: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f446re: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f4x1re: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-1152re: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32-e407: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32-h405: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32-h407: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32-p107: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32-p207: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32-p407: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-stm32: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* omnibusf4: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* photon: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* shenzou: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm3210e-eval: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm3220g-eval: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm3240g-eval: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32_tiny: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32butterfly2: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f103-minimum: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f334-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f3discovery: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f411e-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f429i-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f4discovery: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32ldiscovery: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32vldiscovery: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* viewtool-stm32f107: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* b-l072z-lrwan1: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f072rb: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f091rc: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-f071rg: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-l073rz: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f051-discovery: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f072-discovery: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-144: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f746-ws: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f746g-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32f746g-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-h743zi: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* b-l475e-iot01a: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-l432kc: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-l432re: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-l476rg: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* nucleo-l496zg: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32l476-mdk: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32l476vg-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* stm32l4r9ai-disco: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* olimex-strp711: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* dk-tm4c129x: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* eagle100: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* ekk-lm3s9b96: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* launchxl-cc1310: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* launchxl-cc1312r1: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lm3s6432-s2e: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lm3s6965-ek: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lm3s8962-ek: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lm4f120-launchpad: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lm4c123g-launchpad: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* lm4c1294-launchpad: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* launchxl-tms57004: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* tms570ls31x-usb-kit: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* xmc4500-relax: defconfig update
add ARCH_CHIP to defconfig
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* zp214xpa: typo fix
add missing tools/oocd.sh
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
committed by
Gregory Nutt
parent
a1f1adb878
commit
1358e829ad
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
if ARCH_BOARD_SABRE6QUAD
|
||||
endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||
#
|
||||
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||
# modifications.
|
||||
#
|
||||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||
# CONFIG_NSH_DISABLE_DATE is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="sabre-6quad"
|
||||
CONFIG_ARCH_BOARD_SABRE_6QUAD=y
|
||||
CONFIG_ARCH_BUTTONS=y
|
||||
CONFIG_ARCH_CHIP="imx6"
|
||||
CONFIG_ARCH_CHIP_IMX6=y
|
||||
CONFIG_ARCH_CHIP_IMX6_6QUAD=y
|
||||
CONFIG_ARCH_INTERRUPTSTACK=2048
|
||||
CONFIG_ARCH_IRQBUTTONS=y
|
||||
CONFIG_ARCH_LOWVECTORS=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=99369
|
||||
CONFIG_BOOT_RUNFROMSDRAM=y
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEV_ZERO=y
|
||||
CONFIG_FS_PROCFS=y
|
||||
CONFIG_HAVE_CXX=y
|
||||
CONFIG_HAVE_CXXINITIALIZE=y
|
||||
CONFIG_HOST_WINDOWS=y
|
||||
CONFIG_IMX6_UART1=y
|
||||
CONFIG_IMX_DDR_SIZE=1073741824
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_MAX_TASKS=16
|
||||
CONFIG_MAX_WDOGPARMS=2
|
||||
CONFIG_NFILE_DESCRIPTORS=8
|
||||
CONFIG_NFILE_STREAMS=8
|
||||
CONFIG_NSH_ARCHINIT=y
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_FILEIOSIZE=512
|
||||
CONFIG_NSH_READLINE=y
|
||||
CONFIG_PREALLOC_MQ_MSGS=4
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
CONFIG_RAMLOG=y
|
||||
CONFIG_RAMLOG_BUFSIZE=16384
|
||||
CONFIG_RAMLOG_SYSLOG=y
|
||||
CONFIG_RAM_SIZE=1073741824
|
||||
CONFIG_RAM_START=0x10000000
|
||||
CONFIG_RAM_VSTART=0x10000000
|
||||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_SCHED_HPWORK=y
|
||||
CONFIG_SCHED_HPWORKPRIORITY=192
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_START_MONTH=3
|
||||
CONFIG_START_YEAR=2016
|
||||
CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_SYSTEM_NSH_CXXINITIALIZE=y
|
||||
CONFIG_UART1_SERIAL_CONSOLE=y
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||
#
|
||||
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||
# modifications.
|
||||
#
|
||||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||
# CONFIG_NSH_DISABLE_DATE is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="sabre-6quad"
|
||||
CONFIG_ARCH_BOARD_SABRE_6QUAD=y
|
||||
CONFIG_ARCH_BUTTONS=y
|
||||
CONFIG_ARCH_CHIP="imx6"
|
||||
CONFIG_ARCH_CHIP_IMX6=y
|
||||
CONFIG_ARCH_CHIP_IMX6_6QUAD=y
|
||||
CONFIG_ARCH_INTERRUPTSTACK=2048
|
||||
CONFIG_ARCH_IRQBUTTONS=y
|
||||
CONFIG_ARCH_LOWVECTORS=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=99369
|
||||
CONFIG_BOOT_RUNFROMSDRAM=y
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEV_ZERO=y
|
||||
CONFIG_FS_PROCFS=y
|
||||
CONFIG_HAVE_CXX=y
|
||||
CONFIG_HAVE_CXXINITIALIZE=y
|
||||
CONFIG_HOST_WINDOWS=y
|
||||
CONFIG_IMX6_UART1=y
|
||||
CONFIG_IMX_DDR_SIZE=1073741824
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_MAX_WDOGPARMS=2
|
||||
CONFIG_NFILE_DESCRIPTORS=8
|
||||
CONFIG_NFILE_STREAMS=8
|
||||
CONFIG_NSH_ARCHINIT=y
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_FILEIOSIZE=512
|
||||
CONFIG_NSH_READLINE=y
|
||||
CONFIG_PREALLOC_MQ_MSGS=4
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
CONFIG_RAMLOG=y
|
||||
CONFIG_RAMLOG_BUFSIZE=16384
|
||||
CONFIG_RAMLOG_SYSLOG=y
|
||||
CONFIG_RAM_SIZE=1073741824
|
||||
CONFIG_RAM_START=0x10000000
|
||||
CONFIG_RAM_VSTART=0x10000000
|
||||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_SCHED_HPWORK=y
|
||||
CONFIG_SCHED_HPWORKPRIORITY=192
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_SMP=y
|
||||
CONFIG_START_MONTH=3
|
||||
CONFIG_START_YEAR=2016
|
||||
CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_SYSTEM_NSH_CXXINITIALIZE=y
|
||||
CONFIG_TESTING_SMP=y
|
||||
CONFIG_UART1_SERIAL_CONSOLE=y
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
@@ -0,0 +1,166 @@
|
||||
/************************************************************************************
|
||||
* boards/arm/imx6/sabre-6quad/include/board.h
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_ARM_IMX6_SABRE_6QUAD_INCLUDE_BOARD_H
|
||||
#define __BOARDS_ARM_IMX6_SABRE_6QUAD_INCLUDE_BOARD_H
|
||||
|
||||
/************************************************************************************
|
||||
* Included Files
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
/* Clocking *************************************************************************/
|
||||
/* The Sabre-6Quad board has two crystals:
|
||||
*
|
||||
* Y1 24 MHz CPU_XTALI/CPU_XTALO
|
||||
* QZ500 32.768 KHz RTC_XTALI/RTC_XTALO
|
||||
*/
|
||||
|
||||
#define BOARD_CPUXTAL_FREQUENCY 24000000
|
||||
#define BAORD_RTCXTAL_FREQUENCY 32768
|
||||
|
||||
/* Clocking will be configured at 792 MHz initially when started via U-Boot. The
|
||||
* Linux kernel will use the CPU frequency scaling code which will switch the
|
||||
* processor frequency between 400 MHz and 1GHz based on load and temperature.
|
||||
*
|
||||
* These are the frequencies reported with U-Boot starts up:
|
||||
*
|
||||
* mx6q pll1 : 792MHz
|
||||
* mx6q pll2 : 528MHz
|
||||
* mx6q pll3 : 480MHz
|
||||
* mx6q pll8 : 50MHz
|
||||
*
|
||||
* ipg clock : 66000000Hz
|
||||
* ipg per clock : 66000000Hz
|
||||
* uart clock : 80000000Hz
|
||||
* cspi clock : 60000000Hz
|
||||
* ahb clock : 132000000Hz
|
||||
* axi clock : 264000000Hz
|
||||
* emi_slow clock : 29333333Hz
|
||||
* ddr clock : 528000000Hz
|
||||
* usdhc1 clock : 198000000Hz
|
||||
* usdhc2 clock : 198000000Hz
|
||||
* usdhc3 clock : 198000000Hz
|
||||
* usdhc4 clock : 198000000Hz
|
||||
* nfc clock : 24000000Hz
|
||||
*
|
||||
* For now, NuttX simply leaves the clocking at 792MHz.
|
||||
*/
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
/* LEDs
|
||||
*
|
||||
* A single LED is available driven GPIO1_IO02. On the schematic this is
|
||||
* USR_DEF_RED_LED signal to pin T1 (GPIO_2). This signal is shared with KEY_ROW6
|
||||
* (ALT2). A high value illuminates the LED.
|
||||
*/
|
||||
|
||||
/* LED index values for use with board_userled() */
|
||||
|
||||
#define BOARD_LED 0
|
||||
#define BOARD_NLEDS 1
|
||||
|
||||
/* LED bits for use with board_userled_all() */
|
||||
|
||||
#define BOARD_LED_BIT (1 << BOARD_LED)
|
||||
|
||||
/* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
|
||||
* defined. In that case, the usage by the board port is defined in
|
||||
* include/board.h and src/sam_autoleds.c. The LEDs are used to encode
|
||||
* OS-related events as follows:
|
||||
*
|
||||
* ---------------------- ---------------------------- ------
|
||||
* SYMBOL Meaning LED
|
||||
* ---------------------- ---------------------------- ------ */
|
||||
|
||||
#define LED_STARTED 0 /* NuttX has been started OFF */
|
||||
#define LED_HEAPALLOCATE 0 /* Heap has been allocated OFF */
|
||||
#define LED_IRQSENABLED 0 /* Interrupts enabled OFF */
|
||||
#define LED_STACKCREATED 1 /* Idle stack created ON */
|
||||
#define LED_INIRQ 2 /* In an interrupt N/C */
|
||||
#define LED_SIGNAL 2 /* In a signal handler N/C */
|
||||
#define LED_ASSERTION 2 /* An assertion failed N/C */
|
||||
#define LED_PANIC 3 /* The system has crashed FLASH */
|
||||
#undef LED_IDLE /* MCU is is sleep mode Not used */
|
||||
|
||||
/* Thus is LED is statically on, NuttX has successfully booted and is,
|
||||
* apparently, running normally. If LED is flashing at approximately
|
||||
* 2Hz, then a fatal error has been detected and the system has halted.
|
||||
*/
|
||||
|
||||
/* Button definitions ***************************************************************/
|
||||
|
||||
/* GPIO Disambiguation **************************************************************/
|
||||
/* A DEBUG VCOM is available MICRO USB AB 5 J509. This corresponds to UART1 from
|
||||
* the i.MX6. UART1 connects to J509 via the CSIO_DAT10 and CSIO_DAT11 pins:
|
||||
*/
|
||||
|
||||
#define GPIO_UART1_RX_DATA GPIO_UART1_RX_DATA_2
|
||||
#define GPIO_UART1_TX_DATA GPIO_UART1_TX_DATA_2
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Data
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BOARDS_ARM_IMX6_SABRE_6QUAD_INCLUDE_BOARD_H */
|
||||
@@ -0,0 +1,74 @@
|
||||
/************************************************************************************
|
||||
* boards/arm/imx6/sabr-6quad/include/board_memorymap.h
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_ARM_IMX6_SABRE_6QUAD_INCLUDE_BOARD_MEMORYMAP_H
|
||||
#define __BOARDS_ARM_IMX6_SABRE_6QUAD_INCLUDE_BOARD_MEMORYMAP_H
|
||||
|
||||
/************************************************************************************
|
||||
* Included Files
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Data
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BOARDS_ARM_IMX6_SABRE_6QUAD_INCLUDE_BOARD_MEMORYMAP_H */
|
||||
@@ -0,0 +1,135 @@
|
||||
############################################################################
|
||||
# boards/arm/imx6/sabre-6quad/scripts/Make.defs
|
||||
#
|
||||
# Copyright (C) 2016-2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}$(DELIM)arch$(DELIM)arm$(DELIM)src$(DELIM)armv7-a$(DELIM)Toolchain.defs
|
||||
|
||||
LDSCRIPT = dramboot.ld
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include}"
|
||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include}" -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include$(DELIM)cxx}"
|
||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)$(DELIM)scripts$(DELIM)$(LDSCRIPT)}"
|
||||
else
|
||||
# Linux/Cygwin-native toolchain
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)$(DELIM)include
|
||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)$(DELIM)include -isystem $(TOPDIR)$(DELIM)include$(DELIM)cxx
|
||||
ARCHSCRIPT = -T$(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
|
||||
endif
|
||||
|
||||
CC = $(CROSSDEV)gcc
|
||||
CXX = $(CROSSDEV)g++
|
||||
CPP = $(CROSSDEV)gcc -E
|
||||
LD = $(CROSSDEV)ld
|
||||
STRIP = $(CROSSDEV)strip --strip-unneeded
|
||||
AR = $(ARCROSSDEV)ar rcs
|
||||
NM = $(ARCROSSDEV)nm
|
||||
OBJCOPY = $(CROSSDEV)objcopy
|
||||
OBJDUMP = $(CROSSDEV)objdump
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION = -g
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
ARCHCPUFLAGS = -mcpu=cortex-a9 -mfpu=vfpv4-d16
|
||||
ARCHCFLAGS = -fno-builtin
|
||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
||||
ARCHDEFINES =
|
||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
||||
|
||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
||||
|
||||
# NXFLAT module definitions
|
||||
|
||||
NXFLATLDFLAGS1 = -r -d -warn-common
|
||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)$(DELIM)binfmt$(DELIM)libnxflat$(DELIM)gnu-nxflat-pcrel.ld -no-check-sections
|
||||
LDNXFLATFLAGS = -e main -s 2048
|
||||
|
||||
# ELF module definitions
|
||||
|
||||
CELFFLAGS = $(CFLAGS) -mlong-calls # --target1-abs
|
||||
CXXELFFLAGS = $(CXXFLAGS) -mlong-calls # --target1-abs
|
||||
|
||||
LDELFFLAGS = -r -e main
|
||||
ifeq ($(WINTOOL),y)
|
||||
LDELFFLAGS += -T "${shell cygpath -w $(TOPDIR)/boards/$(CONFIG_ARCH)/$(CONFIG_ARCH_BOARD)/scripts/gnu-elf.ld}"
|
||||
else
|
||||
LDELFFLAGS += -T $(TOPDIR)/boards/$(CONFIG_ARCH)/$(CONFIG_ARCH_BOARD)/scripts/gnu-elf.ld
|
||||
endif
|
||||
|
||||
ASMEXT = .S
|
||||
OBJEXT = .o
|
||||
LIBEXT = .a
|
||||
EXEEXT =
|
||||
|
||||
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||
endif
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
LDFLAGS += -g
|
||||
endif
|
||||
|
||||
HOSTCC = gcc
|
||||
HOSTINCLUDES = -I.
|
||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
||||
HOSTLDFLAGS =
|
||||
ifeq ($(CONFIG_HOST_WINDOWS),y)
|
||||
HOSTEXEEXT = .exe
|
||||
else
|
||||
HOSTEXEEXT =
|
||||
endif
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
# Windows-native host tools
|
||||
DIRLINK = $(TOPDIR)$(DELIM)tools$(DELIM)copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)$(DELIM)tools$(DELIM)unlink.sh
|
||||
MKDEP = $(TOPDIR)$(DELIM)tools$(DELIM)mkwindeps.sh
|
||||
else
|
||||
# Linux/Cygwin-native host tools
|
||||
MKDEP = $(TOPDIR)$(DELIM)tools$(DELIM)mkdeps$(HOSTEXEEXT)
|
||||
endif
|
||||
@@ -0,0 +1,139 @@
|
||||
/****************************************************************************
|
||||
* boards/arm/imx6/sabre-6quad/scripts/dramboot.ld
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/* The i.MX6 has 256 KB of OCRAM beginning at virtual address 0x0090:0000
|
||||
* This memory configuration, however, loads into the 1GB DDR3 on board
|
||||
* the Sabre 6Quad K which lies at 0x1000:0000. Code is positioned at
|
||||
* 0x10800000 which the standard load address of Linux when used with uBoot.
|
||||
*
|
||||
* Vectors in low memory are assumed and 16KB of OCRAM is reserved at the
|
||||
* high end of OCRAM for the page table.
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
oscram (W!RX) : ORIGIN = 0x00900000, LENGTH = 256K - 16K
|
||||
ddr3 (W!RX) : ORIGIN = 0x10800000, LENGTH = 1024M - 8M
|
||||
}
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
||||
OUTPUT_ARCH(arm)
|
||||
ENTRY(entry)
|
||||
ENTRY(_stext)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
_stext = ABSOLUTE(.);
|
||||
*(.vectors)
|
||||
*(.text .text.*)
|
||||
*(.fixup)
|
||||
*(.gnu.warning)
|
||||
*(.rodata .rodata.*)
|
||||
*(.gnu.linkonce.t.*)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
*(.got)
|
||||
*(.gcc_except_table)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.ARM.extab*)
|
||||
*(.gnu.linkonce.armextab.*)
|
||||
_etext = ABSOLUTE(.);
|
||||
} > ddr3
|
||||
|
||||
.init_section :
|
||||
{
|
||||
_sinit = ABSOLUTE(.);
|
||||
*(.init_array .init_array.*)
|
||||
_einit = ABSOLUTE(.);
|
||||
} > ddr3
|
||||
|
||||
.ARM.extab :
|
||||
{
|
||||
*(.ARM.extab*)
|
||||
} > ddr3
|
||||
|
||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||
|
||||
PROVIDE_HIDDEN (__exidx_start = .);
|
||||
.ARM.exidx :
|
||||
{
|
||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||
} > ddr3
|
||||
PROVIDE_HIDDEN (__exidx_end = .);
|
||||
|
||||
/* Uninitialized data */
|
||||
|
||||
.data :
|
||||
{
|
||||
_sdata = ABSOLUTE(.);
|
||||
*(.data .data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
CONSTRUCTORS
|
||||
_edata = ABSOLUTE(.);
|
||||
} > ddr3
|
||||
|
||||
.bss :
|
||||
{
|
||||
_sbss = ABSOLUTE(.);
|
||||
*(.bss .bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
_ebss = ABSOLUTE(.);
|
||||
} > ddr3
|
||||
|
||||
.noinit :
|
||||
{
|
||||
_snoinit = ABSOLUTE(.);
|
||||
*(.noinit*)
|
||||
_enoinit = ABSOLUTE(.);
|
||||
} > ddr3
|
||||
|
||||
/* Stabs debugging sections. */
|
||||
|
||||
.stab 0 : { *(.stab) }
|
||||
.stabstr 0 : { *(.stabstr) }
|
||||
.stab.excl 0 : { *(.stab.excl) }
|
||||
.stab.exclstr 0 : { *(.stab.exclstr) }
|
||||
.stab.index 0 : { *(.stab.index) }
|
||||
.stab.indexstr 0 : { *(.stab.indexstr) }
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
############################################################################
|
||||
# boards/arm/imx6/sabre-6quad/src/Makefile
|
||||
#
|
||||
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
ASRCS =
|
||||
CSRCS = imx_boardinit.c imx_bringup.c
|
||||
|
||||
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
||||
CSRCS += imx_appinit.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_LEDS),y)
|
||||
CSRCS += imx_autoleds.c
|
||||
else
|
||||
CSRCS += imx_userleds.c
|
||||
endif
|
||||
|
||||
include $(TOPDIR)/boards/Board.mk
|
||||
@@ -0,0 +1,90 @@
|
||||
/****************************************************************************
|
||||
* config/arm/imx6/sabre-6quad/src/imx_appinit.c
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <nuttx/board.h>
|
||||
|
||||
#include "sabre-6quad.h"
|
||||
|
||||
#ifdef CONFIG_LIB_BOARDCTL
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_app_initialize
|
||||
*
|
||||
* Description:
|
||||
* Perform application specific initialization. This function is never
|
||||
* called directly from application code, but only indirectly via the
|
||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
||||
*
|
||||
* Input Parameters:
|
||||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
||||
* implementation without modification. The argument has no
|
||||
* meaning to NuttX; the meaning of the argument is a contract
|
||||
* between the board-specific initalization logic and the
|
||||
* matching application logic. The value cold be such things as a
|
||||
* mode enumeration value, a set of DIP switch switch settings, a
|
||||
* pointer to configuration data read from a file or serial FLASH,
|
||||
* or whatever you would like to do with it. Every implementation
|
||||
* should accept zero/NULL as a default configuration.
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
||||
* any failure to indicate the nature of the failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int board_app_initialize(uintptr_t arg)
|
||||
{
|
||||
#ifndef CONFIG_BOARD_LATE_INITIALIZE
|
||||
/* Perform board initialization */
|
||||
|
||||
return imx_bringup();
|
||||
#else
|
||||
return OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* CONFIG_LIB_BOARDCTL */
|
||||
@@ -0,0 +1,120 @@
|
||||
/****************************************************************************
|
||||
* boards/arm/imx6/sabre-6quad/include/imx_autoleds.c
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/* LEDs
|
||||
*
|
||||
* A single LED is available driven by USR_DEF_RED_LED.
|
||||
*
|
||||
* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
|
||||
* defined. In that case, the usage by the board port is defined in
|
||||
* include/board.h and src/imx_autoleds.c. The LEDs are used to encode
|
||||
* OS-related events as follows:
|
||||
*
|
||||
* ------------------- ----------------------- ------
|
||||
* SYMBOL Meaning LED
|
||||
* ------------------- ----------------------- ------
|
||||
* LED_STARTED NuttX has been started OFF
|
||||
* LED_HEAPALLOCATE Heap has been allocated OFF
|
||||
* LED_IRQSENABLED Interrupts enabled OFF
|
||||
* LED_STACKCREATED Idle stack created ON
|
||||
* LED_INIRQ In an interrupt N/C
|
||||
* LED_SIGNAL In a signal handler N/C
|
||||
* LED_ASSERTION An assertion failed N/C
|
||||
* LED_PANIC The system has crashed FLASH
|
||||
*
|
||||
* Thus is LED is statically on, NuttX has successfully booted and is,
|
||||
* apparently, running normally. If LED is flashing at approximately
|
||||
* 2Hz, then a fatal error has been detected and the system has halted.
|
||||
*/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/board.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "imx_gpio.h"
|
||||
#include "sabre-6quad.h"
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void board_autoled_initialize(void)
|
||||
{
|
||||
/* Configure LED PIOs for output */
|
||||
|
||||
imx_config_gpio(GPIO_LED);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_on
|
||||
****************************************************************************/
|
||||
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
if (led == 1 || led == 3)
|
||||
{
|
||||
imx_gpio_write(GPIO_LED, true); /* High illuminates */
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_off
|
||||
****************************************************************************/
|
||||
|
||||
void board_autoled_off(int led)
|
||||
{
|
||||
if (led == 3)
|
||||
{
|
||||
imx_gpio_write(GPIO_LED, false); /* Low extinguishes */
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ARCH_LEDS */
|
||||
@@ -0,0 +1,137 @@
|
||||
/****************************************************************************
|
||||
* boards/arm/imx6/sabre-6quad/src/imx_boot.c
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <nuttx/board.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "up_arch.h"
|
||||
|
||||
#include "imx_boot.h"
|
||||
#include "sabre-6quad.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: imx_memory_initialize
|
||||
*
|
||||
* Description:
|
||||
* All i.MX6 architectures must provide the following entry point. This
|
||||
* entry point is called early in the initialization before memory has
|
||||
* been configured. This board-specific function is responsible for
|
||||
* configuring any on-board memories.
|
||||
*
|
||||
* Logic in imx_memory_initialize must be careful to avoid using any
|
||||
* global variables because those will be uninitialized at the time this
|
||||
* function is called.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void imx_memory_initialize(void)
|
||||
{
|
||||
/* SDRAM was initialized by a bootloader in the supported configurations. */
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: imx_board_initialize
|
||||
*
|
||||
* Description:
|
||||
* All i.MX6 architectures must provide the following entry point. This
|
||||
* entry point is called in the initialization phase -- after
|
||||
* imx_memory_initialize and after all memory has been configured and
|
||||
* mapped but before any devices have been initialized.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void imx_board_initialize(void)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
/* Configure on-board LEDs if LED support has been selected. */
|
||||
|
||||
board_autoled_initialize();
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_late_initialize
|
||||
*
|
||||
* Description:
|
||||
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
|
||||
* initialization call will be performed in the boot-up sequence to a
|
||||
* function called board_late_initialize(). board_late_initialize() will be
|
||||
* called immediately after up_intitialize() is called and just before the
|
||||
* initial application is started. This additional initialization phase
|
||||
* may be used, for example, to initialize board-specific device drivers.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_BOARD_LATE_INITIALIZE
|
||||
void board_late_initialize(void)
|
||||
{
|
||||
/* Perform board initialization */
|
||||
|
||||
(void)imx_bringup();
|
||||
}
|
||||
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
|
||||
@@ -0,0 +1,76 @@
|
||||
/****************************************************************************
|
||||
* config/arm/imx6/sabre-6quad/src/imx_bringup.c
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include "sabre-6quad.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: imx_bringup
|
||||
*
|
||||
* Description:
|
||||
* Bring up board features
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int imx_bringup(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_FS_PROCFS
|
||||
/* Mount the procfs file system */
|
||||
|
||||
ret = mount(NULL, "/proc", "procfs", 0, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount procfs at /proc: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
UNUSED(ret);
|
||||
return OK;
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/****************************************************************************
|
||||
* boards/arm/imx6/sabre-6quad/src/imx_userleds.c
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "sabre-6quad.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_userled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void board_userled_initialize(void)
|
||||
{
|
||||
/* Configure LED PIOs for output */
|
||||
|
||||
imx_config_gpio(GPIO_LED);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_userled
|
||||
****************************************************************************/
|
||||
|
||||
void board_userled(int led, bool ledon)
|
||||
{
|
||||
if (led == BOARD_LED)
|
||||
{
|
||||
imx_gpio_write(GPIO_LED, !ledon); /* Low illuminates */
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_userled_all
|
||||
****************************************************************************/
|
||||
|
||||
void board_userled_all(uint8_t ledset)
|
||||
{
|
||||
/* Low illuminates */
|
||||
|
||||
imx_gpio_write(GPIO_LED, (ledset & BOARD_LED_BIT) == 0));
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
/************************************************************************************
|
||||
* boards/arm/imx6/sabre-6quad/src/sabre-6quad.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_ARM_IMX6_SABRE_6QUAD_SRC_SABRE_6QUAD_H
|
||||
#define __BOARDS_ARM_IMX6_SABRE_6QUAD_SRC_SABRE_6QUAD_H
|
||||
|
||||
/************************************************************************************
|
||||
* Included Files
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "imx_gpio.h"
|
||||
#include "imx_iomuxc.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
/* Configuration ********************************************************************/
|
||||
|
||||
/* SABRE-6QUAD GPIO Pin Definitions *************************************************/
|
||||
/* LED
|
||||
*
|
||||
* A single LED is available driven GPIO1_IO02. On the schematic this is
|
||||
* USR_DEF_RED_LED signal to pin T1 (GPIO_2). This signal is shared with KEY_ROW6
|
||||
* (ALT2). A high value illuminates the LED.
|
||||
*/
|
||||
|
||||
#define IOMUX_LED (IOMUX_PULL_NONE | IOMUX_CMOS_OUTPUT | IOMUX_DRIVE_40OHM | \
|
||||
IOMUX_SPEED_MEDIUM | IOMUX_SLEW_SLOW)
|
||||
#define GPIO_LED (GPIO_OUTPUT | GPIO_OUTPUT_ZERO | GPIO_PORT1 | GPIO_PIN2 | \
|
||||
IOMUX_LED)
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public data
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Name: imx_bringup
|
||||
*
|
||||
* Description:
|
||||
* Bring up board features
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
|
||||
int imx_bringup(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BOARDS_ARM_SABRE_6QUAD_SRC_SABRE_6QUAD_H */
|
||||
Reference in New Issue
Block a user