omap3_pandora.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. /* override base for compatibility with MLO the device ships with */
  11. #include <configs/ti_omap3_common.h>
  12. #define CONFIG_REVISION_TAG 1
  13. #define CONFIG_SYS_DEVICE_NULLDEV 1
  14. /*
  15. * Board NAND Info.
  16. */
  17. #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_SW
  18. #define CONFIG_SYS_NAND_PAGE_SIZE 2048
  19. #define CONFIG_SYS_NAND_OOBSIZE 64
  20. #define CONFIG_BOOTCOMMAND \
  21. "run distro_bootcmd; " \
  22. "setenv bootargs ${bootargs_ubi}; " \
  23. "if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
  24. "source ${loadaddr}; " \
  25. "fi; " \
  26. "ubi part boot && ubifsmount ubi:boot && " \
  27. "ubifsload ${loadaddr} uImage && bootm ${loadaddr}"
  28. #define BOOT_TARGET_DEVICES(func) \
  29. func(MMC, mmc, 0) \
  30. #include <config_distro_bootcmd.h>
  31. #define CONFIG_EXTRA_ENV_SETTINGS \
  32. DEFAULT_LINUX_BOOT_ENV \
  33. "usbtty=cdc_acm\0" \
  34. "bootargs_ubi=ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs " \
  35. "rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K\0" \
  36. "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
  37. BOOTENV \
  38. /* memtest works on */
  39. #define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0)
  40. #define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
  41. 0x01F00000) /* 31MB */
  42. #if defined(CONFIG_MTD_RAW_NAND)
  43. #define CONFIG_SYS_FLASH_BASE NAND_BASE
  44. #endif
  45. /* Monitor at start of flash */
  46. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
  47. #define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
  48. #endif /* __CONFIG_H */