magnesium.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (C) 2010 Heiko Schocher <hs@denx.de>
  3. *
  4. * based on:
  5. * Copyright (C) 2009 Ilya Yanok <yanok@emcraft.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #ifndef __CONFIG_H
  23. #define __CONFIG_H
  24. /* include common defines/options for all imx27lite related boards */
  25. #include "imx27lite-common.h"
  26. /*
  27. * SoC Configuration
  28. */
  29. #define CONFIG_MAGNESIUM
  30. #define CONFIG_HOSTNAME magnesium
  31. #define CONFIG_BOARDNAME "Projectiondesign magnesium\n"
  32. /*
  33. * Flash & Environment
  34. */
  35. #define CONFIG_SYS_FLASH_SECT_SZ 0x8000 /* 64KB sect size */
  36. #define CONFIG_ENV_OFFSET (PHYS_FLASH_SIZE - 0x40000)
  37. #define PHYS_FLASH_SIZE 0x800000
  38. #define CONFIG_ENV_SECT_SIZE 0x20000 /* Env sector Size */
  39. /*
  40. * NAND
  41. */
  42. #define CONFIG_SYS_NAND_LARGEPAGE
  43. /*
  44. * SD/MMC
  45. */
  46. #define CONFIG_MXC_MCI_REGS_BASE 0x10013000
  47. /*
  48. * MTD partitions
  49. */
  50. #define MTDIDS_DEFAULT "nor0=physmap-flash.0,nand0=mxc_nand.0"
  51. #define MTDPARTS_DEFAULT \
  52. "mtdparts=" \
  53. "physmap-flash.0:" \
  54. "256k(U-Boot)," \
  55. "7680k(user)," \
  56. "128k(env1)," \
  57. "128k(env2);" \
  58. "mxc_nand.0:" \
  59. "128k(IPL-SPL)," \
  60. "4m(kernel)," \
  61. "22m(rootfs)," \
  62. "-(userfs)"
  63. #endif /* __CONFIG_H */