| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) Copyright 2010 | 2 * (C) Copyright 2010 |
| 3 * NVIDIA Corporation <www.nvidia.com> | 3 * NVIDIA Corporation <www.nvidia.com> |
| 4 * | 4 * |
| 5 * See file CREDITS for list of people who contributed to this | 5 * See file CREDITS for list of people who contributed to this |
| 6 * project. | 6 * project. |
| 7 * | 7 * |
| 8 * This program is free software; you can redistribute it and/or | 8 * This program is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU General Public License as | 9 * modify it under the terms of the GNU General Public License as |
| 10 * published by the Free Software Foundation; either version 2 of | 10 * published by the Free Software Foundation; either version 2 of |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #define NvUSBx_1 USB_EHCI_TEGRA_BASE_ADDR_USB1 | 67 #define NvUSBx_1 USB_EHCI_TEGRA_BASE_ADDR_USB1 |
| 68 #define NvUSBx_2 0 | 68 #define NvUSBx_2 0 |
| 69 #define NvUSBx_3 0 | 69 #define NvUSBx_3 0 |
| 70 | 70 |
| 71 /* LCD Settings */ | 71 /* LCD Settings */ |
| 72 #ifdef CONFIG_LCD | 72 #ifdef CONFIG_LCD |
| 73 #define CONFIG_LCD_vl_col 1024 | 73 #define CONFIG_LCD_vl_col 1024 |
| 74 #define CONFIG_LCD_vl_row 600 | 74 #define CONFIG_LCD_vl_row 600 |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 /* Set clock divisor |
| 78 * 7 bits of D and 1 bit of H |
| 79 * divisor= (DDDDDDD + 1) + (H x 0.5) |
| 80 * clock = original clock / divisor |
| 81 * 6 means /4 */ |
| 82 #define CONFIG_NAND_CLK_DIVISOR_DDDDDDDH 6 |
| 83 |
| 84 /* For HYNIX HY27UF4G2B |
| 85 * Frequence output of PLLP_OUT0 is set by BOOTROM to 216MHz |
| 86 * to CLK_RST_CONTROLLER_PLLP_BASE_0, |
| 87 * 216MHz / divisor 4 = 54MHZ |
| 88 * 1 clock = 18.5 ns = NAND_CLK_PERIOD |
| 89 * TRP_RESP_CNT=n, max(tRP, tREA)= max(12ns, 20ns)= 20ns for non-EDO mode |
| 90 * bit 31-28=n=1, generated timing= (n+1) * NAND_CLK_PERIOD= (1+1)* 18.5 |
| 91 * TWB_CNT bit 27-24=n, tWB = 100ns = (n+1)* 18.5, so n= 5 (bit 27-24) |
| 92 * similar way for other fields, please refer to reference manual |
| 93 */ |
| 94 /* Value to be set to NAND_TIMING_0 register, address=70008014h */ |
| 95 #define CONFIG_TEGRA2_NAND_TIMING 0x15040001 |
| 96 /* Value to be set to NAND_TIMING2_0 register, address=7000801Ch */ |
| 97 #define CONFIG_TEGRA2_NAND_TIMING2 0x01 |
| 98 |
| 77 #define CONFIG_TEGRA2_PINMUX_DISPLAY_HARMONY \ | 99 #define CONFIG_TEGRA2_PINMUX_DISPLAY_HARMONY \ |
| 78 PINMUX(LCSN, DISPLAYA, PULL_UP, TRISTATE) \ | 100 PINMUX(LCSN, DISPLAYA, PULL_UP, TRISTATE) \ |
| 79 PINMUX(LD0, DISPLAYA, PULL_DOWN, NORMAL) \ | 101 PINMUX(LD0, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 80 PINMUX(LD1, DISPLAYA, PULL_DOWN, NORMAL) \ | 102 PINMUX(LD1, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 81 PINMUX(LD10, DISPLAYA, PULL_DOWN, NORMAL) \ | 103 PINMUX(LD10, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 82 PINMUX(LD11, DISPLAYA, PULL_DOWN, NORMAL) \ | 104 PINMUX(LD11, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 83 PINMUX(LD12, DISPLAYA, PULL_DOWN, NORMAL) \ | 105 PINMUX(LD12, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 84 PINMUX(LD13, DISPLAYA, PULL_DOWN, NORMAL) \ | 106 PINMUX(LD13, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 85 PINMUX(LD14, DISPLAYA, PULL_DOWN, NORMAL) \ | 107 PINMUX(LD14, DISPLAYA, PULL_DOWN, NORMAL) \ |
| 86 PINMUX(LD15, DISPLAYA, PULL_DOWN, NORMAL) \ | 108 PINMUX(LD15, DISPLAYA, PULL_DOWN, NORMAL) \ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 TEGRA_PANEL(h_ref_to_sync, 4) \ | 173 TEGRA_PANEL(h_ref_to_sync, 4) \ |
| 152 TEGRA_PANEL(v_ref_to_sync, 2) \ | 174 TEGRA_PANEL(v_ref_to_sync, 2) \ |
| 153 TEGRA_PANEL(h_sync_width, 136) \ | 175 TEGRA_PANEL(h_sync_width, 136) \ |
| 154 TEGRA_PANEL(v_sync_width, 4) \ | 176 TEGRA_PANEL(v_sync_width, 4) \ |
| 155 TEGRA_PANEL(h_back_porch, 138) \ | 177 TEGRA_PANEL(h_back_porch, 138) \ |
| 156 TEGRA_PANEL(v_back_porch, 21) \ | 178 TEGRA_PANEL(v_back_porch, 21) \ |
| 157 TEGRA_PANEL(h_front_porch, 34) \ | 179 TEGRA_PANEL(h_front_porch, 34) \ |
| 158 TEGRA_PANEL(v_front_porch, 4) | 180 TEGRA_PANEL(v_front_porch, 4) |
| 159 | 181 |
| 160 #endif /* __CONFIG_H */ | 182 #endif /* __CONFIG_H */ |
| OLD | NEW |