| 
									
										
										
										
											2013-03-22 16:34:01 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Host1x init for T20 and T30 Architecture Chips | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (c) 2011-2013, NVIDIA Corporation. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify it | 
					
						
							|  |  |  |  * under the terms and conditions of the GNU General Public License, | 
					
						
							|  |  |  |  * version 2, as published by the Free Software Foundation. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is distributed in the hope it will be useful, but WITHOUT | 
					
						
							|  |  |  |  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 
					
						
							|  |  |  |  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for | 
					
						
							|  |  |  |  * more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU General Public License | 
					
						
							|  |  |  |  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* include hw specification */ | 
					
						
							| 
									
										
										
										
											2013-10-09 10:32:54 +02:00
										 |  |  | #include "host1x01.h"
 | 
					
						
							|  |  |  | #include "host1x01_hardware.h"
 | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:01 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* include code */ | 
					
						
							| 
									
										
										
										
											2013-10-09 10:32:54 +02:00
										 |  |  | #include "cdma_hw.c"
 | 
					
						
							|  |  |  | #include "channel_hw.c"
 | 
					
						
							|  |  |  | #include "debug_hw.c"
 | 
					
						
							|  |  |  | #include "intr_hw.c"
 | 
					
						
							|  |  |  | #include "syncpt_hw.c"
 | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:01 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-09 10:32:54 +02:00
										 |  |  | #include "../dev.h"
 | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:01 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | int host1x01_init(struct host1x *host) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:03 +02:00
										 |  |  | 	host->channel_op = &host1x_channel_ops; | 
					
						
							|  |  |  | 	host->cdma_op = &host1x_cdma_ops; | 
					
						
							|  |  |  | 	host->cdma_pb_op = &host1x_pushbuffer_ops; | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:01 +02:00
										 |  |  | 	host->syncpt_op = &host1x_syncpt_ops; | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:02 +02:00
										 |  |  | 	host->intr_op = &host1x_intr_ops; | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:04 +02:00
										 |  |  | 	host->debug_op = &host1x_debug_ops; | 
					
						
							| 
									
										
										
										
											2013-03-22 16:34:01 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } |