Summary ======= This README is about U-Boot support for TI's ARM Cortex-A8 based OMAP3 [1] family of SoCs. TI's OMAP3 SoC family contains an ARM Cortex-A8. Additionally, some family members contain a TMS320C64x+ DSP and/or an Imagination SGX 2D/3D graphics processor and various other standard peripherals. Currently the following boards are supported: * OMAP3530 BeagleBoard [2] * Gumstix Overo [3] * TI EVM [4] * OpenPandora Ltd. Pandora [5] * TI/Logic PD Zoom MDK [6] * TI/Logic PD Zoom 2 [7] * CompuLab Ltd. CM-T35 [8] Toolchain ========= While ARM Cortex-A8 support ARM v7 instruction set (-march=armv7a) we compile with -march=armv5 to allow more compilers to work. For U-Boot code this has no performance impact. Build ===== * BeagleBoard: make omap3_beagle_config make * Gumstix Overo: make omap3_overo_config make * TI EVM: make omap3_evm_config make * Pandora: make omap3_pandora_config make * Zoom MDK: make omap3_zoom1_config make * Zoom 2: make omap3_zoom2_config make * CM-T35: make cm_t35_config make * BlueLYNX-X: make omap3_mvblx_config make Custom commands =============== To make U-Boot for OMAP3 support NAND device SW or HW ECC calculation, U-Boot for OMAP3 supports custom user command nandecc hw/sw To be compatible with NAND drivers using SW ECC (e.g. kernel code) nandecc sw enables SW ECC calculation. HW ECC enabled with nandecc hw is typically used to write 2nd stage bootloader (known as 'x-loader') which is executed by OMAP3's boot rom and therefore has to be written with HW ECC. For all other commands see help Interfaces ========== gpio ---- To set a bit : if (!gpio_request(N, "")) { gpio_direction_output(N, 0); gpio_set_value(N, 1); } To clear a bit : if (!gpio_request(N, "")) { gpio_direction_output(N, 0); gpio_set_value(N, 0); } To read a bit : if (!gpio_request(N, "")) { gpio_direction_input(N); val = gpio_get_value(N); gpio_free(N); } if (val) printf("GPIO N is set\n"); else printf("GPIO N is clear\n"); dma --- void omap3_dma_init(void) Init the DMA module int omap3_dma_get_conf_chan(uint32_t chan, struct dma4_chan *config); Read config of the channel int omap3_dma_conf_chan(uint32_t chan, struct dma4_chan *config); Write config to the channel int omap3_dma_conf_transfer(uint32_t chan, uint32_t *src, uint32_t *dst, uint32_t sze) Config source, destination and size of a transfer int omap3_dma_wait_for_transfer(uint32_t chan) Wait for a transfer to end - this hast to be called before a channel or the data the channel transferd are used. int omap3_dma_get_revision(uint32_t *minor, uint32_t *major) Read silicon Revision of the DMA module NAND ==== There are some OMAP3 devices out there with NAND attached. Due to the fact that OMAP3 ROM code can only handle 1-bit hamming ECC for accessing first page (place where SPL lives) we require this setup for u-boot at least when reading the second progam within SPL. A lot of newer NAND chips however require more than 1-bit ECC for the pages, some can live with 1-bit for the first page. To handle this we can switch to another ECC algorithm after reading the payload within SPL. BCH8 ---- To enable hardware assisted BCH8 (8-bit BCH [Bose, Chaudhuri, Hocquenghem]) on OMAP3 devices we can use the BCH library in lib/bch.c. To do so add CONFIG_BCH and set CONFIG_NAND_OMAP_ECCSCHEME=5 (refer README.nand) for selecting BCH8_SW. The NAND OOB layout is the same as in linux kernel, if the linux kernel BCH8 implementation for OMAP3 works for you so the u-boot version should also. When you require the SPL to read with BCH8 there are two more configs to change: * CONFIG_SYS_NAND_ECCPOS (must be the same as .eccpos in GPMC_NAND_HW_BCH8_ECC_LAYOUT defined in arch/arm/include/asm/arch-omap3/omap_gpmc.h) * CONFIG_SYS_NAND_ECCSIZE must be 512 * CONFIG_SYS_NAND_ECCBYTES must be 13 for this BCH8 setup Acknowledgements ================ OMAP3 U-Boot is based on U-Boot tar ball [9] for BeagleBoard and EVM done by several TI employees. Links ===== [1] OMAP3: http://www.ti.com/omap3
#ifndef IRIS_H
#define IRIS_H
#ifdef KEYBOARD_iris_rev1
#include "rev1.h"
#else
#include "rev2.h"
#endif
#include "quantum.h"
// Used to create a keymap using only KC_ prefixed keys
#define KC_KEYMAP( \
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
L30, L31, L32, L33, L34, L35, LT4, RT4, R30, R31, R32, R33, R34, R35, \
LT1, LT2, LT3, RT3, RT2, RT1 \
) \
KEYMAP( \
KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, \
KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, \
KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, \
KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##LT4, KC_##RT4, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35, \
KC_##LT1, KC_##LT2, KC_##LT3, KC_##RT3, KC_##RT2, KC_##RT1 \
)
#endif