uboot/include/configs/omap3_pandora.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0+ */
   2/*
   3 * (C) Copyright 2008-2010
   4 * Gražvydas Ignotas <notasas@gmail.com>
   5 *
   6 * Configuration settings for the OMAP3 Pandora.
   7 */
   8
   9#ifndef __CONFIG_H
  10#define __CONFIG_H
  11
  12/* override base for compatibility with MLO the device ships with */
  13
  14#include <configs/ti_omap3_common.h>
  15
  16#define CONFIG_REVISION_TAG             1
  17
  18#define CONFIG_SYS_DEVICE_NULLDEV       1
  19
  20/*
  21 * Board NAND Info.
  22 */
  23#define CONFIG_NAND_OMAP_ECCSCHEME      OMAP_ECC_HAM1_CODE_SW
  24#define CONFIG_SYS_NAND_PAGE_SIZE       2048
  25#define CONFIG_SYS_NAND_OOBSIZE         64
  26
  27
  28#define CONFIG_BOOTCOMMAND \
  29        "run distro_bootcmd; " \
  30        "setenv bootargs ${bootargs_ubi}; " \
  31        "if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
  32                "source ${loadaddr}; " \
  33        "fi; " \
  34        "ubi part boot && ubifsmount ubi:boot && " \
  35                "ubifsload ${loadaddr} uImage && bootm ${loadaddr}"
  36
  37#define BOOT_TARGET_DEVICES(func) \
  38        func(MMC, mmc, 0) \
  39
  40#include <config_distro_bootcmd.h>
  41
  42#define CONFIG_EXTRA_ENV_SETTINGS \
  43        DEFAULT_LINUX_BOOT_ENV \
  44        "usbtty=cdc_acm\0" \
  45        "bootargs_ubi=ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs " \
  46                "rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K\0" \
  47        "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
  48        BOOTENV \
  49
  50/* memtest works on */
  51#define CONFIG_SYS_MEMTEST_START        (OMAP34XX_SDRC_CS0)
  52#define CONFIG_SYS_MEMTEST_END          (OMAP34XX_SDRC_CS0 + \
  53                                        0x01F00000) /* 31MB */
  54
  55#if defined(CONFIG_MTD_RAW_NAND)
  56#define CONFIG_SYS_FLASH_BASE           NAND_BASE
  57#endif
  58
  59/* Monitor at start of flash */
  60#define CONFIG_SYS_MONITOR_BASE         CONFIG_SYS_FLASH_BASE
  61
  62
  63#define CONFIG_SYS_ENV_SECT_SIZE        (128 << 10)     /* 128 KiB */
  64
  65#endif                          /* __CONFIG_H */
  66