goflexhome.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013 Suriyan Ramasami <suriyan.r@gmail.com>
  4. *
  5. * Based on dockstar.h originally written by
  6. * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
  7. *
  8. * Based on sheevaplug.h originally written by
  9. * Prafulla Wadaskar <prafulla@marvell.com>
  10. * (C) Copyright 2009
  11. * Marvell Semiconductor <www.marvell.com>
  12. */
  13. #ifndef _CONFIG_GOFLEXHOME_H
  14. #define _CONFIG_GOFLEXHOME_H
  15. /*
  16. * High Level Configuration Options (easy to change)
  17. */
  18. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  19. #define CONFIG_KW88F6281 1 /* SOC Name */
  20. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  21. /*
  22. * Default GPIO configuration and LED status
  23. */
  24. #define GOFLEXHOME_OE_LOW (~(0))
  25. #define GOFLEXHOME_OE_HIGH (~(0))
  26. #define GOFLEXHOME_OE_VAL_LOW (1 << 29) /* USB_PWEN low */
  27. #define GOFLEXHOME_OE_VAL_HIGH (1 << 17) /* LED pin high */
  28. /* PHY related */
  29. #define MV88E1116_LED_FCTRL_REG 10
  30. #define MV88E1116_CPRSP_CR3_REG 21
  31. #define MV88E1116_MAC_CTRL_REG 21
  32. #define MV88E1116_PGADR_REG 22
  33. #define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
  34. #define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
  35. /*
  36. * Commands configuration
  37. */
  38. /*
  39. * mv-common.h should be defined after CMD configs since it used them
  40. * to enable certain macros
  41. */
  42. #include "mv-common.h"
  43. /*
  44. * Environment variables configurations
  45. */
  46. /*
  47. * max 4k env size is enough, but in case of nand
  48. * it has to be rounded to sector size
  49. */
  50. /*
  51. * Default environment variables
  52. */
  53. #define CONFIG_BOOTCOMMAND \
  54. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  55. "ubi part root; " \
  56. "ubifsmount ubi:root; " \
  57. "ubifsload 0x800000 ${kernel}; " \
  58. "bootm 0x800000"
  59. #define CONFIG_EXTRA_ENV_SETTINGS \
  60. "console=console=ttyS0,115200\0" \
  61. "mtdids=nand0=orion_nand\0" \
  62. "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  63. "kernel=/boot/uImage\0" \
  64. "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
  65. /*
  66. * Ethernet Driver configuration
  67. */
  68. #ifdef CONFIG_CMD_NET
  69. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  70. #define CONFIG_PHY_BASE_ADR 0
  71. #endif /* CONFIG_CMD_NET */
  72. /*
  73. * * SATA Driver configuration
  74. * */
  75. #ifdef CONFIG_MVSATA_IDE
  76. #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
  77. #endif /*CONFIG_MVSATA_IDE*/
  78. #endif /* _CONFIG_GOFLEXHOME_H */