imx27lite.h 1.7 KB

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