tnetv107x.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Texas Instruments TNETV107X SoC Specific Defines
  3. *
  4. * Copyright (C) 2010 Texas Instruments
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __ASM_ARCH_DAVINCI_TNETV107X_H
  16. #define __ASM_ARCH_DAVINCI_TNETV107X_H
  17. #include <asm/sizes.h>
  18. #define TNETV107X_DDR_BASE 0x80000000
  19. /*
  20. * Fixed mapping for early init starts here. If low-level debug is enabled,
  21. * this area also gets mapped via io_pg_offset and io_phys by the boot code.
  22. * To fit in with the io_pg_offset calculation, the io base address selected
  23. * here _must_ be a multiple of 2^20.
  24. */
  25. #define TNETV107X_IO_BASE 0x08000000
  26. #define TNETV107X_IO_VIRT (IO_VIRT + SZ_1M)
  27. #define TNETV107X_N_GPIO 65
  28. #ifndef __ASSEMBLY__
  29. #include <linux/serial_8250.h>
  30. #include <linux/input/matrix_keypad.h>
  31. #include <linux/mfd/ti_ssp.h>
  32. #include <mach/mmc.h>
  33. #include <mach/nand.h>
  34. #include <mach/serial.h>
  35. struct tnetv107x_device_info {
  36. struct davinci_uart_config *serial_config;
  37. struct davinci_mmc_config *mmc_config[2]; /* 2 controllers */
  38. struct davinci_nand_pdata *nand_config[4]; /* 4 chipsels */
  39. struct matrix_keypad_platform_data *keypad_config;
  40. struct ti_ssp_data *ssp_config;
  41. };
  42. extern struct platform_device tnetv107x_wdt_device;
  43. extern struct platform_device tnetv107x_serial_device;
  44. extern void __init tnetv107x_init(void);
  45. extern void __init tnetv107x_devices_init(struct tnetv107x_device_info *);
  46. extern void __init tnetv107x_irq_init(void);
  47. void tnetv107x_restart(char mode, const char *cmd);
  48. #endif
  49. #endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */