pogo_e02.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (C) 2012
  3. * David Purdy <david.c.purdy@gmail.com>
  4. *
  5. * Based on Kirkwood support:
  6. * (C) Copyright 2009
  7. * Marvell Semiconductor <www.marvell.com>
  8. * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #ifndef _CONFIG_POGO_E02_H
  13. #define _CONFIG_POGO_E02_H
  14. /*
  15. * Machine type definition and ID
  16. */
  17. #define MACH_TYPE_POGO_E02 3542
  18. #define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02
  19. /*
  20. * High Level Configuration Options (easy to change)
  21. */
  22. #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
  23. #define CONFIG_KW88F6281 /* SOC Name */
  24. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  25. /*
  26. * Commands configuration
  27. */
  28. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  29. #define CONFIG_SYS_MVFS
  30. #define CONFIG_CMD_ENV
  31. #define CONFIG_CMD_NAND
  32. /*
  33. * mv-common.h should be defined after CMD configs since it used them
  34. * to enable certain macros
  35. */
  36. #include "mv-common.h"
  37. /*
  38. * Environment variables configurations
  39. */
  40. #ifdef CONFIG_CMD_NAND
  41. #define CONFIG_ENV_IS_IN_NAND
  42. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
  43. #else
  44. #define CONFIG_ENV_IS_NOWHERE
  45. #endif
  46. #define CONFIG_ENV_SIZE 0x20000 /* 128k */
  47. #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
  48. /*
  49. * Default environment variables
  50. */
  51. #define CONFIG_BOOTCOMMAND \
  52. "setenv bootargs $(bootargs_console); " \
  53. "run bootcmd_usb; " \
  54. "bootm 0x00800000 0x01100000"
  55. #define CONFIG_EXTRA_ENV_SETTINGS \
  56. "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
  57. "32M(rootfs),-(data)\0"\
  58. "mtdids=nand0=orion_nand\0"\
  59. "bootargs_console=console=ttyS0,115200\0" \
  60. "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
  61. "ext2load usb 0:1 0x01100000 /uInitrd\0"
  62. /*
  63. * Ethernet Driver configuration
  64. */
  65. #ifdef CONFIG_CMD_NET
  66. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  67. #define CONFIG_PHY_BASE_ADR 0
  68. #endif /* CONFIG_CMD_NET */
  69. /*
  70. * File system
  71. */
  72. #define CONFIG_CMD_JFFS2
  73. #define CONFIG_CMD_UBIFS
  74. #define CONFIG_RBTREE
  75. #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
  76. #define CONFIG_MTD_PARTITIONS
  77. #define CONFIG_CMD_MTDPARTS
  78. #define CONFIG_LZO
  79. #endif /* _CONFIG_POGO_E02_H */