diff --git a/flash-tool/device_stage1/main.c b/flash-tool/device_stage1/main.c index 6ddb393..6520015 100644 --- a/flash-tool/device_stage1/main.c +++ b/flash-tool/device_stage1/main.c @@ -1,6 +1,4 @@ /* - * main.c - * * Main routine of the firmware. * * Copyright (C) 2009 PI diff --git a/flash-tool/device_stage2/include/error.h b/flash-tool/device_stage2/include/error.h index 5fa2005..ff01e1d 100644 --- a/flash-tool/device_stage2/include/error.h +++ b/flash-tool/device_stage2/include/error.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #ifndef __ERROR_H__ #define __ERROR_H__ diff --git a/flash-tool/device_stage2/include/jz4740.h b/flash-tool/device_stage2/include/jz4740.h index 735dcb2..dd56a3a 100644 --- a/flash-tool/device_stage2/include/jz4740.h +++ b/flash-tool/device_stage2/include/jz4740.h @@ -1,5 +1,22 @@ /* * Include file for Ingenic Semiconductor's JZ4740 CPU. + * + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA */ #ifndef __JZ4740_H__ #define __JZ4740_H__ diff --git a/flash-tool/device_stage2/include/jz4750.h b/flash-tool/device_stage2/include/jz4750.h index f9e05be..827dc94 100644 --- a/flash-tool/device_stage2/include/jz4750.h +++ b/flash-tool/device_stage2/include/jz4750.h @@ -1,5 +1,22 @@ /* * Include file for Ingenic Semiconductor's JZ4750 CPU. + * + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA */ #ifndef __JZ4750_H__ #define __JZ4750_H__ diff --git a/flash-tool/device_stage2/include/nandflash.h b/flash-tool/device_stage2/include/nandflash.h index 7780892..4468386 100644 --- a/flash-tool/device_stage2/include/nandflash.h +++ b/flash-tool/device_stage2/include/nandflash.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #ifndef __NANDLIB_H__ #define __NANDLIB_H__ diff --git a/flash-tool/device_stage2/include/udc.h b/flash-tool/device_stage2/include/udc.h index 9611855..2f9b012 100644 --- a/flash-tool/device_stage2/include/udc.h +++ b/flash-tool/device_stage2/include/udc.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #ifndef __UDC_H__ #define __UDC_H__ diff --git a/flash-tool/device_stage2/include/usb.h b/flash-tool/device_stage2/include/usb.h index b5c4441..b32239e 100644 --- a/flash-tool/device_stage2/include/usb.h +++ b/flash-tool/device_stage2/include/usb.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #ifndef __USB_H #define __USB_H diff --git a/flash-tool/device_stage2/include/usb_boot.h b/flash-tool/device_stage2/include/usb_boot.h index 16ecfb3..a076f0a 100644 --- a/flash-tool/device_stage2/include/usb_boot.h +++ b/flash-tool/device_stage2/include/usb_boot.h @@ -1,7 +1,7 @@ /* * "Ingenic flash tool" - flash the Ingenic CPU via USB * - * (C) Copyright 2009 + * Copyright (C) 2009 * Author: Xiangfu Liu * * This program is free software; you can redistribute it and/or diff --git a/flash-tool/device_stage2/nandflash/nandflash_4740.c b/flash-tool/device_stage2/nandflash/nandflash_4740.c index ce78d6d..e1ef132 100644 --- a/flash-tool/device_stage2/nandflash/nandflash_4740.c +++ b/flash-tool/device_stage2/nandflash/nandflash_4740.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #include "nandflash.h" #include "jz4740.h" #include "usb_boot.h" diff --git a/flash-tool/device_stage2/nandflash/nandflash_4750.c b/flash-tool/device_stage2/nandflash/nandflash_4750.c index ad10a11..e817437 100644 --- a/flash-tool/device_stage2/nandflash/nandflash_4750.c +++ b/flash-tool/device_stage2/nandflash/nandflash_4750.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #include "jz4750.h" #include "nandflash.h" #include "usb_boot.h" diff --git a/flash-tool/device_stage2/usb_boot/boothandler.c b/flash-tool/device_stage2/usb_boot/boothandler.c index 860aa39..a4fd622 100644 --- a/flash-tool/device_stage2/usb_boot/boothandler.c +++ b/flash-tool/device_stage2/usb_boot/boothandler.c @@ -1,4 +1,23 @@ -/* USB_BOOT Handle routines*/ +/* + * USB_BOOT Handle routines + * + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #include"jz4740.h" #include "usb.h" diff --git a/flash-tool/device_stage2/usb_boot/cache.c b/flash-tool/device_stage2/usb_boot/cache.c index ba6edfd..7db6834 100644 --- a/flash-tool/device_stage2/usb_boot/cache.c +++ b/flash-tool/device_stage2/usb_boot/cache.c @@ -1,12 +1,8 @@ /* - * cache.c - * * Handle operation of Jz CPU's cache * - * Author: Seeger Chin - * e-mail: seeger.chin@gmail.com - * * Copyright (C) 2006 Ingenic Semiconductor Inc. + * Author: Seeger Chin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as diff --git a/flash-tool/device_stage2/usb_boot/main.c b/flash-tool/device_stage2/usb_boot/main.c index de3bf06..fc05640 100644 --- a/flash-tool/device_stage2/usb_boot/main.c +++ b/flash-tool/device_stage2/usb_boot/main.c @@ -1,5 +1,20 @@ -/* special main file! - * do not edit! +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA */ #include "usb_boot_defines.h" diff --git a/flash-tool/device_stage2/usb_boot/serial.c b/flash-tool/device_stage2/usb_boot/serial.c index 6c171ce..245a03d 100644 --- a/flash-tool/device_stage2/usb_boot/serial.c +++ b/flash-tool/device_stage2/usb_boot/serial.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #include "jz4750.h" volatile u32 UART_BASE; diff --git a/flash-tool/device_stage2/usb_boot/udc.c b/flash-tool/device_stage2/usb_boot/udc.c index 4274f3b..a22baa5 100644 --- a/flash-tool/device_stage2/usb_boot/udc.c +++ b/flash-tool/device_stage2/usb_boot/udc.c @@ -1,12 +1,27 @@ +/* + * Copyright (C) 2009 PI + * Author: Xiangfu Liu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that 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, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA + */ #include #include "usb.h" #include "udc.h" #include "usb_boot.h" -//#include "mipsregs.h" #define dprintf(x...) -//serial_puts(x) -//printf(x) #define TXFIFOEP0 USB_FIFO_EP0 u32 Bulk_in_buf[BULK_IN_BUF_SIZE];