Heat 6 tbsp / 90 ml of the ghee or olive oil in a large nonstick frying pan over moderate heat.
Add the eggplant cubes and fry, stirring frequently, until browned and soft.
Remove with a slotted spoon and set aside.
Add the remaining 2 tbsp / 30 ml of ghee or vegetable oil to the pan and increase heat to moderately high.
Add the ginger, chilies, and cumin seeds.
Fry until the seeds turn dark brown.
Stir in the asafetida, and seconds later, add the tomatoes.
Add the ground coriander, paprika, cayenne, black pepper, and turmeric.
Cook, stirring, until the tomatoes reduce to a thick sauce that separates from the oil, about 10 minutes.
Pour in the 0.5 cup / 120 ml water and bring to a boil.
Reduce heat to low.
Stir in the fried eggplant, chickpeas, fresh spinach, salt, and half of the fresh coriander (2 tbsp / 30 ml).
Cover and simmer gently for 30 minutes. If using frozen spinach, add it during the last 10 minutes of cooking.
Before serving, stir in the remaining fresh coriander and the garam masala.