Skip to content

Commit

Permalink
Initial commit with untested imx219 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Apr 14, 2020
0 parents commit ec6b579
Show file tree
Hide file tree
Showing 13 changed files with 489 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.vscode
.venv
*.pin
*.pof
*.sof
*.qpf
*.qsf
*.sid
*.map.*
*.sta.*
*.fit.*
bitstream.tcl
bitstream
incremental_db
*.hdb
*.cdb
*.ddb
*.idb
*.rdb
*.logdb
*.qmsg
*.hsd
*.ammdb
db
*.rpt
*.sld
*.jdi
*.done
*.pow.*
Makefile
project
project.tcl
files.tcl
*.vcd
*.vvp
run.command
modelsim.ini
transcript
work/
*.wlf
ip_cores/
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
sudo: required
language: python
os: linux
addons:
apt:
update: false
packages:
- lib32z1
- lib32stdc++6
- libexpat1:i386
- libc6:i386
- libsm6:i386
- libncurses5:i386
- libx11-6:i386
- zlib1g:i386
- libxext6:i386
- libxft2:i386

install:
- pip install -r requirements.txt
- stat /home/travis/intelFPGA/19.1/modelsim_ase || (curl 'http://download.altera.com/akdlm/software/acdsinst/19.1std/670/ib_installers/ModelSimSetup-19.1.0.670-linux.run' -o ModelSimSetup.run && chmod +x ModelSimSetup.run && travis_wait 30 ./ModelSimSetup.run --mode unattended --accept_eula 1 && sed -i 's/linux_rh60/linux/g' /home/travis/intelFPGA/19.1/modelsim_ase/vco )
script:
- export PATH=$PATH:/home/travis/intelFPGA/19.1/modelsim_ase/bin
- cd ./sim/imx219_tb/ && hdlmake fetch && hdlmake && make
- cd -

cache:
directories:
- /home/travis/intelFPGA/
13 changes: 13 additions & 0 deletions LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2020 Sameer Puri

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
21 changes: 21 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Sameer Puri

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions Manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modules = {
"local": "./src/"
}
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# MIPI CCS v1.1

[![Build Status](https://travis-ci.com/hdl-util/mipi-ccs.svg?branch=master)](https://travis-ci.com/hdl-util/mipi-ccs)

## To-do List

* [ ] Power-off Mode
* [ ] Software reset
* [ ] Fast standby control
* [ ] Mode select
* [ ] Set virtual channel
* [ ] Streaming mode
* Camera control
* [ ] Analog/Digital gain
* [ ] Exposure
* [ ] Orientation

* Spinlock watching i2c until ready
* [ ] reset_max_delay
* [ ] reset_min_time

## Reference Documents

These documents are not hosted here! They are available on Library Genesis and at other locations.

* [MIPI CCS v1.1](https://b-ok.cc/book/5437872/02a689)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hdlmake==3.3
9 changes: 9 additions & 0 deletions sim/imx219_tb/Manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
action = "simulation"
sim_tool = "modelsim"
sim_top = "imx219_tb"

sim_post_cmd = "vsim -novopt -do ../vsim.do -c imx219_tb"

modules = {
"local" : [ "../../test/" ],
}
1 change: 1 addition & 0 deletions sim/vsim.do
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run -all;
11 changes: 11 additions & 0 deletions src/Manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
files = [
"imx219.sv"
]


modules = {
"git": [
"git@github.com:hdl-util/i2c.git::master",
]
}
fetchto = "../ip_cores"
Loading

0 comments on commit ec6b579

Please sign in to comment.